mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +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.
|
// Disable server sourceMap, esbuild will generate for it.
|
||||||
if (nitroContext.sourceMap !== false) {
|
nuxt.hook('webpack:config', (webpackConfigs) => {
|
||||||
nuxt.hook('webpack:config', (webpackConfigs) => {
|
const serverConfig = webpackConfigs[2] || webpackConfigs[2]
|
||||||
const serverConfig = webpackConfigs[2] || webpackConfigs[2]
|
serverConfig.devtool = false
|
||||||
serverConfig.devtool = false
|
})
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// Nitro client plugin
|
// Nitro client plugin
|
||||||
this.addPlugin({
|
this.addPlugin({
|
||||||
|
Loading…
Reference in New Issue
Block a user