From b5f18673181520f6fc5b37769a0598ffe6ced700 Mon Sep 17 00:00:00 2001 From: abhijithvijayan <34790378+abhijithvijayan@users.noreply.github.com> Date: Mon, 27 Jan 2020 20:05:47 +0530 Subject: [PATCH] fix: resolve ts, tsx, js in webpack --- webpack.config.js | 7 +++++++ 1 file changed, 7 insertions(+) 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: [ {