Skip to content

Commit

Permalink
Disable Rollup warning for use of eval. (#62432)
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Dec 6, 2021
1 parent 705ffd3 commit 5dc1b4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mono/wasm/runtime/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ const iffeConfig = {
plugins,
}
],
onwarn: (warning, handler) => {
if (warning.code === "EVAL" && warning.loc.file.indexOf("method-calls.ts") != -1) {
return;
}

handler(warning);
},
plugins: [consts({ productVersion, configuration }), typescript()]
};
const typesConfig = {
Expand Down

0 comments on commit 5dc1b4c

Please sign in to comment.