|
|
@ -38,29 +38,31 @@ module.exports = { |
|
|
|
{ |
|
|
|
{ |
|
|
|
test: /\.js$/, |
|
|
|
test: /\.js$/, |
|
|
|
exclude: /node_modules/, |
|
|
|
exclude: /node_modules/, |
|
|
|
use: { |
|
|
|
use: [ |
|
|
|
loader: 'babel-loader', |
|
|
|
{ |
|
|
|
options: { |
|
|
|
loader: 'babel-loader', |
|
|
|
presets: [ |
|
|
|
options: { |
|
|
|
[ |
|
|
|
presets: [ |
|
|
|
'@babel/preset-env', |
|
|
|
[ |
|
|
|
{ |
|
|
|
'@babel/preset-env', |
|
|
|
useBuiltIns: 'usage', |
|
|
|
{ |
|
|
|
corejs: 3, |
|
|
|
useBuiltIns: 'usage', |
|
|
|
} |
|
|
|
corejs: 3, |
|
|
|
] |
|
|
|
} |
|
|
|
], |
|
|
|
] |
|
|
|
plugins: [ |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'@babel/plugin-transform-runtime', |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
regenerator: true, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
'@babel/plugin-proposal-object-rest-spread', |
|
|
|
plugins: [ |
|
|
|
], |
|
|
|
[ |
|
|
|
} |
|
|
|
'@babel/plugin-transform-runtime', |
|
|
|
} |
|
|
|
{ |
|
|
|
|
|
|
|
regenerator: true, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
'@babel/plugin-proposal-object-rest-spread', |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
test: /\.css$/i, |
|
|
|
test: /\.css$/i, |
|
|
@ -73,6 +75,8 @@ module.exports = { |
|
|
|
new SourceMapDevToolPlugin({ |
|
|
|
new SourceMapDevToolPlugin({ |
|
|
|
filename: '[name].js.map', |
|
|
|
filename: '[name].js.map', |
|
|
|
exclude: [ |
|
|
|
exclude: [ |
|
|
|
|
|
|
|
'gitgraph.js', |
|
|
|
|
|
|
|
'jquery.js', |
|
|
|
'swagger.js', |
|
|
|
'swagger.js', |
|
|
|
], |
|
|
|
], |
|
|
|
}), |
|
|
|
}), |
|
|
@ -84,4 +88,7 @@ module.exports = { |
|
|
|
return !filename.endsWith('.map') && filename !== 'swagger.js'; |
|
|
|
return !filename.endsWith('.map') && filename !== 'swagger.js'; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
resolve: { |
|
|
|
|
|
|
|
symlinks: false, |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|