mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(modern): missing nomodule on legacy modules (#7919)
This commit is contained in:
parent
10e82b24da
commit
68b9183c4c
@ -48,7 +48,7 @@ export default class ModernRenderer extends SSRRenderer {
|
||||
const scripts = super.renderScripts(renderContext)
|
||||
|
||||
if (this.isServerMode) {
|
||||
return scripts
|
||||
return scripts.replace('<script', `<script nomodule`)
|
||||
}
|
||||
|
||||
const scriptPattern = /<script[^>]*?src="([^"]*?)" defer><\/script>/g
|
||||
|
Loading…
Reference in New Issue
Block a user