mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(renderer): missing nomodule on legacy modules
This commit is contained in:
parent
349fb37bda
commit
d1718230ed
@ -62,7 +62,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('<script', '<script nomodule')
|
||||
}
|
||||
const moduleTag = scriptTag
|
||||
.replace('<script', '<script type="module"')
|
||||
|
Loading…
Reference in New Issue
Block a user