mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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
|
||||
}
|
||||
const s = new MagicString(code)
|
||||
s.append(`${options.globalPublicPath} = buildAssetsURL();\n`)
|
||||
s.append(`\n${options.globalPublicPath} = buildAssetsURL();\n`)
|
||||
return {
|
||||
code: s.toString(),
|
||||
map: options.sourcemap
|
||||
|
Loading…
Reference in New Issue
Block a user