rolldown 1.2.4 → 1.2.6
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/bin/cli.mjs +10 -1
- package/dist/cli.mjs +6 -6
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.d.mts +57 -28
- package/dist/experimental-index.mjs +36 -9
- package/dist/experimental-runtime-types.d.ts +2 -2
- package/dist/experimental-runtime.d.ts +2 -2
- package/dist/experimental-runtime.mjs +2 -2
- package/dist/filter-index.d.mts +1 -1
- package/dist/filter-index.mjs +1 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +4 -4
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.mts +3 -3
- package/dist/parse-ast-index.d.mts +6 -7
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.d.mts +5 -5
- package/dist/plugins-index.mjs +2 -2
- package/dist/shared/{binding-Zhafd14U.mjs → binding-CtPG-2KR.mjs} +29 -27
- package/dist/shared/{binding-CVtkJvyl.d.mts → binding-Og__jmUi.d.mts} +87 -4
- package/dist/shared/{bindingify-input-options-C-Zsy1EG.mjs → bindingify-input-options-4JJxbZl2.mjs} +11 -9
- package/dist/shared/{constructors-CGzna3vk.d.mts → constructors-Qrp2Xr6w.d.mts} +2 -2
- package/dist/shared/{constructors-u6EEiG8n.mjs → constructors-ltBDfHX1.mjs} +1 -1
- package/dist/shared/{create-bundler-option-wRiQzEJ3.mjs → create-bundler-option-DSPiA5F7.mjs} +49 -6
- package/dist/shared/{define-config-Dsp5YQR4.d.mts → define-config-Nbz-lniw.d.mts} +43 -5
- package/dist/shared/{error-CVc7IgvG.mjs → error-HDibX49O.mjs} +1 -1
- package/dist/shared/{load-config-63nAW5KO.mjs → load-config-BMUrE9HH.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-BxRYnPRv.mjs → normalize-string-or-regex-DWz4it3p.mjs} +1 -1
- package/dist/shared/{parse-DnWvq9XZ.mjs → parse-D0g29RgN.mjs} +2 -2
- package/dist/shared/{resolve-tsconfig-SPewz4V3.mjs → resolve-tsconfig-CLYpUIZC.mjs} +10 -6
- package/dist/shared/{rolldown-DiYVDns9.mjs → rolldown-C9Hfg50O.mjs} +5 -4
- package/dist/shared/{transform-WmU_cI8e.d.mts → transform-DR4CXeQm.d.mts} +8 -4
- package/dist/shared/{watch-BNCfUBmW.mjs → watch-UbzgabQn.mjs} +4 -4
- package/dist/utils-index.d.mts +5 -5
- package/dist/utils-index.mjs +5 -5
- package/package.json +32 -30
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-xuHO4mAy.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { H as ParserOptions, I as JsxOptions, L as ManglePropertiesOptions$1, M as BindingWatcherBundler, N as ExternalMemoryStatus, R as MinifyOptions$1, U as PreRenderedChunk, c as BindingHookResolveIdExtraArgs, d as BindingMagicString, g as BindingRenderedChunk, m as BindingPluginContextResolveOptions, q as TransformOptions$1, t as BindingBuiltinPluginName, v as BindingTransformHookExtraArgs } from "./binding-Og__jmUi.mjs";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
//#region src/types/misc.d.ts
|
|
@@ -250,6 +250,13 @@ interface RolldownOutput extends ExternalMemoryHandle {
|
|
|
250
250
|
* {@linkcode OutputChunk} and/or {@linkcode OutputAsset}s.
|
|
251
251
|
*/
|
|
252
252
|
output: [OutputChunk, ...(OutputChunk | OutputAsset)[]];
|
|
253
|
+
/**
|
|
254
|
+
* The updated property-name cache. Present when `minify.mangleProps` runs.
|
|
255
|
+
*
|
|
256
|
+
* This contains the input cache and any generated mappings. Pass it to a later
|
|
257
|
+
* `minify.mangleProps.cache` to reuse the same mappings.
|
|
258
|
+
*/
|
|
259
|
+
mangleCache?: Record<string, string | false>;
|
|
253
260
|
}
|
|
254
261
|
//#endregion
|
|
255
262
|
//#region src/types/utils.d.ts
|
|
@@ -334,7 +341,25 @@ type GlobalsFunction = (name: string) => string;
|
|
|
334
341
|
type CodeSplittingNameFunction = (moduleId: string, ctx: ChunkingContext) => string | NullValue;
|
|
335
342
|
/** @inline @category Code Splitting */
|
|
336
343
|
type CodeSplittingTestFunction = (id: string) => boolean | undefined | void;
|
|
337
|
-
|
|
344
|
+
interface ManglePropertiesOptions extends Omit<ManglePropertiesOptions$1, "cache"> {
|
|
345
|
+
/**
|
|
346
|
+
* Stable mappings from original names to output names. `false` reserves an original name.
|
|
347
|
+
* String targets must be valid identifiers and cannot be `__proto__`, `constructor`, or
|
|
348
|
+
* `prototype`. Generated mappings are returned as `RolldownOutput.mangleCache`.
|
|
349
|
+
*/
|
|
350
|
+
cache?: Record<string, string | false>;
|
|
351
|
+
}
|
|
352
|
+
type MinifyOptions = Omit<MinifyOptions$1, "module" | "sourcemap" | "mangleProps"> & {
|
|
353
|
+
/**
|
|
354
|
+
* Mangle matching property names. This currently requires a single JavaScript output chunk.
|
|
355
|
+
* Rolldown throws an error when this option is used with multiple JavaScript chunks.
|
|
356
|
+
*
|
|
357
|
+
* Reserve names accessed indirectly, through module namespace objects, or by code outside
|
|
358
|
+
* Rolldown's minification.
|
|
359
|
+
* Numeric spellings, `__proto__`, `constructor`, and `prototype` are never mangled.
|
|
360
|
+
*/
|
|
361
|
+
mangleProps?: ManglePropertiesOptions;
|
|
362
|
+
};
|
|
338
363
|
interface CommentsOptions {
|
|
339
364
|
/**
|
|
340
365
|
* Comments that contain `@license`, `@preserve` or start with `//!` or `/*!`
|
|
@@ -1052,6 +1077,10 @@ type CodeSplittingGroup = {
|
|
|
1052
1077
|
* :::warning
|
|
1053
1078
|
* Constraints like `minSize`, `maxSize`, etc. are applied separately for different names returned by the function.
|
|
1054
1079
|
* :::
|
|
1080
|
+
*
|
|
1081
|
+
* :::warning
|
|
1082
|
+
* Rolldown calls a function `name` once for each captured module, in a deterministic order. It calls `test` for every candidate module of the group first. Do not read a "current module" variable that `test` wrote, because that variable holds the last module `test` saw. Store such state under the module id instead.
|
|
1083
|
+
* :::
|
|
1055
1084
|
*/
|
|
1056
1085
|
name: string | CodeSplittingNameFunction;
|
|
1057
1086
|
/**
|
|
@@ -1067,6 +1096,10 @@ type CodeSplittingGroup = {
|
|
|
1067
1096
|
* - ✅ Recommended: `/node_modules[\\/]react/`
|
|
1068
1097
|
* - ❌ Not recommended: `/node_modules/react/`
|
|
1069
1098
|
* :::
|
|
1099
|
+
*
|
|
1100
|
+
* :::warning
|
|
1101
|
+
* Rolldown calls a function `test` once for each candidate module, in a deterministic order. It makes every `test` call of a group before it makes the first `name` call of that group. Rolldown processes the groups in the order that you declare them.
|
|
1102
|
+
* :::
|
|
1070
1103
|
*/
|
|
1071
1104
|
test?: StringOrRegExp | CodeSplittingTestFunction;
|
|
1072
1105
|
/**
|
|
@@ -1679,6 +1712,11 @@ interface ChecksOptions {
|
|
|
1679
1712
|
* @default true
|
|
1680
1713
|
* */
|
|
1681
1714
|
sourcemapBroken?: boolean;
|
|
1715
|
+
/**
|
|
1716
|
+
* Whether to emit warnings when multiple star re-exports provide the same name from different modules.
|
|
1717
|
+
* @default true
|
|
1718
|
+
* */
|
|
1719
|
+
namespaceConflict?: boolean;
|
|
1682
1720
|
}
|
|
1683
1721
|
//#endregion
|
|
1684
1722
|
//#region src/options/transform-options.d.ts
|
|
@@ -2608,10 +2646,10 @@ declare const RUNTIME_MODULE_ID = "\0rolldown/runtime.js";
|
|
|
2608
2646
|
//#region src/builtin-plugin/utils.d.ts
|
|
2609
2647
|
declare class BuiltinPlugin {
|
|
2610
2648
|
name: BindingBuiltinPluginName;
|
|
2611
|
-
_options?: unknown;
|
|
2649
|
+
_options?: unknown | undefined;
|
|
2612
2650
|
/** Vite-specific option to control plugin ordering */
|
|
2613
2651
|
enforce?: "pre" | "post";
|
|
2614
|
-
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
2652
|
+
constructor(name: BindingBuiltinPluginName, _options?: unknown | undefined);
|
|
2615
2653
|
}
|
|
2616
2654
|
//#endregion
|
|
2617
2655
|
//#region src/constants/plugin.d.ts
|
|
@@ -4060,4 +4098,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
4060
4098
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
4061
4099
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
4062
4100
|
//#endregion
|
|
4063
|
-
export { defineParallelPlugin as $,
|
|
4101
|
+
export { defineParallelPlugin as $, freeExternalMemory as $t, ResolvedId as A, ChunkFileNamesFunction as At, ExistingRawSourceMap as B, MinifyOptions as Bt, ParallelPluginHooks as C, RolldownBuild as Ct, ResolveFileUrlArgs as D, AdvancedChunksGroup as Dt, PluginMeta as E, AddonFunction as Et, withFilter as F, CommentsOptions as Ft, EmittedAsset as G, PartialNull as Gt, OutputBundle as H, OutputOptions as Ht, BuiltinPlugin as I, GeneratedCodeOptions as It, EmittedPrebuiltChunk as J, OutputChunk as Jt, EmittedChunk as K, StringOrRegExp as Kt, RUNTIME_MODULE_ID as L, GeneratedCodePreset as Lt, RolldownPluginOption as M, CodeSplittingGroup as Mt, SourceDescription as N, CodeSplittingNameFunction as Nt, ResolveIdExtraOptions as O, AdvancedChunksOptions as Ot, TransformResult as P, CodeSplittingOptions as Pt, DefineParallelPluginResult as Q, SourceMap as Qt, VERSION as R, GlobalsFunction as Rt, ObjectHook as S, rolldown as St, Plugin as T, build as Tt, TreeshakingOptions as U, PreRenderedAsset as Ut, SourceMapInput as V, ModuleFormat as Vt, TransformPluginContext as W, MaybePromise as Wt, PluginContext as X, RenderedModule as Xt, GetModuleInfo as Y, RenderedChunk as Yt, PluginContextResolveOptions as Z, RolldownOutput as Zt, HookFilterExtension as _, watch as _t, ChunkOptimizationOptions as a, BufferEncoding as at, ModuleOptions as b, RolldownWatcherWatcherEventMap as bt, InputOption as c, RolldownFsModule as ct, OptimizationOptions as d, NormalizedInputOptions as dt, ModuleInfo as en, MinimalPluginContext as et, WatcherFileWatcherOptions as f, TransformOptions as ft, FunctionPluginHooks as g, RolldownMagicString as gt, CustomPluginOptions as h, WarningHandlerWithDefault as ht, RolldownOptions as i, ModuleTypeFilter as it, RolldownPlugin as j, ChunkingContext as jt, ResolveIdResult as k, BuiltinModuleTag as kt, InputOptions as l, InternalModuleFormat as lt, AsyncPluginHooks as m, LoggingFunction as mt, RolldownOptionsFunction as n, GeneralHookFilter as nt, ExternalOption as o, RolldownDirectoryEntry as ot, WatcherOptions as p, ChecksOptions as pt, EmittedFile as q, OutputAsset as qt, defineConfig as r, HookFilter as rt, ExternalOptionFunction as s, RolldownFileStats as st, ConfigExport as t, SourcemapIgnoreListOption as tn, PluginContextMeta as tt, ModuleTypes as u, NormalizedOutputOptions as ut, ImportKind as v, RolldownWatcher as vt, PartialResolvedId as w, BuildOptions as wt, ModuleType as x, WatchOptions as xt, LoadResult as y, RolldownWatcherEvent as yt, BundleError as z, ManglePropertiesOptions as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CtPG-2KR.mjs";
|
|
2
2
|
import { l as logPluginError, n as error } from "./logs-DmYCAKcW.mjs";
|
|
3
3
|
//#region src/builtin-plugin/utils.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CtPG-2KR.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.147.0/node_modules/oxc-parser/src-js/wrap.js
|
|
3
3
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
4
4
|
function wrap(result) {
|
|
5
5
|
let program, module, comments, errors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CtPG-2KR.mjs";
|
|
2
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-HDibX49O.mjs";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
5
5
|
/**
|
|
@@ -58,7 +58,8 @@ function normalizeBindingWarning(warning) {
|
|
|
58
58
|
* @param sourceText The source code to transform.
|
|
59
59
|
* @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
|
|
60
60
|
* @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
|
|
61
|
-
*
|
|
61
|
+
* Used when `options.tsconfig` is `true` or a path. For a path, construct the
|
|
62
|
+
* cache with the same path.
|
|
62
63
|
*
|
|
63
64
|
* @returns a promise that resolves to an object containing the transformed code,
|
|
64
65
|
* source maps, and any errors that occurred during parsing or transformation.
|
|
@@ -82,7 +83,8 @@ async function transform(filename, sourceText, options, cache) {
|
|
|
82
83
|
* @param sourceText The source code to transform.
|
|
83
84
|
* @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
|
|
84
85
|
* @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
|
|
85
|
-
*
|
|
86
|
+
* Used when `options.tsconfig` is `true` or a path. For a path, construct the
|
|
87
|
+
* cache with the same path.
|
|
86
88
|
*
|
|
87
89
|
* @returns an object containing the transformed code, source maps, and any errors
|
|
88
90
|
* that occurred during parsing or transformation.
|
|
@@ -107,13 +109,15 @@ const yarnPnp = typeof process === "object" && !!process.versions?.pnp;
|
|
|
107
109
|
* The cache stores resolved tsconfig configurations keyed by their file paths.
|
|
108
110
|
* When transforming multiple files in the same project, tsconfig lookups are
|
|
109
111
|
* deduplicated, improving performance.
|
|
112
|
+
* Pass a tsconfig path to use that configuration for every lookup. When the
|
|
113
|
+
* path is omitted, the nearest tsconfig is discovered automatically.
|
|
110
114
|
*
|
|
111
115
|
* @category Utilities
|
|
112
116
|
* @experimental
|
|
113
117
|
*/
|
|
114
118
|
var TsconfigCache = class extends import_binding.TsconfigCache {
|
|
115
|
-
constructor() {
|
|
116
|
-
super(yarnPnp);
|
|
119
|
+
constructor(pathToTsconfig) {
|
|
120
|
+
super(yarnPnp, pathToTsconfig);
|
|
117
121
|
}
|
|
118
122
|
};
|
|
119
123
|
/** @hidden This is only expected to be used by Vite */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { f as __decorate, h as PlainObjectLike, m as lazyProp, u as transformToRollupOutput } from "./bindingify-input-options-
|
|
3
|
-
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./create-bundler-option-
|
|
4
|
-
import { i as unwrapBindingResult } from "./error-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CtPG-2KR.mjs";
|
|
2
|
+
import { f as __decorate, h as PlainObjectLike, m as lazyProp, u as transformToRollupOutput } from "./bindingify-input-options-4JJxbZl2.mjs";
|
|
3
|
+
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./create-bundler-option-DSPiA5F7.mjs";
|
|
4
|
+
import { i as unwrapBindingResult } from "./error-HDibX49O.mjs";
|
|
5
5
|
//#region src/types/rolldown-output-impl.ts
|
|
6
6
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
7
7
|
var RolldownOutputImpl = class extends PlainObjectLike {
|
|
@@ -9,6 +9,7 @@ var RolldownOutputImpl = class extends PlainObjectLike {
|
|
|
9
9
|
constructor(bindingOutputs) {
|
|
10
10
|
super();
|
|
11
11
|
this.bindingOutputs = bindingOutputs;
|
|
12
|
+
if (bindingOutputs.mangleCache !== void 0) this.mangleCache = bindingOutputs.mangleCache;
|
|
12
13
|
}
|
|
13
14
|
get output() {
|
|
14
15
|
return transformToRollupOutput(this.bindingOutputs).output;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog } from "./logging-xuHO4mAy.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { H as ParserOptions$1, J as TsconfigCache$1, K as SourceMap, R as MinifyOptions$1, V as ParseResult$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, x as BindingTsconfigResult, z as MinifyResult$1 } from "./binding-Og__jmUi.mjs";
|
|
3
3
|
//#region src/utils/resolve-tsconfig.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Cache for tsconfig resolution to avoid redundant file system operations.
|
|
@@ -7,12 +7,14 @@ import { F as MinifyOptions$1, G as TsconfigCache$1, I as MinifyResult$1, R as P
|
|
|
7
7
|
* The cache stores resolved tsconfig configurations keyed by their file paths.
|
|
8
8
|
* When transforming multiple files in the same project, tsconfig lookups are
|
|
9
9
|
* deduplicated, improving performance.
|
|
10
|
+
* Pass a tsconfig path to use that configuration for every lookup. When the
|
|
11
|
+
* path is omitted, the nearest tsconfig is discovered automatically.
|
|
10
12
|
*
|
|
11
13
|
* @category Utilities
|
|
12
14
|
* @experimental
|
|
13
15
|
*/
|
|
14
16
|
declare class TsconfigCache extends TsconfigCache$1 {
|
|
15
|
-
constructor();
|
|
17
|
+
constructor(pathToTsconfig?: string);
|
|
16
18
|
}
|
|
17
19
|
/** @hidden This is only expected to be used by Vite */
|
|
18
20
|
declare function resolveTsconfig(filename: string, cache?: TsconfigCache | null): BindingTsconfigResult | null;
|
|
@@ -118,7 +120,8 @@ type TransformResult = Omit<BindingEnhancedTransformResult, "errors" | "warnings
|
|
|
118
120
|
* @param sourceText The source code to transform.
|
|
119
121
|
* @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
|
|
120
122
|
* @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
|
|
121
|
-
*
|
|
123
|
+
* Used when `options.tsconfig` is `true` or a path. For a path, construct the
|
|
124
|
+
* cache with the same path.
|
|
122
125
|
*
|
|
123
126
|
* @returns a promise that resolves to an object containing the transformed code,
|
|
124
127
|
* source maps, and any errors that occurred during parsing or transformation.
|
|
@@ -135,7 +138,8 @@ declare function transform(filename: string, sourceText: string, options?: Trans
|
|
|
135
138
|
* @param sourceText The source code to transform.
|
|
136
139
|
* @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
|
|
137
140
|
* @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
|
|
138
|
-
*
|
|
141
|
+
* Used when `options.tsconfig` is `true` or a path. For a path, construct the
|
|
142
|
+
* cache with the same path.
|
|
139
143
|
*
|
|
140
144
|
* @returns an object containing the transformed code, source maps, and any errors
|
|
141
145
|
* that occurred during parsing or transformation.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CtPG-2KR.mjs";
|
|
2
2
|
import { s as logMultipleWatcherOption } from "./logs-DmYCAKcW.mjs";
|
|
3
|
-
import { C as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
3
|
+
import { C as LOG_LEVEL_WARN } from "./bindingify-input-options-4JJxbZl2.mjs";
|
|
4
4
|
import { t as arraify } from "./misc-DOSKtd97.mjs";
|
|
5
|
-
import { l as PluginDriver, t as createBundlerOptions } from "./create-bundler-option-
|
|
6
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { l as PluginDriver, t as createBundlerOptions } from "./create-bundler-option-DSPiA5F7.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-HDibX49O.mjs";
|
|
7
7
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
8
8
|
/**
|
|
9
9
|
* This is not the set of all possible signals.
|
package/dist/utils-index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-
|
|
1
|
+
import { b as BindingTsconfigRawOptions, y as BindingTsconfigCompilerOptions } from "./shared/binding-Og__jmUi.mjs";
|
|
2
|
+
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-DR4CXeQm.mjs";
|
|
3
3
|
import * as ESTree from "@oxc-project/types";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
5
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.147.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
|
|
6
6
|
interface VisitorObject$1 {
|
|
7
7
|
DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
|
|
8
8
|
"DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
|
|
@@ -366,10 +366,10 @@ type VisitorObject = VisitorObject$1;
|
|
|
366
366
|
* @category Utilities
|
|
367
367
|
* @experimental
|
|
368
368
|
*/
|
|
369
|
-
declare class Visitor {
|
|
369
|
+
export declare class Visitor {
|
|
370
370
|
#private;
|
|
371
371
|
constructor(visitor: VisitorObject);
|
|
372
372
|
visit(program: Program): void;
|
|
373
373
|
}
|
|
374
374
|
//#endregion
|
|
375
|
-
export { type ESTree, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type TransformOptions, type TransformResult, TsconfigCache, type BindingTsconfigCompilerOptions as TsconfigCompilerOptions, type BindingTsconfigRawOptions as TsconfigRawOptions,
|
|
375
|
+
export { type ESTree, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type TransformOptions, type TransformResult, TsconfigCache, type BindingTsconfigCompilerOptions as TsconfigCompilerOptions, type BindingTsconfigRawOptions as TsconfigRawOptions, type VisitorObject, minify, minifySync, parse, parseSync, transform, transformSync };
|
package/dist/utils-index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
-
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { n as parseSync, t as parse } from "./shared/parse-D0g29RgN.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-CLYpUIZC.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.147.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
4
4
|
function walkNode(node, visitors) {
|
|
5
5
|
if (node == null) return;
|
|
6
6
|
if (Array.isArray(node)) {
|
|
@@ -2008,7 +2008,7 @@ function walkTSUnionType(node, visitors) {
|
|
|
2008
2008
|
exit !== null && exit(node);
|
|
2009
2009
|
}
|
|
2010
2010
|
//#endregion
|
|
2011
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2011
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.147.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2012
2012
|
/** Mapping from node type name to node type ID */
|
|
2013
2013
|
const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
|
|
2014
2014
|
["DebuggerStatement", 0],
|
|
@@ -2178,7 +2178,7 @@ const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
|
|
|
2178
2178
|
["TSUnionType", 164]
|
|
2179
2179
|
]);
|
|
2180
2180
|
//#endregion
|
|
2181
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2181
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.147.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2182
2182
|
let compiledVisitor;
|
|
2183
2183
|
function createCompiledVisitor() {
|
|
2184
2184
|
compiledVisitor = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundler",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"registry": "https://registry.npmjs.org/"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@oxc-project/types": "=0.
|
|
64
|
+
"@oxc-project/types": "=0.147.0",
|
|
65
65
|
"@rolldown/pluginutils": "^1.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
@@ -76,37 +76,38 @@
|
|
|
76
76
|
"execa": "^9.2.0",
|
|
77
77
|
"fresh-import": "^0.2.1",
|
|
78
78
|
"glob": "^13.0.0",
|
|
79
|
-
"oxc-parser": "=0.
|
|
79
|
+
"oxc-parser": "=0.147.0",
|
|
80
80
|
"pathe": "^2.0.3",
|
|
81
|
-
"remeda": "^2.
|
|
81
|
+
"remeda": "^2.42.0",
|
|
82
82
|
"rolldown-plugin-dts": "^0.28.0",
|
|
83
83
|
"rollup": "^4.60.4",
|
|
84
84
|
"signal-exit": "4.1.0",
|
|
85
85
|
"source-map": "0.8.0",
|
|
86
86
|
"typescript": "^6.0.0",
|
|
87
87
|
"valibot": "1.4.2",
|
|
88
|
-
"rolldown": "1.2.
|
|
88
|
+
"rolldown": "1.2.6"
|
|
89
89
|
},
|
|
90
90
|
"napi": {
|
|
91
91
|
"binaryName": "rolldown-binding",
|
|
92
92
|
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\nexport type BindingResult<T> = { errors: BindingError[], isBindingErrors: boolean } | T\n\n",
|
|
93
93
|
"packageName": "@rolldown/binding",
|
|
94
94
|
"targets": [
|
|
95
|
-
"x86_64-apple-darwin",
|
|
96
|
-
"x86_64-pc-windows-msvc",
|
|
97
|
-
"x86_64-unknown-linux-gnu",
|
|
98
|
-
"x86_64-unknown-linux-musl",
|
|
99
|
-
"x86_64-unknown-freebsd",
|
|
100
|
-
"armv7-unknown-linux-gnueabihf",
|
|
101
|
-
"aarch64-unknown-linux-gnu",
|
|
102
95
|
"aarch64-apple-darwin",
|
|
96
|
+
"aarch64-linux-android",
|
|
97
|
+
"aarch64-pc-windows-msvc",
|
|
98
|
+
"aarch64-unknown-linux-gnu",
|
|
103
99
|
"aarch64-unknown-linux-musl",
|
|
104
100
|
"aarch64-unknown-linux-ohos",
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
101
|
+
"armv7-linux-androideabi",
|
|
102
|
+
"armv7-unknown-linux-gnueabihf",
|
|
103
|
+
"powerpc64le-unknown-linux-gnu",
|
|
108
104
|
"s390x-unknown-linux-gnu",
|
|
109
|
-
"
|
|
105
|
+
"wasm32-wasip1-threads",
|
|
106
|
+
"x86_64-apple-darwin",
|
|
107
|
+
"x86_64-pc-windows-msvc",
|
|
108
|
+
"x86_64-unknown-freebsd",
|
|
109
|
+
"x86_64-unknown-linux-gnu",
|
|
110
|
+
"x86_64-unknown-linux-musl"
|
|
110
111
|
],
|
|
111
112
|
"wasm": {
|
|
112
113
|
"initialMemory": 16384,
|
|
@@ -121,20 +122,21 @@
|
|
|
121
122
|
"node": "^20.19.0 || >=22.12.0"
|
|
122
123
|
},
|
|
123
124
|
"optionalDependencies": {
|
|
124
|
-
"@rolldown/binding-darwin-
|
|
125
|
-
"@rolldown/binding-
|
|
126
|
-
"@rolldown/binding-
|
|
127
|
-
"@rolldown/binding-linux-
|
|
128
|
-
"@rolldown/binding-
|
|
129
|
-
"@rolldown/binding-
|
|
130
|
-
"@rolldown/binding-
|
|
131
|
-
"@rolldown/binding-
|
|
132
|
-
"@rolldown/binding-linux-
|
|
133
|
-
"@rolldown/binding-
|
|
134
|
-
"@rolldown/binding-
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-linux-
|
|
125
|
+
"@rolldown/binding-darwin-arm64": "1.2.6",
|
|
126
|
+
"@rolldown/binding-android-arm64": "1.2.6",
|
|
127
|
+
"@rolldown/binding-win32-arm64-msvc": "1.2.6",
|
|
128
|
+
"@rolldown/binding-linux-arm64-gnu": "1.2.6",
|
|
129
|
+
"@rolldown/binding-linux-arm64-musl": "1.2.6",
|
|
130
|
+
"@rolldown/binding-openharmony-arm64": "1.2.6",
|
|
131
|
+
"@rolldown/binding-android-arm-eabi": "1.2.6",
|
|
132
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.2.6",
|
|
133
|
+
"@rolldown/binding-linux-ppc64-gnu": "1.2.6",
|
|
134
|
+
"@rolldown/binding-linux-s390x-gnu": "1.2.6",
|
|
135
|
+
"@rolldown/binding-darwin-x64": "1.2.6",
|
|
136
|
+
"@rolldown/binding-win32-x64-msvc": "1.2.6",
|
|
137
|
+
"@rolldown/binding-freebsd-x64": "1.2.6",
|
|
138
|
+
"@rolldown/binding-linux-x64-gnu": "1.2.6",
|
|
139
|
+
"@rolldown/binding-linux-x64-musl": "1.2.6"
|
|
138
140
|
},
|
|
139
141
|
"scripts": {
|
|
140
142
|
"# Scrips for binding #": "_",
|