rolldown 1.0.0-beta.8-commit.c76291c → 1.0.0-beta.8-commit.56abf23
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.cjs +9 -9
- package/dist/cli.mjs +8 -8
- package/dist/experimental-index.cjs +7 -3
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +5 -3
- package/dist/filter-index.cjs +93 -11
- package/dist/filter-index.d.cts +4 -3
- package/dist/filter-index.d.mts +4 -3
- package/dist/filter-index.mjs +44 -3
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.cjs +5 -4
- package/dist/parallel-plugin-worker.mjs +5 -4
- package/dist/parallel-plugin.d.cts +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/shared/{binding.d-BRwjFIld.d.cts → binding.d-Ddl7hcN3.d.cts} +2 -0
- package/dist/shared/{binding.d-DVNuaImz.d.mts → binding.d-Y-OUMnnv.d.mts} +2 -0
- package/dist/shared/{chunk-DUYDk_2O.mjs → chunk--iN_1bjD.mjs} +1 -1
- package/dist/shared/{input-options.d-CcrldgHK.d.cts → input-options.d-DVmWlHE9.d.cts} +3 -56
- package/dist/shared/{input-options.d-DVGWBVp4.d.mts → input-options.d-Dnzz-V9o.d.mts} +3 -56
- package/dist/shared/misc-BWx4LNta.cjs +68 -0
- package/dist/shared/misc-DGAe2XOW.mjs +28 -0
- package/dist/shared/{parse-ast-index-CHCsJTcD.mjs → parse-ast-index-BXDjUzKF.mjs} +4 -4
- package/dist/shared/{parse-ast-index-n6Ys2h9o.cjs → parse-ast-index-C37DYnt2.cjs} +7 -7
- package/dist/shared/{prompt-UMUDMApt.mjs → prompt-AXtOIn-r.mjs} +1 -1
- package/dist/shared/{src-_pefwDkF.cjs → src-RTReWFUn.cjs} +127 -119
- package/dist/shared/{src-DdLhlxoJ.mjs → src-TcTOaWt7.mjs} +127 -111
- package/package.json +16 -16
- package/dist/shared/filter-index-DblXSw9s.cjs +0 -255
- package/dist/shared/filter-index-hnEzlqRW.mjs +0 -174
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-
|
|
1
|
+
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-Y-OUMnnv.mjs";
|
|
2
|
+
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
2
3
|
import { Program } from "@oxc-project/types";
|
|
3
4
|
|
|
4
5
|
//#region src/log/logging.d.ts
|
|
@@ -422,60 +423,6 @@ interface NormalizedOutputOptions {
|
|
|
422
423
|
plugins: RolldownPlugin[];
|
|
423
424
|
}
|
|
424
425
|
|
|
425
|
-
//#endregion
|
|
426
|
-
//#region src/filter-index.d.ts
|
|
427
|
-
type FilterExpressionKind = FilterExpression["kind"];
|
|
428
|
-
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code | Include | Exclude$1;
|
|
429
|
-
type TopLevelFilterExpression = Include | Exclude$1;
|
|
430
|
-
declare class And {
|
|
431
|
-
kind: "and";
|
|
432
|
-
args: FilterExpression[];
|
|
433
|
-
constructor(...args: FilterExpression[]);
|
|
434
|
-
}
|
|
435
|
-
declare class Or {
|
|
436
|
-
kind: "or";
|
|
437
|
-
args: FilterExpression[];
|
|
438
|
-
constructor(...args: FilterExpression[]);
|
|
439
|
-
}
|
|
440
|
-
declare class Not {
|
|
441
|
-
kind: "not";
|
|
442
|
-
expr: FilterExpression;
|
|
443
|
-
constructor(expr: FilterExpression);
|
|
444
|
-
}
|
|
445
|
-
declare class Id {
|
|
446
|
-
kind: "id";
|
|
447
|
-
pattern: StringOrRegExp;
|
|
448
|
-
constructor(pattern: StringOrRegExp);
|
|
449
|
-
}
|
|
450
|
-
declare class ModuleType$1 {
|
|
451
|
-
kind: "moduleType";
|
|
452
|
-
pattern: ModuleType;
|
|
453
|
-
constructor(pattern: ModuleType);
|
|
454
|
-
}
|
|
455
|
-
declare class Code {
|
|
456
|
-
kind: "code";
|
|
457
|
-
pattern: StringOrRegExp;
|
|
458
|
-
constructor(expr: StringOrRegExp);
|
|
459
|
-
}
|
|
460
|
-
declare class Include {
|
|
461
|
-
kind: "include";
|
|
462
|
-
expr: FilterExpression;
|
|
463
|
-
constructor(expr: FilterExpression);
|
|
464
|
-
}
|
|
465
|
-
declare class Exclude$1 {
|
|
466
|
-
kind: "exclude";
|
|
467
|
-
expr: FilterExpression;
|
|
468
|
-
constructor(expr: FilterExpression);
|
|
469
|
-
}
|
|
470
|
-
declare function and(...args: FilterExpression[]): And;
|
|
471
|
-
declare function or(...args: FilterExpression[]): Or;
|
|
472
|
-
declare function not(expr: FilterExpression): Not;
|
|
473
|
-
declare function id(pattern: StringOrRegExp): Id;
|
|
474
|
-
declare function moduleType(pattern: ModuleType): ModuleType$1;
|
|
475
|
-
declare function code(pattern: StringOrRegExp): Code;
|
|
476
|
-
declare function include(expr: FilterExpression): Include;
|
|
477
|
-
declare function exclude(expr: FilterExpression): Exclude$1;
|
|
478
|
-
|
|
479
426
|
//#endregion
|
|
480
427
|
//#region src/plugin/hook-filter.d.ts
|
|
481
428
|
type GeneralHookFilter<Value = StringOrRegExp> = MaybeArray<Value> | {
|
|
@@ -1129,4 +1076,4 @@ interface InputOptions {
|
|
|
1129
1076
|
}
|
|
1130
1077
|
|
|
1131
1078
|
//#endregion
|
|
1132
|
-
export { AddonFunction,
|
|
1079
|
+
export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin as BuiltinPlugin$1, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION as VERSION$1, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build as build$1, buildImportAnalysisPlugin as buildImportAnalysisPlugin$1, defineConfig as defineConfig$1, defineParallelPlugin, dynamicImportVarsPlugin as dynamicImportVarsPlugin$1, importGlobPlugin as importGlobPlugin$1, isolatedDeclarationPlugin as isolatedDeclarationPlugin$1, jsonPlugin as jsonPlugin$1, loadFallbackPlugin as loadFallbackPlugin$1, manifestPlugin as manifestPlugin$1, moduleFederationPlugin as moduleFederationPlugin$1, modulePreloadPolyfillPlugin as modulePreloadPolyfillPlugin$1, reportPlugin as reportPlugin$1, rolldown as rolldown$1, viteResolvePlugin as viteResolvePlugin$1, wasmFallbackPlugin as wasmFallbackPlugin$1, wasmHelperPlugin as wasmHelperPlugin$1, watch as watch$1, withFilter };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/misc.ts
|
|
4
|
+
function arraify(value) {
|
|
5
|
+
return Array.isArray(value) ? value : [value];
|
|
6
|
+
}
|
|
7
|
+
function isNullish(value) {
|
|
8
|
+
return value === null || value === void 0;
|
|
9
|
+
}
|
|
10
|
+
function isPromiseLike(value) {
|
|
11
|
+
return value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
|
|
12
|
+
}
|
|
13
|
+
function unimplemented(info) {
|
|
14
|
+
if (info) throw new Error(`unimplemented: ${info}`);
|
|
15
|
+
throw new Error("unimplemented");
|
|
16
|
+
}
|
|
17
|
+
function unreachable(info) {
|
|
18
|
+
if (info) throw new Error(`unreachable: ${info}`);
|
|
19
|
+
throw new Error("unreachable");
|
|
20
|
+
}
|
|
21
|
+
function unsupported(info) {
|
|
22
|
+
throw new Error(`UNSUPPORTED: ${info}`);
|
|
23
|
+
}
|
|
24
|
+
function noop(..._args) {}
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
Object.defineProperty(exports, 'arraify', {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () {
|
|
30
|
+
return arraify;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, 'isNullish', {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () {
|
|
36
|
+
return isNullish;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, 'isPromiseLike', {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () {
|
|
42
|
+
return isPromiseLike;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports, 'noop', {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () {
|
|
48
|
+
return noop;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, 'unimplemented', {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () {
|
|
54
|
+
return unimplemented;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, 'unreachable', {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () {
|
|
60
|
+
return unreachable;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, 'unsupported', {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () {
|
|
66
|
+
return unsupported;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __esm } from "./chunk--iN_1bjD.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/misc.ts
|
|
4
|
+
function arraify(value) {
|
|
5
|
+
return Array.isArray(value) ? value : [value];
|
|
6
|
+
}
|
|
7
|
+
function isNullish(value) {
|
|
8
|
+
return value === null || value === void 0;
|
|
9
|
+
}
|
|
10
|
+
function isPromiseLike(value) {
|
|
11
|
+
return value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
|
|
12
|
+
}
|
|
13
|
+
function unimplemented(info) {
|
|
14
|
+
if (info) throw new Error(`unimplemented: ${info}`);
|
|
15
|
+
throw new Error("unimplemented");
|
|
16
|
+
}
|
|
17
|
+
function unreachable(info) {
|
|
18
|
+
if (info) throw new Error(`unreachable: ${info}`);
|
|
19
|
+
throw new Error("unreachable");
|
|
20
|
+
}
|
|
21
|
+
function unsupported(info) {
|
|
22
|
+
throw new Error(`UNSUPPORTED: ${info}`);
|
|
23
|
+
}
|
|
24
|
+
function noop(..._args) {}
|
|
25
|
+
var init_misc = __esm({ "src/utils/misc.ts"() {} });
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { arraify, init_misc, isNullish, isPromiseLike, noop, unimplemented, unreachable, unsupported };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __commonJS, __esm, __require, __toESM } from "./chunk
|
|
1
|
+
import { __commonJS, __esm, __require, __toESM } from "./chunk--iN_1bjD.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/webcontainer-fallback.js
|
|
4
4
|
var require_webcontainer_fallback = __commonJS({ "src/webcontainer-fallback.js"(exports, module) {
|
|
@@ -370,7 +370,6 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
370
370
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
371
371
|
module.exports.transform = nativeBinding.transform;
|
|
372
372
|
} });
|
|
373
|
-
var import_binding = __toESM(require_binding());
|
|
374
373
|
|
|
375
374
|
//#endregion
|
|
376
375
|
//#region src/utils/code-frame.ts
|
|
@@ -636,8 +635,9 @@ async function parseAstAsync(sourceText, options, filename) {
|
|
|
636
635
|
...options
|
|
637
636
|
}), sourceText);
|
|
638
637
|
}
|
|
639
|
-
var defaultParserOptions;
|
|
638
|
+
var import_binding, defaultParserOptions;
|
|
640
639
|
var init_parse_ast_index = __esm({ "src/parse-ast-index.ts"() {
|
|
640
|
+
import_binding = __toESM(require_binding());
|
|
641
641
|
init_locate_character();
|
|
642
642
|
init_logs();
|
|
643
643
|
init_code_frame();
|
|
@@ -649,4 +649,4 @@ var init_parse_ast_index = __esm({ "src/parse-ast-index.ts"() {
|
|
|
649
649
|
} });
|
|
650
650
|
|
|
651
651
|
//#endregion
|
|
652
|
-
export { augmentCodeLocation, error,
|
|
652
|
+
export { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, parseAstAsync, require_binding };
|
|
@@ -370,7 +370,6 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
370
370
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
371
371
|
module.exports.transform = nativeBinding.transform;
|
|
372
372
|
} });
|
|
373
|
-
var import_binding = require_chunk.__toESM(require_binding());
|
|
374
373
|
|
|
375
374
|
//#endregion
|
|
376
375
|
//#region src/utils/code-frame.ts
|
|
@@ -593,6 +592,7 @@ function transform(key, value) {
|
|
|
593
592
|
|
|
594
593
|
//#endregion
|
|
595
594
|
//#region src/parse-ast-index.ts
|
|
595
|
+
var import_binding = require_chunk.__toESM(require_binding());
|
|
596
596
|
function wrap(result, sourceText) {
|
|
597
597
|
result = wrap$1(result);
|
|
598
598
|
if (result.errors.length > 0) return normalizeParseError(sourceText, result.errors);
|
|
@@ -644,12 +644,6 @@ Object.defineProperty(exports, 'error', {
|
|
|
644
644
|
return error;
|
|
645
645
|
}
|
|
646
646
|
});
|
|
647
|
-
Object.defineProperty(exports, 'import_binding', {
|
|
648
|
-
enumerable: true,
|
|
649
|
-
get: function () {
|
|
650
|
-
return import_binding;
|
|
651
|
-
}
|
|
652
|
-
});
|
|
653
647
|
Object.defineProperty(exports, 'logCycleLoading', {
|
|
654
648
|
enumerable: true,
|
|
655
649
|
get: function () {
|
|
@@ -691,4 +685,10 @@ Object.defineProperty(exports, 'parseAstAsync', {
|
|
|
691
685
|
get: function () {
|
|
692
686
|
return parseAstAsync;
|
|
693
687
|
}
|
|
688
|
+
});
|
|
689
|
+
Object.defineProperty(exports, 'require_binding', {
|
|
690
|
+
enumerable: true,
|
|
691
|
+
get: function () {
|
|
692
|
+
return require_binding;
|
|
693
|
+
}
|
|
694
694
|
});
|