fix webpack config

This commit is contained in:
Aakansha Doshi 2023-08-21 21:31:53 +05:30
parent 84059086a6
commit 554913c58b
2 changed files with 16 additions and 0 deletions

View File

@ -41,6 +41,14 @@ module.exports = {
"sass-loader", "sass-loader",
], ],
}, },
// So that type module works with webpack
// https://github.com/webpack/webpack/issues/11467#issuecomment-691873586
{
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
},
{ {
test: /\.(ts|tsx|js|jsx|mjs)$/, test: /\.(ts|tsx|js|jsx|mjs)$/,
exclude: exclude:

View File

@ -44,6 +44,14 @@ module.exports = {
"sass-loader", "sass-loader",
], ],
}, },
// So that type module works with webpack
// https://github.com/webpack/webpack/issues/11467#issuecomment-691873586
{
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
},
{ {
test: /\.(ts|tsx|js|jsx|mjs)$/, test: /\.(ts|tsx|js|jsx|mjs)$/,
exclude: exclude: