File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/bundler-webpack/src/getConfig Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export default async function getConfig(
66
66
67
67
// entry
68
68
if ( entry ) {
69
- Object . keys ( entry ) . forEach ( key => {
69
+ Object . keys ( entry ) . forEach ( ( key ) => {
70
70
const e = webpackConfig . entry ( key ) ;
71
71
if ( hot && isDev ) {
72
72
e . add ( require . resolve ( '../webpackHotDevClient/webpackHotDevClient' ) ) ;
@@ -124,7 +124,7 @@ export default async function getConfig(
124
124
125
125
// resolve.alias
126
126
if ( config . alias ) {
127
- Object . keys ( config . alias ) . forEach ( key => {
127
+ Object . keys ( config . alias ) . forEach ( ( key ) => {
128
128
webpackConfig . resolve . alias . set ( key , config . alias ! [ key ] ) ;
129
129
} ) ;
130
130
}
@@ -311,7 +311,7 @@ export default async function getConfig(
311
311
to : absOutputPath ,
312
312
} ,
313
313
...( config . copy
314
- ? config . copy . map ( from => ( {
314
+ ? config . copy . map ( ( from ) => ( {
315
315
from : join ( cwd , from ) ,
316
316
to : absOutputPath ,
317
317
} ) )
@@ -337,14 +337,14 @@ export default async function getConfig(
337
337
338
338
webpackConfig . when (
339
339
isDev ,
340
- webpackConfig => {
340
+ ( webpackConfig ) => {
341
341
if ( hot ) {
342
342
webpackConfig
343
343
. plugin ( 'hmr' )
344
344
. use ( bundleImplementor . HotModuleReplacementPlugin ) ;
345
345
}
346
346
} ,
347
- webpackConfig => {
347
+ ( webpackConfig ) => {
348
348
// don't emit files if have error
349
349
webpackConfig . optimization . noEmitOnErrors ( true ) ;
350
350
You can’t perform that action at this time.
0 commit comments