Skip to content
Snippets Groups Projects

Use webpack for bundling JS libs and move Golang code related to Iframe generation there

Merged Igor Markin requested to merge feature-vcl-webpack-bundle into master
2 files
+ 20
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -4,7 +4,11 @@ const pkijs = require('pkijs');
const asn1js = require('asn1js');
const pvutils = require('pvutils');
const Penpal = require('penpal').default;
window.axios = require('axios');
const axios = require('axios');
// Make these libs accessible from other scripts
window.Penpal = Penpal;
window.axios = axios;
//*********************************************************************************
const CERTIFIATE_Version_1 = 0;
@@ -2188,7 +2192,10 @@ const connection = Penpal.connectToParent({
})
});
},
//{{methods}}
// Previously there was "//{{methods}}" placeholder, but we can't use it anymore since Uglify in webpack
// stripping this comment and there is no chance to preserve it
// (even with special words like @preserve or comment /*! */)
placeholderForExternalMethods:1
}
});
Loading