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

Commit 4b84ea4

Browse files
authored
Fix: Webpack options (#245)
fix: devtool has changed to eval instead source-map
1 parent e48afba commit 4b84ea4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

webpack.common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ module.exports = {
2626
callback();
2727
},
2828
resolve: {
29-
// .json is added to prevent import error from /node_modules/got/index.js
3029
alias: {
3130
'original-require': require.resolve('./polyfills/original-require'),
3231
},
32+
// .json is added to prevent import error from /node_modules/got/index.js
3333
extensions: ['.ts', '.js', '.json'],
3434
plugins: [
3535
new TsconfigPathsPlugin({

webpack.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const common = require('./webpack.common.js');
33

44
module.exports = merge(common, {
55
mode: 'production',
6-
devtool: 'source-map',
6+
devtool: 'eval',
77
optimization: {
88
minimize: true,
99
},

0 commit comments

Comments
 (0)