We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0715a52 commit 0c9e968Copy full SHA for 0c9e968
webpack.config.js
@@ -50,8 +50,8 @@ module.exports = async (env, argv) => {
50
51
mode: isProduction ? 'production' : 'development',
52
// add source map
53
- ...(isProduction ? {} : { devtool: 'eval-source-map' }),
54
-
+ // ...(isProduction ? {} : { devtool: 'eval-source-map' }),
+ // devtool: 'eval-source-map',
55
module: {
56
rules: [{
57
test: /\.js$/,
@@ -62,7 +62,8 @@ module.exports = async (env, argv) => {
62
{
63
loader: 'babel-loader',
64
options: {
65
- plugins: ["@babel/plugin-transform-modules-commonjs"]
+ plugins: ["@babel/plugin-transform-modules-commonjs"],
66
+ retainLines: true, // Add this option
67
}
68
69
]
0 commit comments