Skip to content

Commit a03a5a9

Browse files
committed
chore: code style
1 parent d0de213 commit a03a5a9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/bundler-webpack/src/getConfig/getConfig.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default async function getConfig(
6666

6767
// entry
6868
if (entry) {
69-
Object.keys(entry).forEach(key => {
69+
Object.keys(entry).forEach((key) => {
7070
const e = webpackConfig.entry(key);
7171
if (hot && isDev) {
7272
e.add(require.resolve('../webpackHotDevClient/webpackHotDevClient'));
@@ -124,7 +124,7 @@ export default async function getConfig(
124124

125125
// resolve.alias
126126
if (config.alias) {
127-
Object.keys(config.alias).forEach(key => {
127+
Object.keys(config.alias).forEach((key) => {
128128
webpackConfig.resolve.alias.set(key, config.alias![key]);
129129
});
130130
}
@@ -311,7 +311,7 @@ export default async function getConfig(
311311
to: absOutputPath,
312312
},
313313
...(config.copy
314-
? config.copy.map(from => ({
314+
? config.copy.map((from) => ({
315315
from: join(cwd, from),
316316
to: absOutputPath,
317317
}))
@@ -337,14 +337,14 @@ export default async function getConfig(
337337

338338
webpackConfig.when(
339339
isDev,
340-
webpackConfig => {
340+
(webpackConfig) => {
341341
if (hot) {
342342
webpackConfig
343343
.plugin('hmr')
344344
.use(bundleImplementor.HotModuleReplacementPlugin);
345345
}
346346
},
347-
webpackConfig => {
347+
(webpackConfig) => {
348348
// don't emit files if have error
349349
webpackConfig.optimization.noEmitOnErrors(true);
350350

0 commit comments

Comments
 (0)