mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(compat): disable webpack sourcemap (#84)
This commit is contained in:
parent
67a82a7ab9
commit
1b142148eb
@ -38,6 +38,14 @@ export default function nuxt2CompatModule () {
|
||||
nuxt.server = createNuxt2DevServer(nitroDevContext)
|
||||
}
|
||||
|
||||
// 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
|
||||
})
|
||||
}
|
||||
|
||||
// Nitro client plugin
|
||||
this.addPlugin({
|
||||
fileName: 'nitro.client.js',
|
||||
|
Loading…
Reference in New Issue
Block a user