@rolldown/browser 1.0.0-beta.50 → 1.0.0-beta.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/cli.mjs +11 -7
  2. package/dist/config.d.mts +3 -3
  3. package/dist/config.mjs +9 -5
  4. package/dist/constructors-DW3R_Jog.js +68 -0
  5. package/dist/experimental-index.browser.mjs +19 -13
  6. package/dist/experimental-index.d.mts +63 -16
  7. package/dist/experimental-index.mjs +23 -15
  8. package/dist/filter-index.d.mts +3 -3
  9. package/dist/filter-index.mjs +2 -1
  10. package/dist/index.browser.mjs +161 -2
  11. package/dist/index.d.mts +3 -3
  12. package/dist/index.mjs +36 -4
  13. package/dist/normalize-string-or-regex-BcbPUrYo.js +830 -0
  14. package/dist/parallel-plugin-worker.mjs +5 -4
  15. package/dist/parallel-plugin.d.mts +3 -3
  16. package/dist/parse-ast-index.d.mts +1 -1
  17. package/dist/parse-ast-index.mjs +1 -1
  18. package/dist/plugins-index.browser.mjs +2 -2
  19. package/dist/plugins-index.d.mts +3 -3
  20. package/dist/plugins-index.mjs +3 -2
  21. package/dist/rolldown-binding.wasi-browser.js +5 -2
  22. package/dist/rolldown-binding.wasi.cjs +5 -2
  23. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  24. package/dist/{src-dUoCuQap.js → rolldown-build-CUYnBV3u.js} +44 -754
  25. package/dist/shared/{binding-BTup3pHG.d.mts → binding-BKL2JHoJ.d.mts} +173 -94
  26. package/dist/shared/bindingify-input-options-D4i1DYzt.mjs +1568 -0
  27. package/dist/shared/{composable-filters-CBpK2Fbc.mjs → composable-filters-DZ5ToxRJ.mjs} +1 -22
  28. package/dist/shared/constructors-BvaMwihu.d.mts +32 -0
  29. package/dist/shared/constructors-XFp0WhK3.mjs +68 -0
  30. package/dist/shared/{define-config-DiSv-kgF.d.mts → define-config-Buedmg9e.d.mts} +31 -57
  31. package/dist/shared/define-config-DfeZGBEt.mjs +7 -0
  32. package/dist/shared/{load-config-BqnLKlUM.mjs → load-config-C9CjEv2m.mjs} +1 -1
  33. package/dist/shared/misc-5GYLGQ20.mjs +22 -0
  34. package/dist/shared/normalize-string-or-regex-D1mB67Iy.mjs +629 -0
  35. package/dist/shared/{parse-ast-index-DtI4JSVR.mjs → parse-ast-index-BSDTTjWT.mjs} +20 -6
  36. package/dist/shared/rolldown-0ID0Q4xL.mjs +10 -0
  37. package/dist/shared/rolldown-build-BWJGpMD0.mjs +2121 -0
  38. package/dist/shared/utils-DKydZ4iH.d.mts +62 -0
  39. package/dist/shared/watch-CwnSQOS4.mjs +338 -0
  40. package/package.json +5 -1
  41. package/dist/constructors-EhfoQfqh.js +0 -68
  42. package/dist/normalize-string-or-regex-d47jXr3r.js +0 -231
  43. package/dist/shared/constructors-B7IHT8j4.d.mts +0 -32
  44. package/dist/shared/constructors-DcEzB0nc.mjs +0 -68
  45. package/dist/shared/normalize-string-or-regex-CbDij6KB.mjs +0 -46
  46. package/dist/shared/src-D0x2a_iO.mjs +0 -4597
  47. package/dist/shared/utils-BKVJO2vQ.d.mts +0 -18
  48. /package/dist/shared/{prompt-CjFmA1DF.mjs → prompt-pmGBC3ws.mjs} +0 -0
@@ -124,8 +124,12 @@ interface MangleOptionsKeepNames {
124
124
  */
125
125
  class: boolean;
126
126
  }
