fix(webpack): add global to new line (#8226)

This commit is contained in:
Daniel Roe 2022-10-16 10:03:02 +01:00 committed by GitHub
parent 0cfc5a2dd3
commit 5bf4461faa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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