mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(webpack): deepClone before calling extendConfig (#4464)
This commit is contained in:
parent
a6fed0acbd
commit
06ddfbb77b
@ -361,9 +361,7 @@ export default class WebpackBaseConfig {
|
||||
plugins: this.plugins()
|
||||
}
|
||||
|
||||
const extendedConfig = this.extendConfig(config)
|
||||
|
||||
// Clone deep avoid leaking config between Client and Server
|
||||
return cloneDeep(extendedConfig)
|
||||
return this.extendConfig(cloneDeep(config))
|
||||
}
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ describe('basic dev', () => {
|
||||
)
|
||||
const { cssModules, vue } = loadersOptions
|
||||
expect(cssModules.localIdentName).toBe('[hash:base64:6]')
|
||||
expect(vueLoader.options).toBe(vue)
|
||||
expect(vueLoader.options).toEqual(vue)
|
||||
})
|
||||
|
||||
test('Config: cssnano is at then end of postcss plugins', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user