File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -760,10 +760,11 @@ class ExternalModule extends Module {
760
760
if ( ! ( /** @type {BuildInfo } */ ( this . buildInfo ) . module ) ) {
761
761
if ( ! runtimeTemplate . supportsDynamicImport ( ) ) {
762
762
throw new Error (
763
- " The target environment doesn't support dynamic import() syntax so it's not possible to use external type 'module' within a script" +
764
- ( runtimeTemplate . supportsEcmaScriptModuleSyntax ( )
763
+ ` The target environment doesn't support dynamic import() syntax so it's not possible to use external type 'module' within a script${
764
+ runtimeTemplate . supportsEcmaScriptModuleSyntax ( )
765
765
? "\nDid you mean to build a EcmaScript Module ('output.module: true')?"
766
- : "" )
766
+ : ""
767
+ } `
767
768
) ;
768
769
}
769
770
return getSourceForImportExternal (
Original file line number Diff line number Diff line change @@ -5349,6 +5349,7 @@ type IgnorePluginOptions =
5349
5349
type ImportAttributes = Record < string , string > & { } ;
5350
5350
declare interface ImportDependencyMeta {
5351
5351
attributes ?: ImportAttributes ;
5352
+ externalType ?: "import" | "module" ;
5352
5353
}
5353
5354
declare interface ImportModuleOptions {
5354
5355
/**
You can’t perform that action at this time.
0 commit comments