Ignore proxy-polyfill in workers (#6011)

This commit is contained in:
Paulus Schoutsen
2020-05-24 01:41:05 -07:00
committed by GitHub
parent c5ef33cc78
commit 38d3b8d087
2 changed files with 13 additions and 10 deletions

View File

@@ -25,7 +25,7 @@ const defaultOpts = {
// A RegExp to find `new Workers()` calls. The second capture group _must_
// capture the provided file name without the quotes.
workerRegexp: /new Worker\((["'])(.+?)\1(,[^)]+)?\)/g,
plugins: ["node-resolve", "commonjs", "babel"],
plugins: ["node-resolve", "commonjs", "babel", "terser", "ignore"],
};
async function getBundledWorker(workerPath, rollupOptions) {