Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Fix: Webpack options (#245)
Browse files Browse the repository at this point in the history
fix: devtool has changed to eval instead source-map
  • Loading branch information
xhulz authored Oct 14, 2022
1 parent e48afba commit 4b84ea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ module.exports = {
callback();
},
resolve: {
// .json is added to prevent import error from /node_modules/got/index.js
alias: {
'original-require': require.resolve('./polyfills/original-require'),
},
// .json is added to prevent import error from /node_modules/got/index.js
extensions: ['.ts', '.js', '.json'],
plugins: [
new TsconfigPathsPlugin({
Expand Down
2 changes: 1 addition & 1 deletion webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const common = require('./webpack.common.js');

module.exports = merge(common, {
mode: 'production',
devtool: 'source-map',
devtool: 'eval',
optimization: {
minimize: true,
},
Expand Down

0 comments on commit 4b84ea4

Please sign in to comment.