diff --git a/webpack.config.dev.js b/webpack.config.dev.js index 83482c6..3e48617 100644 --- a/webpack.config.dev.js +++ b/webpack.config.dev.js @@ -19,7 +19,8 @@ const generalConfig = { devtool: "source-map", resolve: { alias: { - src: path.resolve(__dirname, "src/") + src: path.resolve(__dirname, "src/"), + "webextension-polyfill": "webextension-polyfill/dist/browser-polyfill.min.js" } }, module: { diff --git a/webpack.config.dist.js b/webpack.config.dist.js index 00ad956..92bd547 100644 --- a/webpack.config.dist.js +++ b/webpack.config.dist.js @@ -25,7 +25,8 @@ const generalConfig = { mode: "production", resolve: { alias: { - src: path.resolve(__dirname, "src/") + src: path.resolve(__dirname, "src/"), + "webextension-polyfill": "webextension-polyfill/dist/browser-polyfill.min.js" } }, module: {