From 5dc1b4c31312b6778b62ee28ba4a2b0c54f34898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Mon, 6 Dec 2021 20:47:08 +0100 Subject: [PATCH] Disable Rollup warning for use of eval. (#62432) --- src/mono/wasm/runtime/rollup.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mono/wasm/runtime/rollup.config.js b/src/mono/wasm/runtime/rollup.config.js index 6f4b8b06d954f..4d9617f214c83 100644 --- a/src/mono/wasm/runtime/rollup.config.js +++ b/src/mono/wasm/runtime/rollup.config.js @@ -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 = {