turns out that rollup-plugin-cleanup doesn't like line 259 in aes-js

so don't remove comments for now in the legacy build
This commit is contained in:
Bruno Windels 2020-09-17 09:36:37 +02:00
parent 77a21c08eb
commit ab01c903a6
2 changed files with 2 additions and 3 deletions

View file

@ -244,7 +244,7 @@ async function buildJsLegacy(inputFile, outputName, extraFile, polyfillFile) {
// create js bundle
const rollupConfig = {
input: inputFiles,
plugins: [multi(), commonjs(), nodeResolve(), babelPlugin, removeJsComments({comments: "none"})]
plugins: [multi(), commonjs(), nodeResolve(), babelPlugin]
};
const bundle = await rollup(rollupConfig);
const {output} = await bundle.generate({

View file

@ -1,3 +1,2 @@
//import aesjs from "../lib/aes-js/index.js";
let aesjs = "aesjs";
import aesjs from "../lib/aes-js/index.js";
export const legacyExtras = {aesjs};