refactor: apply review suggestions
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com> Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
committed by
Patrik Oldsberg
parent
c884b9a478
commit
ffd71105a6
@@ -70,11 +70,7 @@ export async function buildBundle(options: BuildOptions) {
|
||||
`⚠️ WARNING: The app /public entry point is an experimental feature that may receive immediate breaking changes.`,
|
||||
),
|
||||
);
|
||||
configs.push(
|
||||
await createConfig(publicPaths, {
|
||||
...commonConfigOptions,
|
||||
}),
|
||||
);
|
||||
configs.push(await createConfig(publicPaths, commonConfigOptions));
|
||||
}
|
||||
|
||||
const isCi = yn(process.env.CI, { default: false });
|
||||
|
||||
@@ -216,12 +216,7 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
|
||||
);
|
||||
}
|
||||
const compiler = publicPaths
|
||||
? webpack([
|
||||
config,
|
||||
await createConfig(publicPaths, {
|
||||
...commonConfigOptions,
|
||||
}),
|
||||
])
|
||||
? webpack([config, await createConfig(publicPaths, commonConfigOptions)])
|
||||
: webpack(config);
|
||||
|
||||
webpackServer = new WebpackDevServer(
|
||||
|
||||
Reference in New Issue
Block a user