mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Use object directly since webpack doesn’t parse the string (#4140)
This commit is contained in:
parent
676d82abf9
commit
05b7286454
|
@ -142,7 +142,7 @@ export default async function getBaseWebpackConfig (dir, {dev = false, isServer
|
|||
strictModuleExceptionHandling: true,
|
||||
devtoolModuleFilenameTemplate (info) {
|
||||
if (dev) {
|
||||
return '[absolute-resource-path]'
|
||||
return info.absoluteResourcePath
|
||||
}
|
||||
|
||||
return `${info.absoluteResourcePath.replace(dir, '.').replace(nextDir, './node_modules/next')}`
|
||||
|
|
Loading…
Reference in a new issue