From d1718230edc7a2385d504abb0d3c61e44ea9968d Mon Sep 17 00:00:00 2001 From: Clark Du Date: Tue, 18 Aug 2020 20:25:05 +0100 Subject: [PATCH] fix(renderer): missing nomodule on legacy modules --- packages/nuxt3/src/vue-renderer/renderers/modern.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt3/src/vue-renderer/renderers/modern.ts b/packages/nuxt3/src/vue-renderer/renderers/modern.ts index fac5e7eb69..bec3d59eda 100644 --- a/packages/nuxt3/src/vue-renderer/renderers/modern.ts +++ b/packages/nuxt3/src/vue-renderer/renderers/modern.ts @@ -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('