diff --git a/webpack.config.js b/webpack.config.js index 9c07995..de78019 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -64,6 +64,13 @@ module.exports = { path: path.join(destPath, targetBrowser), }, + resolve: { + extensions: ['.ts', '.tsx', '.js', '.json'], + alias: { + 'webextension-polyfill-ts': path.resolve(path.join(__dirname, 'node_modules', 'webextension-polyfill-ts')), + }, + }, + module: { rules: [ {