mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(config): always disasble server sourceMap (#88)
This commit is contained in:
parent
1b142148eb
commit
5aa31613bd
@ -39,12 +39,10 @@ export default function nuxt2CompatModule () {
|
||||
}
|
||||
|
||||
// Disable server sourceMap, esbuild will generate for it.
|
||||
if (nitroContext.sourceMap !== false) {
|
||||
nuxt.hook('webpack:config', (webpackConfigs) => {
|
||||
const serverConfig = webpackConfigs[2] || webpackConfigs[2]
|
||||
serverConfig.devtool = false
|
||||
})
|
||||
}
|
||||
nuxt.hook('webpack:config', (webpackConfigs) => {
|
||||
const serverConfig = webpackConfigs[2] || webpackConfigs[2]
|
||||
serverConfig.devtool = false
|
||||
})
|
||||
|
||||
// Nitro client plugin
|
||||
this.addPlugin({
|
||||
|
Loading…
Reference in New Issue
Block a user