@rolldown/browser 1.0.0-beta.50 → 1.0.0-beta.51
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.
- package/dist/cli.mjs +11 -7
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +9 -5
- package/dist/constructors-DoUEJY6G.js +65 -0
- package/dist/experimental-index.browser.mjs +17 -11
- package/dist/experimental-index.d.mts +52 -15
- package/dist/experimental-index.mjs +21 -13
- package/dist/filter-index.d.mts +3 -3
- package/dist/filter-index.mjs +2 -1
- package/dist/index.browser.mjs +161 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +36 -4
- package/dist/normalize-string-or-regex-BXFT9GiS.js +830 -0
- package/dist/parallel-plugin-worker.mjs +5 -4
- package/dist/parallel-plugin.d.mts +3 -3
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.browser.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +3 -2
- package/dist/rolldown-binding.wasi-browser.js +5 -2
- package/dist/rolldown-binding.wasi.cjs +5 -2
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{src-dUoCuQap.js → rolldown-build-C0UB1WZy.js} +27 -751
- package/dist/shared/{binding-BTup3pHG.d.mts → binding-lSvYApx7.d.mts} +161 -87
- package/dist/shared/bindingify-input-options-CSdAtTcQ.mjs +1568 -0
- package/dist/shared/{composable-filters-CBpK2Fbc.mjs → composable-filters-DZ5ToxRJ.mjs} +1 -22
- package/dist/shared/constructors-DF6M1PTb.mjs +65 -0
- package/dist/shared/constructors-DgFF472b.d.mts +31 -0
- package/dist/shared/{define-config-DiSv-kgF.d.mts → define-config-BKu-xa_0.d.mts} +10 -49
- package/dist/shared/define-config-DfeZGBEt.mjs +7 -0
- package/dist/shared/{load-config-BqnLKlUM.mjs → load-config-Beo_LOwd.mjs} +1 -1
- package/dist/shared/misc-5GYLGQ20.mjs +22 -0
- package/dist/shared/normalize-string-or-regex-DvECZN2V.mjs +629 -0
- package/dist/shared/{parse-ast-index-DtI4JSVR.mjs → parse-ast-index-C_M-Y4oC.mjs} +3 -3
- package/dist/shared/rolldown-BhV7L6Kg.mjs +10 -0
- package/dist/shared/rolldown-build-DYR94CyF.mjs +2121 -0
- package/dist/shared/utils-BJWI2OzT.d.mts +62 -0
- package/dist/shared/watch-Cjxo-3u4.mjs +338 -0
- package/package.json +1 -1
- package/dist/constructors-EhfoQfqh.js +0 -68
- package/dist/normalize-string-or-regex-d47jXr3r.js +0 -231
- package/dist/shared/constructors-B7IHT8j4.d.mts +0 -32
- package/dist/shared/constructors-DcEzB0nc.mjs +0 -68
- package/dist/shared/normalize-string-or-regex-CbDij6KB.mjs +0 -46
- package/dist/shared/src-D0x2a_iO.mjs +0 -4597
- package/dist/shared/utils-BKVJO2vQ.d.mts +0 -18
- /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
|
-
/**
|
|
128
|
-
|
|
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.
|
|
@@ -270,7 +276,7 @@ type ImportNameKind = /** `import { x } from "mod"` */
|
|
|
270
276
|
*
|
|
271
277
|
* Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
|
|
272
278
|
*/
|
|
273
|
-
declare function
|
|
279
|
+
declare function parse(filename: string, sourceText: string, options?: ParserOptions | undefined | null): Promise<ParseResult>;
|
|
274
280
|
interface ParserOptions {
|
|
275
281
|
/** Treat the source text as `js`, `jsx`, `ts`, `tsx` or `dts`. */
|
|
276
282
|
lang?: 'js' | 'jsx' | 'ts' | 'tsx' | 'dts';
|
|
@@ -767,8 +773,12 @@ type HelperMode =
|
|
|
767
773
|
interface Helpers {
|
|
768
774
|
mode?: HelperMode;
|
|
769
775
|
}
|
|
770
|
-
/**
|
|
771
|
-
|
|
776
|
+
/**
|
|
777
|
+
* TypeScript Isolated Declarations for Standalone DTS Emit (async)
|
|
778
|
+
*
|
|
779
|
+
* Note: This function can be slower than `isolatedDeclarationSync` due to the overhead of spawning a thread.
|
|
780
|
+
*/
|
|
781
|
+
declare function isolatedDeclaration(filename: string, sourceText: string, options?: IsolatedDeclarationsOptions | undefined | null): Promise<IsolatedDeclarationsResult>;
|
|
772
782
|
interface IsolatedDeclarationsOptions {
|
|
773
783
|
/**
|
|
774
784
|
* Do not emit declarations for code that has an @internal annotation in its JSDoc comment.
|
|
@@ -786,6 +796,8 @@ interface IsolatedDeclarationsResult {
|
|
|
786
796
|
map?: SourceMap;
|
|
787
797
|
errors: Array<OxcError>;
|
|
788
798
|
}
|
|
799
|
+
/** TypeScript Isolated Declarations for Standalone DTS Emit */
|
|
800
|
+
declare function isolatedDeclarationSync(filename: string, sourceText: string, options?: IsolatedDeclarationsOptions | undefined | null): IsolatedDeclarationsResult;
|
|
789
801
|
/**
|
|
790
802
|
* Configure how TSX and JSX are transformed.
|
|
791
803
|
*
|
|
@@ -891,9 +903,11 @@ interface JsxOptions {
|
|
|
891
903
|
* @returns an object containing the transformed code, source maps, and any
|
|
892
904
|
* errors that occurred during parsing or transformation.
|
|
893
905
|
*
|
|
906
|
+
* Note: This function can be slower than `moduleRunnerTransformSync` due to the overhead of spawning a thread.
|
|
907
|
+
*
|
|
894
908
|
* @deprecated Only works for Vite.
|
|
895
909
|
*/
|
|
896
|
-
declare function moduleRunnerTransform(filename: string, sourceText: string, options?: ModuleRunnerTransformOptions | undefined | null): ModuleRunnerTransformResult
|
|
910
|
+
declare function moduleRunnerTransform(filename: string, sourceText: string, options?: ModuleRunnerTransformOptions | undefined | null): Promise<ModuleRunnerTransformResult>;
|
|
897
911
|
interface ModuleRunnerTransformOptions {
|
|
898
912
|
/**
|
|
899
913
|
* Enable source map generation.
|
|
@@ -932,6 +946,7 @@ interface ModuleRunnerTransformResult {
|
|
|
932
946
|
}
|
|
933
947
|
interface PluginsOptions {
|
|
934
948
|
styledComponents?: StyledComponentsOptions;
|
|
949
|
+
taggedTemplateEscape?: boolean;
|
|
935
950
|
}
|
|
936
951
|
interface ReactRefreshOptions {
|
|
937
952
|
/**
|
|
@@ -1027,18 +1042,20 @@ interface StyledComponentsOptions {
|
|
|
1027
1042
|
topLevelImportPaths?: Array<string>;
|
|
1028
1043
|
}
|
|
1029
1044
|
/**
|
|
1030
|
-
* Transpile a JavaScript or TypeScript into a target ECMAScript version.
|
|
1045
|
+
* Transpile a JavaScript or TypeScript into a target ECMAScript version, asynchronously.
|
|
1046
|
+
*
|
|
1047
|
+
* Note: This function can be slower than `transform` due to the overhead of spawning a thread.
|
|
1031
1048
|
*
|
|
1032
1049
|
* @param filename The name of the file being transformed. If this is a
|
|
1033
|
-
* relative path, consider setting the {@link TransformOptions#cwd} option
|
|
1050
|
+
* relative path, consider setting the {@link TransformOptions#cwd} option.
|
|
1034
1051
|
* @param sourceText the source code itself
|
|
1035
1052
|
* @param options The options for the transformation. See {@link
|
|
1036
1053
|
* TransformOptions} for more information.
|
|
1037
1054
|
*
|
|
1038
|
-
* @returns an object containing the transformed code,
|
|
1039
|
-
* errors that occurred during parsing or transformation.
|
|
1055
|
+
* @returns a promise that resolves to an object containing the transformed code,
|
|
1056
|
+
* source maps, and any errors that occurred during parsing or transformation.
|
|
1040
1057
|
*/
|
|
1041
|
-
declare function transform(filename: string, sourceText: string, options?: TransformOptions | undefined | null): TransformResult
|
|
1058
|
+
declare function transform(filename: string, sourceText: string, options?: TransformOptions | undefined | null): Promise<TransformResult>;
|
|
1042
1059
|
/**
|
|
1043
1060
|
* Options for transforming a JavaScript or TypeScript file.
|
|
1044
1061
|
*
|
|
@@ -1147,6 +1164,19 @@ interface TransformResult {
|
|
|
1147
1164
|
*/
|
|
1148
1165
|
errors: Array<OxcError>;
|
|
1149
1166
|
}
|
|
1167
|
+
/**
|
|
1168
|
+
* Transpile a JavaScript or TypeScript into a target ECMAScript version.
|
|
1169
|
+
*
|
|
1170
|
+
* @param filename The name of the file being transformed. If this is a
|
|
1171
|
+
* relative path, consider setting the {@link TransformOptions#cwd} option..
|
|
1172
|
+
* @param sourceText the source code itself
|
|
1173
|
+
* @param options The options for the transformation. See {@link
|
|
1174
|
+
* TransformOptions} for more information.
|
|
1175
|
+
*
|
|
1176
|
+
* @returns an object containing the transformed code, source maps, and any
|
|
1177
|
+
* errors that occurred during parsing or transformation.
|
|
1178
|
+
*/
|
|
1179
|
+
declare function transformSync(filename: string, sourceText: string, options?: TransformOptions | undefined | null): TransformResult;
|
|
1150
1180
|
interface TypeScriptOptions {
|
|
1151
1181
|
jsxPragma?: string;
|
|
1152
1182
|
jsxPragmaFrag?: string;
|
|
@@ -1247,6 +1277,32 @@ declare class BindingMagicString {
|
|
|
1247
1277
|
relocate(start: number, end: number, to: number): void;
|
|
1248
1278
|
indent(indentor?: string | undefined | null): void;
|
|
1249
1279
|
}
|
|
1280
|
+
declare class BindingOutputAsset {
|
|
1281
|
+
dropInner(): ExternalMemoryStatus;
|
|
1282
|
+
getFileName(): string;
|
|
1283
|
+
getOriginalFileName(): string | null;
|
|
1284
|
+
getOriginalFileNames(): Array<string>;
|
|
1285
|
+
getSource(): BindingAssetSource;
|
|
1286
|
+
getName(): string | null;
|
|
1287
|
+
getNames(): Array<string>;
|
|
1288
|
+
}
|
|
1289
|
+
declare class BindingOutputChunk {
|
|
1290
|
+
dropInner(): ExternalMemoryStatus;
|
|
1291
|
+
getIsEntry(): boolean;
|
|
1292
|
+
getIsDynamicEntry(): boolean;
|
|
1293
|
+
getFacadeModuleId(): string | null;
|
|
1294
|
+
getModuleIds(): Array<string>;
|
|
1295
|
+
getExports(): Array<string>;
|
|
1296
|
+
getFileName(): string;
|
|
1297
|
+
getModules(): BindingModules;
|
|
1298
|
+
getImports(): Array<string>;
|
|
1299
|
+
getDynamicImports(): Array<string>;
|
|
1300
|
+
getCode(): string;
|
|
1301
|
+
getMap(): string | null;
|
|
1302
|
+
getSourcemapFileName(): string | null;
|
|
1303
|
+
getPreliminaryFileName(): string;
|
|
1304
|
+
getName(): string;
|
|
1305
|
+
}
|
|
1250
1306
|
declare class BindingRenderedChunk {
|
|
1251
1307
|
get name(): string;
|
|
1252
1308
|
get isEntry(): boolean;
|
|
@@ -1284,43 +1340,14 @@ declare class BindingWatcherEvent {
|
|
|
1284
1340
|
bundleEventKind(): string;
|
|
1285
1341
|
bundleErrorData(): BindingBundleErrorEventData;
|
|
1286
1342
|
}
|
|
1287
|
-
interface
|
|
1288
|
-
|
|
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;
|
|
1343
|
+
interface BindingAssetSource {
|
|
1344
|
+
inner: string | Uint8Array;
|
|
1298
1345
|
}
|
|
1299
|
-
|
|
1300
|
-
preloadCode: string;
|
|
1301
|
-
insertPreload: boolean;
|
|
1302
|
-
optimizeModulePreloadRelativePaths: boolean;
|
|
1303
|
-
renderBuiltUrl: boolean;
|
|
1304
|
-
isRelativeBase: boolean;
|
|
1305
|
-
v2?: BindingBuildImportAnalysisPluginV2Config;
|
|
1306
|
-
}
|
|
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;
|
|
1313
|
-
}
|
|
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';
|
|
1346
|
+
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';
|
|
1315
1347
|
interface BindingClientHmrUpdate {
|
|
1316
1348
|
clientId: string;
|
|
1317
1349
|
update: BindingHmrUpdate;
|
|
1318
1350
|
}
|
|
1319
|
-
interface BindingDynamicImportVarsPluginConfig {
|
|
1320
|
-
include?: Array<BindingStringOrRegex>;
|
|
1321
|
-
exclude?: Array<BindingStringOrRegex>;
|
|
1322
|
-
resolver?: (id: string, importer: string) => MaybePromise<string | undefined>;
|
|
1323
|
-
}
|
|
1324
1351
|
type BindingError = {
|
|
1325
1352
|
type: 'JsError';
|
|
1326
1353
|
field0: Error;
|
|
@@ -1363,19 +1390,9 @@ interface BindingHookResolveIdExtraArgs {
|
|
|
1363
1390
|
*/
|
|
1364
1391
|
kind: 'import-statement' | 'dynamic-import' | 'require-call' | 'import-rule' | 'url-token' | 'new-url' | 'hot-accept';
|
|
1365
1392
|
}
|
|
1366
|
-
interface BindingImportGlobPluginConfig {
|
|
1367
|
-
root?: string;
|
|
1368
|
-
restoreQueryExtension?: boolean;
|
|
1369
|
-
}
|
|
1370
1393
|
interface BindingIsolatedDeclarationPluginConfig {
|
|
1371
1394
|
stripInternal?: boolean;
|
|
1372
1395
|
}
|
|
1373
|
-
interface BindingJsonPluginConfig {
|
|
1374
|
-
minify?: boolean;
|
|
1375
|
-
namedExports?: boolean;
|
|
1376
|
-
stringify?: BindingJsonPluginStringify;
|
|
1377
|
-
}
|
|
1378
|
-
type BindingJsonPluginStringify = boolean | string;
|
|
1379
1396
|
interface BindingJsonSourcemap {
|
|
1380
1397
|
file?: string;
|
|
1381
1398
|
mappings?: string;
|
|
@@ -1386,12 +1403,6 @@ interface BindingJsonSourcemap {
|
|
|
1386
1403
|
debugId?: string;
|
|
1387
1404
|
x_google_ignoreList?: Array<number>;
|
|
1388
1405
|
}
|
|
1389
|
-
interface BindingManifestPluginConfig {
|
|
1390
|
-
root: string;
|
|
1391
|
-
outPath: string;
|
|
1392
|
-
isLegacy?: () => boolean;
|
|
1393
|
-
cssEntries: () => Record<string, string>;
|
|
1394
|
-
}
|
|
1395
1406
|
interface BindingModulePreloadOptions {
|
|
1396
1407
|
polyfill: boolean;
|
|
1397
1408
|
resolveDependencies?: (filename: string, deps: string[], context: {
|
|
@@ -1399,19 +1410,13 @@ interface BindingModulePreloadOptions {
|
|
|
1399
1410
|
hostType: 'html' | 'js';
|
|
1400
1411
|
}) => string[];
|
|
1401
1412
|
}
|
|
1402
|
-
interface BindingModulePreloadPolyfillPluginConfig {
|
|
1403
|
-
isServer?: boolean;
|
|
1404
|
-
}
|
|
1405
1413
|
interface BindingModules {
|
|
1406
1414
|
values: Array<BindingRenderedModule>;
|
|
1407
1415
|
keys: Array<string>;
|
|
1408
1416
|
}
|
|
1409
|
-
interface
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
exclude?: Array<BindingStringOrRegex>;
|
|
1413
|
-
jsxImportSource: string;
|
|
1414
|
-
reactRefreshHost: string;
|
|
1417
|
+
interface BindingOutputs {
|
|
1418
|
+
chunks: Array<BindingOutputChunk>;
|
|
1419
|
+
assets: Array<BindingOutputAsset>;
|
|
1415
1420
|
}
|
|
1416
1421
|
declare enum BindingRebuildStrategy {
|
|
1417
1422
|
Always = 0,
|
|
@@ -1435,31 +1440,42 @@ interface BindingReplacePluginConfig {
|
|
|
1435
1440
|
objectGuards?: boolean;
|
|
1436
1441
|
sourcemap?: boolean;
|
|
1437
1442
|
}
|
|
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
1443
|
interface BindingSourcemap {
|
|
1448
1444
|
inner: string | BindingJsonSourcemap;
|
|
1449
1445
|
}
|
|
1450
1446
|
interface BindingTransformHookExtraArgs {
|
|
1451
1447
|
moduleType: string;
|
|
1452
1448
|
}
|
|
1453
|
-
interface
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1449
|
+
interface BindingViteAssetPluginConfig {
|
|
1450
|
+
root: string;
|
|
1451
|
+
isLib: boolean;
|
|
1452
|
+
isSsr: boolean;
|
|
1453
|
+
isWorker: boolean;
|
|
1454
|
+
urlBase: string;
|
|
1455
|
+
publicDir: string;
|
|
1456
|
+
decodedBase: string;
|
|
1457
|
+
isSkipAssets: boolean;
|
|
1458
|
+
assetsInclude: Array<BindingStringOrRegex>;
|
|
1459
|
+
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1460
|
+
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1461
|
+
}
|
|
1462
|
+
interface BindingViteBuildImportAnalysisPluginConfig {
|
|
1463
|
+
preloadCode: string;
|
|
1464
|
+
insertPreload: boolean;
|
|
1465
|
+
optimizeModulePreloadRelativePaths: boolean;
|
|
1466
|
+
renderBuiltUrl: boolean;
|
|
1467
|
+
isRelativeBase: boolean;
|
|
1468
|
+
v2?: BindingViteBuildImportAnalysisPluginV2Config;
|
|
1469
|
+
}
|
|
1470
|
+
interface BindingViteBuildImportAnalysisPluginV2Config {
|
|
1471
|
+
isSsr: boolean;
|
|
1472
|
+
urlBase: string;
|
|
1473
|
+
decodedBase: string;
|
|
1474
|
+
modulePreload: false | BindingModulePreloadOptions;
|
|
1475
|
+
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1461
1476
|
}
|
|
1462
1477
|
interface BindingViteCssPluginConfig {
|
|
1478
|
+
root: string;
|
|
1463
1479
|
isLib: boolean;
|
|
1464
1480
|
publicDir: string;
|
|
1465
1481
|
compileCSS: (url: string, importer: string, resolver: BindingUrlResolver) => Promise<{
|
|
@@ -1472,6 +1488,7 @@ interface BindingViteCssPluginConfig {
|
|
|
1472
1488
|
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1473
1489
|
}
|
|
1474
1490
|
interface BindingViteCssPostPluginConfig {
|
|
1491
|
+
root: string;
|
|
1475
1492
|
isLib: boolean;
|
|
1476
1493
|
isSsr: boolean;
|
|
1477
1494
|
isWorker: boolean;
|
|
@@ -1486,7 +1503,16 @@ interface BindingViteCssPostPluginConfig {
|
|
|
1486
1503
|
cssMinify?: (css: string) => Promise<string>;
|
|
1487
1504
|
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1488
1505
|
}
|
|
1506
|
+
interface BindingViteDynamicImportVarsPluginConfig {
|
|
1507
|
+
include?: Array<BindingStringOrRegex>;
|
|
1508
|
+
exclude?: Array<BindingStringOrRegex>;
|
|
1509
|
+
resolver?: (id: string, importer: string) => MaybePromise<string | undefined>;
|
|
1510
|
+
}
|
|
1511
|
+
interface BindingViteHtmlInlineProxyPluginConfig {
|
|
1512
|
+
root: string;
|
|
1513
|
+
}
|
|
1489
1514
|
interface BindingViteHtmlPluginConfig {
|
|
1515
|
+
root: string;
|
|
1490
1516
|
isLib: boolean;
|
|
1491
1517
|
isSsr: boolean;
|
|
1492
1518
|
urlBase: string;
|
|
@@ -1496,6 +1522,44 @@ interface BindingViteHtmlPluginConfig {
|
|
|
1496
1522
|
modulePreload: false | BindingModulePreloadOptions;
|
|
1497
1523
|
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1498
1524
|
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1525
|
+
transformIndexHtml: (html: string, path: string, filename: string, hook: 'transform' | 'generateBundle', output?: BindingOutputs, chunk?: BindingOutputChunk) => Promise<string>;
|
|
1526
|
+
}
|
|
1527
|
+
interface BindingViteImportGlobPluginConfig {
|
|
1528
|
+
root?: string;
|
|
1529
|
+
restoreQueryExtension?: boolean;
|
|
1530
|
+
}
|
|
1531
|
+
interface BindingViteJsonPluginConfig {
|
|
1532
|
+
minify?: boolean;
|
|
1533
|
+
namedExports?: boolean;
|
|
1534
|
+
stringify?: BindingViteJsonPluginStringify;
|
|
1535
|
+
}
|
|
1536
|
+
type BindingViteJsonPluginStringify = boolean | string;
|
|
1537
|
+
interface BindingViteManifestPluginConfig {
|
|
1538
|
+
root: string;
|
|
1539
|
+
outPath: string;
|
|
1540
|
+
isEnableV2?: boolean;
|
|
1541
|
+
isLegacy?: () => boolean;
|
|
1542
|
+
cssEntries: () => Record<string, string>;
|
|
1543
|
+
}
|
|
1544
|
+
interface BindingViteModulePreloadPolyfillPluginConfig {
|
|
1545
|
+
isServer?: boolean;
|
|
1546
|
+
}
|
|
1547
|
+
interface BindingViteReactRefreshWrapperPluginConfig {
|
|
1548
|
+
cwd: string;
|
|
1549
|
+
include?: Array<BindingStringOrRegex>;
|
|
1550
|
+
exclude?: Array<BindingStringOrRegex>;
|
|
1551
|
+
jsxImportSource: string;
|
|
1552
|
+
reactRefreshHost: string;
|
|
1553
|
+
}
|
|
1554
|
+
interface BindingViteReporterPluginConfig {
|
|
1555
|
+
root: string;
|
|
1556
|
+
isTty: boolean;
|
|
1557
|
+
isLib: boolean;
|
|
1558
|
+
assetsDir: string;
|
|
1559
|
+
chunkLimit: number;
|
|
1560
|
+
shouldLogInfo: boolean;
|
|
1561
|
+
warnLargeChunks: boolean;
|
|
1562
|
+
reportCompressedSize: boolean;
|
|
1499
1563
|
}
|
|
1500
1564
|
interface BindingViteResolvePluginConfig {
|
|
1501
1565
|
resolveOptions: BindingViteResolvePluginResolveOptions;
|
|
@@ -1529,7 +1593,17 @@ interface BindingViteResolvePluginResolveOptions {
|
|
|
1529
1593
|
preserveSymlinks: boolean;
|
|
1530
1594
|
tsconfigPaths: boolean;
|
|
1531
1595
|
}
|
|
1532
|
-
interface
|
|
1596
|
+
interface BindingViteTransformPluginConfig {
|
|
1597
|
+
root: string;
|
|
1598
|
+
include?: Array<BindingStringOrRegex>;
|
|
1599
|
+
exclude?: Array<BindingStringOrRegex>;
|
|
1600
|
+
jsxRefreshInclude?: Array<BindingStringOrRegex>;
|
|
1601
|
+
jsxRefreshExclude?: Array<BindingStringOrRegex>;
|
|
1602
|
+
isServerConsumer?: boolean;
|
|
1603
|
+
jsxInject?: string;
|
|
1604
|
+
transformOptions?: TransformOptions;
|
|
1605
|
+
}
|
|
1606
|
+
interface BindingViteWasmHelperPluginConfig {
|
|
1533
1607
|
decodedBase: string;
|
|
1534
1608
|
}
|
|
1535
1609
|
interface ExternalMemoryStatus {
|
|
@@ -1550,4 +1624,4 @@ interface PreRenderedChunk {
|
|
|
1550
1624
|
exports: Array<string>;
|
|
1551
1625
|
}
|
|
1552
1626
|
//#endregion
|
|
1553
|
-
export {
|
|
1627
|
+
export { ExternalMemoryStatus as A, ResolveResult as B, BindingViteReactRefreshWrapperPluginConfig as C, BindingViteWasmHelperPluginConfig as D, BindingViteTransformPluginConfig as E, MinifyResult as F, isolatedDeclarationSync as G, TransformOptions as H, NapiResolveOptions as I, moduleRunnerTransform as J, minify as K, ParseResult as L, IsolatedDeclarationsResult as M, JsxOptions as N, BindingWatcherBundler as O, MinifyOptions as P, transformSync as Q, ParserOptions as R, BindingViteModulePreloadPolyfillPluginConfig as S, BindingViteResolvePluginConfig as T, TransformResult as U, ResolverFactory as V, isolatedDeclaration as W, parseSync as X, parse as Y, transform as Z, BindingViteHtmlInlineProxyPluginConfig as _, BindingIsolatedDeclarationPluginConfig as a, BindingViteJsonPluginConfig as b, BindingRenderedChunk as c, BindingUrlResolver as d, BindingViteAssetPluginConfig as f, BindingViteDynamicImportVarsPluginConfig as g, BindingViteCssPostPluginConfig as h, BindingHookResolveIdExtraArgs as i, IsolatedDeclarationsOptions as j, BindingWatcherEvent as k, BindingReplacePluginConfig as l, BindingViteCssPluginConfig as m, BindingClientHmrUpdate as n, BindingMagicString as o, BindingViteBuildImportAnalysisPluginConfig as p, minifySync as q, BindingEsmExternalRequirePluginConfig as r, BindingRebuildStrategy as s, BindingBuiltinPluginName as t, BindingTransformHookExtraArgs as u, BindingViteHtmlPluginConfig as v, BindingViteReporterPluginConfig as w, BindingViteManifestPluginConfig as x, BindingViteImportGlobPluginConfig as y, PreRenderedChunk as z };
|