Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit ceb63e0

Browse files
committed
🚨 Use an object spread instead of Object.assign
1 parent 96c0fb8 commit ceb63e0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

internals/webpack/webpack.base.babel.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
1010
module.exports = options => ({
1111
mode: options.mode,
1212
entry: options.entry,
13-
output: Object.assign(
14-
{
15-
// Compile into js/build.js
16-
path: path.resolve(process.cwd(), 'build'),
17-
publicPath: '/',
18-
},
19-
options.output,
20-
), // Merge with env dependent settings
13+
output: {
14+
// Compile into js/build.js
15+
path: path.resolve(process.cwd(), 'build'),
16+
publicPath: '/',
17+
...options.output,
18+
}, // Merge with env dependent settings
2119
optimization: options.optimization,
2220
module: {
2321
rules: [

0 commit comments

Comments
 (0)