127
- /** Minify synchronously. */
128
- declare function minify(filename: string, sourceText: string, options?: MinifyOptions | undefined | null): MinifyResult;
127
+ /**
128
+ * Minify asynchronously.
129
+ *
130
+ * Note: This function can be slower than `minifySync` due to the overhead of spawning a thread.
131
+ */
132
+ declare function minify(filename: string, sourceText: string, options?: MinifyOptions | undefined | null): Promise<MinifyResult>;
129
133
  interface MinifyOptions {
130
134
  /** Use when minifying an ES module. */
131
135
  module?: boolean;
@@ -139,6 +143,8 @@ interface MinifyResult {
139
143
  map?: SourceMap;
140
144
  errors: Array<OxcError>;
141
145
  }
146
+ /** Minify synchronously. */
147
+ declare function minifySync(filename: string, sourceText: string, options?: MinifyOptions | undefined | null): MinifyResult;
142
148
  interface TreeShakeOptions {
143
149
  /**
144
150
  * Whether to respect the pure annotations.
@@ -265,12 +271,6 @@ type ImportNameKind = /** `import { x } from "mod"` */
265
271
  'Name' | /** `import * as ns from "mod"` */
266
272
  'NamespaceObject' | /** `import defaultExport from "mod"` */
267
273
  'Default';
268
- /**
269
- * Parse asynchronously.
270
- *
271
- * Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
272
- */
273
- declare function parseAsync(filename: string, sourceText: string, options?: ParserOptions | undefined | null): Promise<ParseResult>;
274
274
  interface ParserOptions {
275
275
  /** Treat the source text as `js`, `jsx`, `ts`, `tsx` or `dts`. */
276
276
  lang?: 'js' | 'jsx' | 'ts' | 'tsx' | 'dts';
@@ -311,8 +311,6 @@ interface ParserOptions {
311
311
  */
312
312
  showSemanticErrors?: boolean;
313
313
  }
314
- /** Parse synchronously. */
315
- declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | undefined | null): ParseResult;
316
314
  interface Span {
317
315
  start: number;
318
316
  end: number;
@@ -767,8 +765,12 @@ type HelperMode =
767
765
  interface Helpers {
768
766
  mode?: HelperMode;
769
767
  }
770
- /** TypeScript Isolated Declarations for Standalone DTS Emit */
771
- declare function isolatedDeclaration(filename: string, sourceText: string, options?: IsolatedDeclarationsOptions | undefined | null): IsolatedDeclarationsResult;
768
+ /**
769
+ * TypeScript Isolated Declarations for Standalone DTS Emit (async)
770
+ *
771
+ * Note: This function can be slower than `isolatedDeclarationSync` due to the overhead of spawning a thread.
772
+ */
773
+ declare function isolatedDeclaration(filename: string, sourceText: string, options?: IsolatedDeclarationsOptions | undefined | null): Promise<IsolatedDeclarationsResult>;
772
774
  interface IsolatedDeclarationsOptions {
773
775
  /**
774
776
  * Do not emit declarations for code that has an @internal annotation in its JSDoc comment.
@@ -786,6 +788,8 @@ interface IsolatedDeclarationsResult {
786
788
  map?: SourceMap;
787
789
  errors: Array<OxcError>;
788
790
  }
791
+ /** TypeScript Isolated Declarations for Standalone DTS Emit */
792
+ declare function isolatedDeclarationSync(filename: string, sourceText: string, options?: IsolatedDeclarationsOptions | undefined | null): IsolatedDeclarationsResult;
789
793
  /**
790
794
  * Configure how TSX and JSX are transformed.
791
795
  *
@@ -891,9 +895,11 @@ interface JsxOptions {
891
895
  * @returns an object containing the transformed code, source maps, and any
892
896
  * errors that occurred during parsing or transformation.
893
897
  *
898
+ * Note: This function can be slower than `moduleRunnerTransformSync` due to the overhead of spawning a thread.
899
+ *
894
900
  * @deprecated Only works for Vite.
895
901
  */
896
- declare function moduleRunnerTransform(filename: string, sourceText: string, options?: ModuleRunnerTransformOptions | undefined | null): ModuleRunnerTransformResult;
902
+ declare function moduleRunnerTransform(filename: string, sourceText: string, options?: ModuleRunnerTransformOptions | undefined | null): Promise<ModuleRunnerTransformResult>;
897
903
  interface ModuleRunnerTransformOptions {
898
904
  /**
899
905
  * Enable source map generation.
@@ -932,6 +938,7 @@ interface ModuleRunnerTransformResult {
932
938
  }
933
939
  interface PluginsOptions {
934
940
  styledComponents?: StyledComponentsOptions;
941
+ taggedTemplateEscape?: boolean;
935
942
  }
936
943
  interface ReactRefreshOptions {
937
944
  /**
@@ -1027,18 +1034,20 @@ interface StyledComponentsOptions {
1027
1034
  topLevelImportPaths?: Array<string>;
1028
1035
  }
1029
1036
  /**
1030
- * Transpile a JavaScript or TypeScript into a target ECMAScript version.
1037
+ * Transpile a JavaScript or TypeScript into a target ECMAScript version, asynchronously.
1038
+ *
1039
+ * Note: This function can be slower than `transform` due to the overhead of spawning a thread.
1031
1040
  *
1032
1041
  * @param filename The name of the file being transformed. If this is a
1033
- * relative path, consider setting the {@link TransformOptions#cwd} option..
1042
+ * relative path, consider setting the {@link TransformOptions#cwd} option.
1034
1043
  * @param sourceText the source code itself
1035
1044
  * @param options The options for the transformation. See {@link
1036
1045
  * TransformOptions} for more information.
1037
1046
  *
1038
- * @returns an object containing the transformed code, source maps, and any
1039
- * errors that occurred during parsing or transformation.
1047
+ * @returns a promise that resolves to an object containing the transformed code,
1048
+ * source maps, and any errors that occurred during parsing or transformation.
1040
1049
  */
1041
- declare function transform(filename: string, sourceText: string, options?: TransformOptions | undefined | null): TransformResult;
1050
+ declare function transform(filename: string, sourceText: string, options?: TransformOptions | undefined | null): Promise<TransformResult>;
1042
1051
  /**
1043
1052
  * Options for transforming a JavaScript or TypeScript file.
1044
1053
  *
@@ -1147,6 +1156,19 @@ interface TransformResult {
1147
1156
  */
1148
1157
  errors: Array<OxcError>;
1149
1158
  }
1159
+ /**
1160
+ * Transpile a JavaScript or TypeScript into a target ECMAScript version.
1161
+ *
1162
+ * @param filename The name of the file being transformed. If this is a
1163
+ * relative path, consider setting the {@link TransformOptions#cwd} option..
1164
+ * @param sourceText the source code itself
1165
+ * @param options The options for the transformation. See {@link
1166
+ * TransformOptions} for more information.
1167
+ *
1168
+ * @returns an object containing the transformed code, source maps, and any
1169
+ * errors that occurred during parsing or transformation.
1170
+ */
1171
+ declare function transformSync(filename: string, sourceText: string, options?: TransformOptions | undefined | null): TransformResult;
1150
1172
  interface TypeScriptOptions {
1151
1173
  jsxPragma?: string;
1152
1174
  jsxPragmaFrag?: string;
@@ -1247,6 +1269,32 @@ declare class BindingMagicString {
1247
1269
  relocate(start: number, end: number, to: number): void;
1248
1270
  indent(indentor?: string | undefined | null): void;
1249
1271
  }
1272
+ declare class BindingOutputAsset {
1273
+ dropInner(): ExternalMemoryStatus;
1274
+ getFileName(): string;
1275
+ getOriginalFileName(): string | null;
1276
+ getOriginalFileNames(): Array<string>;
1277
+ getSource(): BindingAssetSource;
1278
+ getName(): string | null;
1279
+ getNames(): Array<string>;
1280
+ }
1281
+ declare class BindingOutputChunk {
1282
+ dropInner(): ExternalMemoryStatus;
1283
+ getIsEntry(): boolean;
1284
+ getIsDynamicEntry(): boolean;
1285
+ getFacadeModuleId(): string | null;
1286
+ getModuleIds(): Array<string>;
1287
+ getExports(): Array<string>;
1288
+ getFileName(): string;
1289
+ getModules(): BindingModules;
1290
+ getImports(): Array<string>;
1291
+ getDynamicImports(): Array<string>;
1292
+ getCode(): string;
1293
+ getMap(): string | null;
1294
+ getSourcemapFileName(): string | null;
1295
+ getPreliminaryFileName(): string;
1296
+ getName(): string;
1297
+ }
1250
1298
  declare class BindingRenderedChunk {
1251
1299
  get name(): string;
1252
1300
  get isEntry(): boolean;
@@ -1284,43 +1332,18 @@ declare class BindingWatcherEvent {
1284
1332
  bundleEventKind(): string;
1285
1333
  bundleErrorData(): BindingBundleErrorEventData;
1286
1334
  }
1287
- interface BindingAssetPluginConfig {
1288
- isLib: boolean;
1289
- isSsr: boolean;
1290
- isWorker: boolean;
1291
- urlBase: string;
1292
- publicDir: string;
1293
- decodedBase: string;
1294
- isSkipAssets: boolean;
1295
- assetsInclude: Array<BindingStringOrRegex>;
1296
- assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
1297
- renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
1298
- }
1299
- interface BindingBuildImportAnalysisPluginConfig {
1300
- preloadCode: string;
1301
- insertPreload: boolean;
1302
- optimizeModulePreloadRelativePaths: boolean;
1303
- renderBuiltUrl: boolean;
1304
- isRelativeBase: boolean;
1305
- v2?: BindingBuildImportAnalysisPluginV2Config;
1335
+ interface BindingAssetSource {
1336
+ inner: string | Uint8Array;
1306
1337
  }
1307
- interface BindingBuildImportAnalysisPluginV2Config {
1308
- isSsr: boolean;
1309
- urlBase: string;
1310
- decodedBase: string;
1311
- modulePreload: false | BindingModulePreloadOptions;
1312
- renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
1338
+ type BindingBuiltinPluginName = 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-asset' | 'builtin:vite-asset-import-meta-url' | 'builtin:vite-build-import-analysis' | 'builtin:vite-css' | 'builtin:vite-css-post' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-html' | 'builtin:vite-html-inline-proxy' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-wasm-helper' | 'builtin:vite-web-worker-post';
1339
+ interface BindingBundleState {
1340
+ lastFullBuildFailed: boolean;
1341
+ hasStaleOutput: boolean;
1313
1342
  }
1314
- type BindingBuiltinPluginName = 'builtin:alias' | 'builtin:asset' | 'builtin:asset-import-meta-url' | 'builtin:build-import-analysis' | 'builtin:dynamic-import-vars' | 'builtin:esm-external-require' | 'builtin:html-inline-proxy' | 'builtin:import-glob' | 'builtin:isolated-declaration' | 'builtin:json' | 'builtin:load-fallback' | 'builtin:manifest' | 'builtin:module-preload-polyfill' | 'builtin:react-refresh-wrapper' | 'builtin:reporter' | 'builtin:replace' | 'builtin:transform' | 'builtin:vite-css' | 'builtin:vite-css-post' | 'builtin:vite-html' | 'builtin:vite-resolve' | 'builtin:wasm-fallback' | 'builtin:wasm-helper' | 'builtin:web-worker-post';
1315
1343
  interface BindingClientHmrUpdate {
1316
1344
  clientId: string;
1317
1345
  update: BindingHmrUpdate;
1318
1346
  }
1319
- interface BindingDynamicImportVarsPluginConfig {
1320
- include?: Array<BindingStringOrRegex>;
1321
- exclude?: Array<BindingStringOrRegex>;
1322
- resolver?: (id: string, importer: string) => MaybePromise<string | undefined>;
1323
- }
1324
1347
  type BindingError = {
1325
1348
  type: 'JsError';
1326
1349
  field0: Error;
@@ -1363,19 +1386,9 @@ interface BindingHookResolveIdExtraArgs {
1363
1386
  */
1364
1387
  kind: 'import-statement' | 'dynamic-import' | 'require-call' | 'import-rule' | 'url-token' | 'new-url' | 'hot-accept';
1365
1388
  }
1366
- interface BindingImportGlobPluginConfig {
1367
- root?: string;
1368
- restoreQueryExtension?: boolean;
1369
- }
1370
1389
  interface BindingIsolatedDeclarationPluginConfig {
1371
1390
  stripInternal?: boolean;
1372
1391
  }
1373
- interface BindingJsonPluginConfig {
1374
- minify?: boolean;
1375
- namedExports?: boolean;
1376
- stringify?: BindingJsonPluginStringify;
1377
- }
1378
- type BindingJsonPluginStringify = boolean | string;
1379
1392
  interface BindingJsonSourcemap {
1380
1393
  file?: string;
1381
1394
  mappings?: string;
@@ -1386,12 +1399,6 @@ interface BindingJsonSourcemap {
1386
1399
  debugId?: string;
1387
1400
  x_google_ignoreList?: Array<number>;
1388
1401
  }
1389
- interface BindingManifestPluginConfig {
1390
- root: string;
1391
- outPath: string;
1392
- isLegacy?: () => boolean;
1393
- cssEntries: () => Record<string, string>;
1394
- }
1395
1402
  interface BindingModulePreloadOptions {
1396
1403
  polyfill: boolean;
1397
1404
  resolveDependencies?: (filename: string, deps: string[], context: {
@@ -1399,19 +1406,13 @@ interface BindingModulePreloadOptions {
1399
1406
  hostType: 'html' | 'js';
1400
1407
  }) => string[];
1401
1408
  }
1402
- interface BindingModulePreloadPolyfillPluginConfig {
1403
- isServer?: boolean;
1404
- }
1405
1409
  interface BindingModules {
1406
1410
  values: Array<BindingRenderedModule>;
1407
1411
  keys: Array<string>;
1408
1412
  }
1409
- interface BindingReactRefreshWrapperPluginConfig {
1410
- cwd: string;
1411
- include?: Array<BindingStringOrRegex>;
1412
- exclude?: Array<BindingStringOrRegex>;
1413
- jsxImportSource: string;
1414
- reactRefreshHost: string;
1413
+ interface BindingOutputs {
1414
+ chunks: Array<BindingOutputChunk>;
1415
+ assets: Array<BindingOutputAsset>;
1415
1416
  }
1416
1417
  declare enum BindingRebuildStrategy {
1417
1418
  Always = 0,
@@ -1435,31 +1436,51 @@ interface BindingReplacePluginConfig {
1435
1436
  objectGuards?: boolean;
1436
1437
  sourcemap?: boolean;
1437
1438
  }
1438
- interface BindingReporterPluginConfig {
1439
- isTty: boolean;
1440
- isLib: boolean;
1441
- assetsDir: string;
1442
- chunkLimit: number;
1443
- shouldLogInfo: boolean;
1444
- warnLargeChunks: boolean;
1445
- reportCompressedSize: boolean;
1446
- }
1447
1439
  interface BindingSourcemap {
1448
1440
  inner: string | BindingJsonSourcemap;
1449
1441
  }
1450
1442
  interface BindingTransformHookExtraArgs {
1451
1443
  moduleType: string;
1452
1444
  }
1453
- interface BindingTransformPluginConfig {
1454
- include?: Array<BindingStringOrRegex>;
1455
- exclude?: Array<BindingStringOrRegex>;
1456
- jsxRefreshInclude?: Array<BindingStringOrRegex>;
1457
- jsxRefreshExclude?: Array<BindingStringOrRegex>;
1458
- isServerConsumer?: boolean;
1459
- jsxInject?: string;
1460
- transformOptions?: TransformOptions;
1445
+ interface BindingViteAssetImportMetaUrlPluginConfig {
1446
+ root: string;
1447
+ isLib: boolean;
1448
+ publicDir: string;
1449
+ clientEntry: string;
1450
+ tryFsResolve: (id: string) => string | undefined;
1451
+ assetResolver: (id: string, importer: string) => Promise<string | undefined>;
1452
+ assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
1453
+ }
1454
+ interface BindingViteAssetPluginConfig {
1455
+ root: string;
1456
+ isLib: boolean;
1457
+ isSsr: boolean;
1458
+ isWorker: boolean;
1459
+ urlBase: string;
1460
+ publicDir: string;
1461
+ decodedBase: string;
1462
+ isSkipAssets: boolean;
1463
+ assetsInclude: Array<BindingStringOrRegex>;
1464
+ assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
1465
+ renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
1466
+ }
1467
+ interface BindingViteBuildImportAnalysisPluginConfig {
1468
+ preloadCode: string;
1469
+ insertPreload: boolean;
1470
+ optimizeModulePreloadRelativePaths: boolean;
1471
+ renderBuiltUrl: boolean;
1472
+ isRelativeBase: boolean;
1473
+ v2?: BindingViteBuildImportAnalysisPluginV2Config;
1474
+ }
1475
+ interface BindingViteBuildImportAnalysisPluginV2Config {
1476
+ isSsr: boolean;
1477
+ urlBase: string;
1478
+ decodedBase: string;
1479
+ modulePreload: false | BindingModulePreloadOptions;
1480
+ renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
1461
1481
  }
1462
1482
  interface BindingViteCssPluginConfig {
1483
+ root: string;
1463
1484
  isLib: boolean;
1464
1485
  publicDir: string;
1465
1486
  compileCSS: (url: string, importer: string, resolver: BindingUrlResolver) => Promise<{
@@ -1472,6 +1493,7 @@ interface BindingViteCssPluginConfig {
1472
1493
  assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
1473
1494
  }
1474
1495
  interface BindingViteCssPostPluginConfig {
1496
+ root: string;
1475
1497
  isLib: boolean;
1476
1498
  isSsr: boolean;
1477
1499
  isWorker: boolean;
@@ -1483,10 +1505,19 @@ interface BindingViteCssPostPluginConfig {
1483
1505
  decodedBase: string;
1484
1506
  libCssFilename?: string;
1485
1507
  isLegacy?: () => boolean;
1486
- cssMinify?: (css: string) => Promise<string>;
1508
+ cssMinify?: (css: string, inline: boolean) => Promise<string>;
1487
1509
  renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
1488
1510
  }
1511
+ interface BindingViteDynamicImportVarsPluginConfig {
1512
+ include?: Array<BindingStringOrRegex>;
1513
+ exclude?: Array<BindingStringOrRegex>;
1514
+ resolver?: (id: string, importer: string) => MaybePromise<string | undefined>;
1515
+ }
1516
+ interface BindingViteHtmlInlineProxyPluginConfig {
1517
+ root: string;
1518
+ }
1489
1519
  interface BindingViteHtmlPluginConfig {
1520
+ root: string;
1490
1521
  isLib: boolean;
1491
1522
  isSsr: boolean;
1492
1523
  urlBase: string;
@@ -1496,6 +1527,44 @@ interface BindingViteHtmlPluginConfig {
1496
1527
  modulePreload: false | BindingModulePreloadOptions;
1497
1528
  assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
1498
1529
  renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
1530
+ transformIndexHtml: (html: string, path: string, filename: string, hook: 'transform' | 'generateBundle', output?: BindingOutputs, chunk?: BindingOutputChunk) => Promise<string>;
1531
+ }
1532
+ interface BindingViteImportGlobPluginConfig {
1533
+ root?: string;
1534
+ restoreQueryExtension?: boolean;
1535
+ }
1536
+ interface BindingViteJsonPluginConfig {
1537
+ minify?: boolean;
1538
+ namedExports?: boolean;
1539
+ stringify?: BindingViteJsonPluginStringify;
1540
+ }
1541
+ type BindingViteJsonPluginStringify = boolean | string;
1542
+ interface BindingViteManifestPluginConfig {
1543
+ root: string;
1544
+ outPath: string;
1545
+ isEnableV2?: boolean;
1546
+ isLegacy?: () => boolean;
1547
+ cssEntries: () => Record<string, string>;
1548
+ }
1549
+ interface BindingViteModulePreloadPolyfillPluginConfig {
1550
+ isServer?: boolean;
1551
+ }
1552
+ interface BindingViteReactRefreshWrapperPluginConfig {
1553
+ cwd: string;
1554
+ include?: Array<BindingStringOrRegex>;
1555
+ exclude?: Array<BindingStringOrRegex>;
1556
+ jsxImportSource: string;
1557
+ reactRefreshHost: string;
1558
+ }
1559
+ interface BindingViteReporterPluginConfig {
1560
+ root: string;
1561
+ isTty: boolean;
1562
+ isLib: boolean;
1563
+ assetsDir: string;
1564
+ chunkLimit: number;
1565
+ shouldLogInfo: boolean;
1566
+ warnLargeChunks: boolean;
1567
+ reportCompressedSize: boolean;
1499
1568
  }
1500
1569
  interface BindingViteResolvePluginConfig {
1501
1570
  resolveOptions: BindingViteResolvePluginResolveOptions;
@@ -1529,7 +1598,17 @@ interface BindingViteResolvePluginResolveOptions {
1529
1598
  preserveSymlinks: boolean;
1530
1599
  tsconfigPaths: boolean;
1531
1600
  }
1532
- interface BindingWasmHelperPluginConfig {
1601
+ interface BindingViteTransformPluginConfig {
1602
+ root: string;
1603
+ include?: Array<BindingStringOrRegex>;
1604
+ exclude?: Array<BindingStringOrRegex>;
1605
+ jsxRefreshInclude?: Array<BindingStringOrRegex>;
1606
+ jsxRefreshExclude?: Array<BindingStringOrRegex>;
1607
+ isServerConsumer?: boolean;
1608
+ jsxInject?: string;
1609
+ transformOptions?: TransformOptions;
1610
+ }
1611
+ interface BindingViteWasmHelperPluginConfig {
1533
1612
  decodedBase: string;
1534
1613
  }
1535
1614
  interface ExternalMemoryStatus {
@@ -1550,4 +1629,4 @@ interface PreRenderedChunk {
1550
1629
  exports: Array<string>;
1551
1630
  }
1552
1631
  //#endregion
1553
- export { IsolatedDeclarationsOptions as A, ResolverFactory as B, BindingViteCssPostPluginConfig as C, BindingWatcherBundler as D, BindingWasmHelperPluginConfig as E, NapiResolveOptions as F, moduleRunnerTransform as G, TransformResult as H, ParseResult as I, transform as J, parseAsync as K, ParserOptions as L, JsxOptions as M, MinifyOptions as N, BindingWatcherEvent as O, MinifyResult as P, PreRenderedChunk as R, BindingViteCssPluginConfig as S, BindingViteResolvePluginConfig as T, isolatedDeclaration as U, TransformOptions as V, minify as W, BindingReplacePluginConfig as _, BindingDynamicImportVarsPluginConfig as a, BindingTransformPluginConfig as b, BindingImportGlobPluginConfig as c, BindingMagicString as d, BindingManifestPluginConfig as f, BindingRenderedChunk as g, BindingRebuildStrategy as h, BindingClientHmrUpdate as i, IsolatedDeclarationsResult as j, ExternalMemoryStatus as k, BindingIsolatedDeclarationPluginConfig as l, BindingReactRefreshWrapperPluginConfig as m, BindingBuildImportAnalysisPluginConfig as n, BindingEsmExternalRequirePluginConfig as o, BindingModulePreloadPolyfillPluginConfig as p, parseSync as q, BindingBuiltinPluginName as r, BindingHookResolveIdExtraArgs as s, BindingAssetPluginConfig as t, BindingJsonPluginConfig as u, BindingReporterPluginConfig as v, BindingViteHtmlPluginConfig as w, BindingUrlResolver as x, BindingTransformHookExtraArgs as y, ResolveResult as z };
1632
+ export { BindingWatcherBundler as A, ParserOptions as B, BindingViteManifestPluginConfig as C, BindingViteResolvePluginConfig as D, BindingViteReporterPluginConfig as E, JsxOptions as F, TransformResult as G, ResolveResult as H, MinifyOptions as I, minify as J, isolatedDeclaration as K, MinifyResult as L, ExternalMemoryStatus as M, IsolatedDeclarationsOptions as N, BindingViteTransformPluginConfig as O, IsolatedDeclarationsResult as P, transformSync as Q, NapiResolveOptions as R, BindingViteJsonPluginConfig as S, BindingViteReactRefreshWrapperPluginConfig as T, ResolverFactory as U, PreRenderedChunk as V, TransformOptions as W, moduleRunnerTransform as X, minifySync as Y, transform as Z, BindingViteCssPostPluginConfig as _, BindingHookResolveIdExtraArgs as a, BindingViteHtmlPluginConfig as b, BindingRebuildStrategy as c, BindingTransformHookExtraArgs as d, BindingUrlResolver as f, BindingViteCssPluginConfig as g, BindingViteBuildImportAnalysisPluginConfig as h, BindingEsmExternalRequirePluginConfig as i, BindingWatcherEvent as j, BindingViteWasmHelperPluginConfig as k, BindingRenderedChunk as l, BindingViteAssetPluginConfig as m, BindingBundleState as n, BindingIsolatedDeclarationPluginConfig as o, BindingViteAssetImportMetaUrlPluginConfig as p, isolatedDeclarationSync as q, BindingClientHmrUpdate as r, BindingMagicString as s, BindingBuiltinPluginName as t, BindingReplacePluginConfig as u, BindingViteDynamicImportVarsPluginConfig as v, BindingViteModulePreloadPolyfillPluginConfig as w, BindingViteImportGlobPluginConfig as x, BindingViteHtmlInlineProxyPluginConfig as y, ParseResult as z };