Skip to content

Commit 0c9e968

Browse files
committed
an attemt to fig line breaks for un bracketed conditions
1 parent 0715a52 commit 0c9e968

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

webpack.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ module.exports = async (env, argv) => {
5050

5151
mode: isProduction ? 'production' : 'development',
5252
// add source map
53-
...(isProduction ? {} : { devtool: 'eval-source-map' }),
54-
53+
// ...(isProduction ? {} : { devtool: 'eval-source-map' }),
54+
// devtool: 'eval-source-map',
5555
module: {
5656
rules: [{
5757
test: /\.js$/,
@@ -62,7 +62,8 @@ module.exports = async (env, argv) => {
6262
{
6363
loader: 'babel-loader',
6464
options: {
65-
plugins: ["@babel/plugin-transform-modules-commonjs"]
65+
plugins: ["@babel/plugin-transform-modules-commonjs"],
66+
retainLines: true, // Add this option
6667
}
6768
}
6869
]

0 commit comments

Comments
 (0)