diff --git a/packages/vue-renderer/src/renderers/modern.js b/packages/vue-renderer/src/renderers/modern.js index 8bf5b5adc5..a7551f981c 100644 --- a/packages/vue-renderer/src/renderers/modern.js +++ b/packages/vue-renderer/src/renderers/modern.js @@ -48,7 +48,7 @@ export default class ModernRenderer extends SSRRenderer { const scripts = super.renderScripts(renderContext) if (this.isServerMode) { - return scripts.replace(']*?src="([^"]*?)" defer><\/script>/g @@ -57,7 +57,7 @@ export default class ModernRenderer extends SSRRenderer { const legacyJsFile = jsFile.replace(this.publicPath, '') const modernJsFile = this.assetsMapping[legacyJsFile] if (!modernJsFile) { - return scriptTag + return scriptTag.replace('