@@ -351,7 +351,7 @@ export interface TerserMangleOptions {
351351 reserved ?: string [ ] ;
352352}
353353
354- export interface TerserManglePropertiesOptions { }
354+ export interface TerserManglePropertiesOptions { }
355355
356356/**
357357 * Programmatic options.
@@ -915,27 +915,27 @@ export interface ReactConfig {
915915 * Enable fast refresh feature for React app
916916 */
917917 refresh ?:
918- | boolean
919- | {
920- /**
921- * Identifier for the `react-refresh` register function.
922- *
923- * Defaults to `$RefreshReg$`
924- */
925- refreshReg ?: string ;
926- /**
927- * Identifier for the `react-refresh` signature function.
928- *
929- * Defaults to `$RefreshSig$`
930- */
931- refreshSig ?: string ;
932- /**
933- * Flag to emit full signatures.
934- *
935- * Defaults to `false`
936- */
937- emitFullSignatures ?: boolean ;
938- } ;
918+ | boolean
919+ | {
920+ /**
921+ * Identifier for the `react-refresh` register function.
922+ *
923+ * Defaults to `$RefreshReg$`
924+ */
925+ refreshReg ?: string ;
926+ /**
927+ * Identifier for the `react-refresh` signature function.
928+ *
929+ * Defaults to `$RefreshSig$`
930+ */
931+ refreshSig ?: string ;
932+ /**
933+ * Flag to emit full signatures.
934+ *
935+ * Defaults to `false`
936+ */
937+ emitFullSignatures ?: boolean ;
938+ } ;
939939
940940 /**
941941 * jsx runtime
@@ -1162,7 +1162,7 @@ export interface BaseModuleConfig {
11621162 importInterop ?: "swc" | "babel" | "node" | "none" ;
11631163 /**
11641164 * Output extension for generated files.
1165- *
1165+ *
11661166 * Defaults to `js`.
11671167 */
11681168 outFileExtension ?: "js" | "mjs" | "cjs" ;
@@ -1180,6 +1180,10 @@ export interface BaseModuleConfig {
11801180 ignoreDynamic ?: boolean ;
11811181 allowTopLevelThis ?: boolean ;
11821182 preserveImportMeta ?: boolean ;
1183+ /**
1184+ * If set to true, This will resolve top .mjs
1185+ */
1186+ resolveFully ?: boolean ;
11831187}
11841188
11851189export interface Es6Config extends BaseModuleConfig {
@@ -1218,7 +1222,7 @@ export interface Output {
12181222 map ?: string ;
12191223}
12201224
1221- export interface MatchPattern { }
1225+ export interface MatchPattern { }
12221226
12231227// -------------------------------
12241228// ---------- Ast nodes ----------
@@ -1450,7 +1454,7 @@ export type Expression =
14501454 | OptionalChainingExpression
14511455 | Invalid ;
14521456
1453- interface ExpressionBase extends Node , HasSpan { }
1457+ interface ExpressionBase extends Node , HasSpan { }
14541458
14551459export interface Identifier extends ExpressionBase {
14561460 type : "Identifier" ;
@@ -2918,19 +2922,18 @@ export interface Invalid extends Node, HasSpan {
29182922 type : "Invalid" ;
29192923}
29202924
2921-
29222925export type WasmAnalysisOptions = {
2923- parser ?: ParserConfig ,
2926+ parser ?: ParserConfig ;
29242927
2925- module ?: true | false | ' unknown'
2928+ module ?: true | false | " unknown" ;
29262929
29272930 filename ?: string ;
29282931
2929- errorFormat ?: ' json' | ' normal'
2932+ errorFormat ?: " json" | " normal" ;
29302933
29312934 cacheRoot ?: string ;
29322935
2933- plugins : WasmPlugin [ ]
2934- }
2936+ plugins : WasmPlugin [ ] ;
2937+ } ;
29352938
2936- export type WasmPlugin = [ wasmPackage : string , config : Record < string , any > ]
2939+ export type WasmPlugin = [ wasmPackage : string , config : Record < string , any > ] ;
0 commit comments