Skip to content

Commit

Permalink
fix: build error (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
zqran authored Nov 24, 2023
1 parent 77b084b commit b2cc8e3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
12 changes: 11 additions & 1 deletion packages/rspack/rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,14 @@ module.exports = {
},
],
},
}
module: {
rules: [
{
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
},
],
},
};
14 changes: 12 additions & 2 deletions packages/webpack/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
const HtmlWebpackPlugin = require('html-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin');
/**
* @type {import('webpack').Configuration}
*/
Expand All @@ -10,9 +10,19 @@ module.exports = {
main: './src/main.js',
},
performance: { hints: false },
module: {
rules: [
{
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
},
],
},
plugins: [
new HtmlWebpackPlugin({
template: 'index.html',
}),
],
}
};

0 comments on commit b2cc8e3

Please sign in to comment.