mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +00:00
fix(webpack): add global to new line (#8226)
This commit is contained in:
parent
0cfc5a2dd3
commit
5bf4461faa
@ -21,7 +21,7 @@ export const DynamicBasePlugin = createUnplugin((options: DynamicBasePluginOptio
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
const s = new MagicString(code)
|
const s = new MagicString(code)
|
||||||
s.append(`${options.globalPublicPath} = buildAssetsURL();\n`)
|
s.append(`\n${options.globalPublicPath} = buildAssetsURL();\n`)
|
||||||
return {
|
return {
|
||||||
code: s.toString(),
|
code: s.toString(),
|
||||||
map: options.sourcemap
|
map: options.sourcemap
|
||||||
|
Loading…
Reference in New Issue
Block a user