rolldown 1.2.5 → 1.2.7
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 +1 -1
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.d.mts +33 -4
- package/dist/experimental-index.mjs +33 -8
- 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 +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/shared/{binding-Bvw14S3g.d.mts → binding-DZuNHVw4.d.mts} +19 -5
- package/dist/shared/{binding-C__LJDBG.mjs → binding-DmImI4pj.mjs} +27 -27
- package/dist/shared/{bindingify-input-options-COG1sboO.mjs → bindingify-input-options-DrImMHKQ.mjs} +11 -9
- package/dist/shared/{constructors-CRumnw21.d.mts → constructors-BM20b11r.d.mts} +2 -2
- package/dist/shared/{constructors-DklcHr18.mjs → constructors-mRbcbLyX.mjs} +1 -1
- package/dist/shared/{create-bundler-option-Cj0juyCQ.mjs → create-bundler-option-CjAOgWvM.mjs} +47 -5
- package/dist/shared/{define-config-DwTNhgWB.d.mts → define-config-DNX0WekP.d.mts} +36 -3
- package/dist/shared/{error-NcRuXAVN.mjs → error-BP8lJHle.mjs} +1 -1
- package/dist/shared/{load-config-CLrSp_LC.mjs → load-config-Dd8RvLlS.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-CFtim40S.mjs → normalize-string-or-regex-Dm69lpQ-.mjs} +1 -1
- package/dist/shared/{parse-HzGoFgdF.mjs → parse-CjRABVv7.mjs} +2 -2
- package/dist/shared/{resolve-tsconfig-D2vSIIkR.mjs → resolve-tsconfig-BlNGaH3Y.mjs} +10 -6
- package/dist/shared/{rolldown-vcii7mEa.mjs → rolldown-DfXO5K1m.mjs} +5 -4
- package/dist/shared/{transform--WSMLt1x.d.mts → transform-CVse9_mH.d.mts} +8 -4
- package/dist/shared/{watch-olxWZPOn.mjs → watch-C94GTIM2.mjs} +4 -4
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +5 -5
- package/package.json +22 -22
|
@@ -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-DZuNHVw4.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 { B as ParserOptions$1, I as MinifyOptions$1, K as TsconfigCache$1, L as
|
|
|
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-DmImI4pj.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-DrImMHKQ.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-CjAOgWvM.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-BP8lJHle.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-DZuNHVw4.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-CVse9_mH.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.148.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;
|
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-CjRABVv7.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-BlNGaH3Y.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.148.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.148.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.148.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.7",
|
|
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.148.0",
|
|
65
65
|
"@rolldown/pluginutils": "^1.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
@@ -76,16 +76,16 @@
|
|
|
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.148.0",
|
|
80
80
|
"pathe": "^2.0.3",
|
|
81
|
-
"remeda": "^2.
|
|
81
|
+
"remeda": "^2.45.0",
|
|
82
|
+
"rolldown": "1.2.7",
|
|
82
83
|
"rolldown-plugin-dts": "^0.28.0",
|
|
83
|
-
"rollup": "^4.
|
|
84
|
+
"rollup": "^4.63.0",
|
|
84
85
|
"signal-exit": "4.1.0",
|
|
85
86
|
"source-map": "0.8.0",
|
|
86
87
|
"typescript": "^6.0.0",
|
|
87
|
-
"valibot": "1.4.2"
|
|
88
|
-
"rolldown": "1.2.5"
|
|
88
|
+
"valibot": "1.4.2"
|
|
89
89
|
},
|
|
90
90
|
"napi": {
|
|
91
91
|
"binaryName": "rolldown-binding",
|
|
@@ -122,21 +122,21 @@
|
|
|
122
122
|
"node": "^20.19.0 || >=22.12.0"
|
|
123
123
|
},
|
|
124
124
|
"optionalDependencies": {
|
|
125
|
-
"@rolldown/binding-darwin-arm64": "1.2.
|
|
126
|
-
"@rolldown/binding-android-arm64": "1.2.
|
|
127
|
-
"@rolldown/binding-win32-arm64-msvc": "1.2.
|
|
128
|
-
"@rolldown/binding-linux-arm64-gnu": "1.2.
|
|
129
|
-
"@rolldown/binding-linux-arm64-musl": "1.2.
|
|
130
|
-
"@rolldown/binding-openharmony-arm64": "1.2.
|
|
131
|
-
"@rolldown/binding-android-arm-eabi": "1.2.
|
|
132
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.2.
|
|
133
|
-
"@rolldown/binding-linux-ppc64-gnu": "1.2.
|
|
134
|
-
"@rolldown/binding-linux-s390x-gnu": "1.2.
|
|
135
|
-
"@rolldown/binding-darwin-x64": "1.2.
|
|
136
|
-
"@rolldown/binding-win32-x64-msvc": "1.2.
|
|
137
|
-
"@rolldown/binding-freebsd-x64": "1.2.
|
|
138
|
-
"@rolldown/binding-linux-x64-gnu": "1.2.
|
|
139
|
-
"@rolldown/binding-linux-x64-musl": "1.2.
|
|
125
|
+
"@rolldown/binding-darwin-arm64": "1.2.7",
|
|
126
|
+
"@rolldown/binding-android-arm64": "1.2.7",
|
|
127
|
+
"@rolldown/binding-win32-arm64-msvc": "1.2.7",
|
|
128
|
+
"@rolldown/binding-linux-arm64-gnu": "1.2.7",
|
|
129
|
+
"@rolldown/binding-linux-arm64-musl": "1.2.7",
|
|
130
|
+
"@rolldown/binding-openharmony-arm64": "1.2.7",
|
|
131
|
+
"@rolldown/binding-android-arm-eabi": "1.2.7",
|
|
132
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.2.7",
|
|
133
|
+
"@rolldown/binding-linux-ppc64-gnu": "1.2.7",
|
|
134
|
+
"@rolldown/binding-linux-s390x-gnu": "1.2.7",
|
|
135
|
+
"@rolldown/binding-darwin-x64": "1.2.7",
|
|
136
|
+
"@rolldown/binding-win32-x64-msvc": "1.2.7",
|
|
137
|
+
"@rolldown/binding-freebsd-x64": "1.2.7",
|
|
138
|
+
"@rolldown/binding-linux-x64-gnu": "1.2.7",
|
|
139
|
+
"@rolldown/binding-linux-x64-musl": "1.2.7"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|