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

Commit 346c61a

Browse files
committed
fix(index): typo in stripMetadata
1 parent db539fc commit 346c61a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ export function generateConfig(...configs: Array<EasyWebpackConfig>) {
3636
export function stripMetadata(config: EasyWebpackConfig) {
3737
let overlayConfig: WebpackConfigWithMetadata
3838
if (typeof config === 'function') {
39-
overlayConfig = config.apply(config)
39+
overlayConfig = config.apply({})
40+
} else {
41+
overlayConfig = Object.assign({}, config)
4042
}
4143
delete overlayConfig.metadata
4244
return overlayConfig as WebpackConfig

0 commit comments

Comments
 (0)