Skip to content

Commit

Permalink
[wasm] Ignore not relevant rollup warnings (#79396)
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf authored Dec 8, 2022
1 parent 1b8665d commit a30de6d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/mono/wasm/runtime/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ const iffeConfig = {
}
],
external: externalDependencies,
plugins: outputCodePlugins
plugins: outputCodePlugins,
onwarn: onwarn
};
const typesConfig = {
input: "./export-types.ts",
Expand Down Expand Up @@ -327,3 +328,15 @@ function findWebWorkerInputs(basePath) {
}
return results;
}

function onwarn(warning) {
if (warning.code === "CIRCULAR_DEPENDENCY") {
return;
}

if (warning.code === "UNRESOLVED_IMPORT" && warning.exporter === "process") {
return;
}

console.warn(`(!) ${warning.toString()}`);
}

0 comments on commit a30de6d

Please sign in to comment.