rolldown 1.2.8 → 1.2.9
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 +6 -6
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.d.mts +4 -4
- package/dist/experimental-index.mjs +8 -8
- package/dist/experimental-runtime-types.d.ts +19 -0
- package/dist/experimental-runtime.d.ts +19 -0
- package/dist/experimental-runtime.mjs +42 -0
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.d.mts +2 -2
- 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-DZuNHVw4.d.mts → binding-BTa6BPQe.d.mts} +23 -36
- package/dist/shared/{binding-DH95uVkp.mjs → binding-BbrDfv1x.mjs} +53 -28
- package/dist/shared/{bindingify-input-options-XQ0947n1.mjs → bindingify-input-options-D4l624og.mjs} +9 -8
- package/dist/shared/{constructors-BnIg8feC.d.mts → constructors-CmDKpWIU.d.mts} +2 -2
- package/dist/shared/{constructors-CrhQ-yy_.mjs → constructors-D9jwEbE4.mjs} +1 -1
- package/dist/shared/{create-bundler-option-kXHnIt4b.mjs → create-bundler-option-DJpvtSqr.mjs} +90 -154
- package/dist/shared/{define-config-DjHYbH6S.d.mts → define-config-BFdLpVut.d.mts} +6 -1
- package/dist/shared/{error-CRNyaqoL.mjs → error-CGhV1ebk.mjs} +1 -1
- package/dist/shared/{load-config-BH5SJ8XZ.mjs → load-config-qRezutA0.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-BgP6W4eD.mjs → normalize-string-or-regex-zc1bUto6.mjs} +1 -1
- package/dist/shared/{parse-BtiCBYra.mjs → parse-DltPb1DL.mjs} +2 -2
- package/dist/shared/{resolve-tsconfig-jh43hFM_.mjs → resolve-tsconfig-Bf6oL9fm.mjs} +2 -2
- package/dist/shared/{rolldown-B-jRyK4b.mjs → rolldown-Ld3ZGGCt.mjs} +4 -4
- package/dist/shared/{transform-CVse9_mH.d.mts → transform-DK_nCt9j.d.mts} +1 -1
- package/dist/shared/{watch-dKH5b9eq.mjs → watch-BDSxrMiV.mjs} +4 -4
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +5 -5
- package/package.json +28 -25
|
@@ -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-BbrDfv1x.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-BbrDfv1x.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.150.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-BbrDfv1x.mjs";
|
|
2
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-CGhV1ebk.mjs";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
5
5
|
/**
|
|
@@ -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-BbrDfv1x.mjs";
|
|
2
|
+
import { f as __decorate, h as PlainObjectLike, m as lazyProp, u as transformToRollupOutput } from "./bindingify-input-options-D4l624og.mjs";
|
|
3
|
+
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./create-bundler-option-DJpvtSqr.mjs";
|
|
4
|
+
import { i as unwrapBindingResult } from "./error-CGhV1ebk.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 {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog } from "./logging-xuHO4mAy.mjs";
|
|
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-
|
|
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-BTa6BPQe.mjs";
|
|
3
3
|
//#region src/utils/resolve-tsconfig.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Cache for tsconfig resolution to avoid redundant file system operations.
|
|
@@ -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-BbrDfv1x.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-D4l624og.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-DJpvtSqr.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-CGhV1ebk.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 { b as BindingTsconfigRawOptions, y as BindingTsconfigCompilerOptions } from "./shared/binding-
|
|
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-BTa6BPQe.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-DK_nCt9j.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.150.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-DltPb1DL.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-Bf6oL9fm.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.150.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.150.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.150.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.9",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundler",
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
"webpack"
|
|
12
12
|
],
|
|
13
13
|
"homepage": "https://rolldown.rs/",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/rolldown/rolldown/issues"
|
|
16
|
+
},
|
|
14
17
|
"license": "MIT",
|
|
15
18
|
"repository": {
|
|
16
19
|
"type": "git",
|
|
@@ -61,31 +64,31 @@
|
|
|
61
64
|
"registry": "https://registry.npmjs.org/"
|
|
62
65
|
},
|
|
63
66
|
"dependencies": {
|
|
64
|
-
"@oxc-project/types": "=0.
|
|
67
|
+
"@oxc-project/types": "=0.150.0",
|
|
65
68
|
"@rolldown/pluginutils": "^1.0.0"
|
|
66
69
|
},
|
|
67
70
|
"devDependencies": {
|
|
68
|
-
"@emnapi/core": "2.0.0-alpha.
|
|
69
|
-
"@emnapi/runtime": "2.0.0-alpha.
|
|
70
|
-
"@napi-rs/cli": "^3.
|
|
71
|
+
"@emnapi/core": "2.0.0-alpha.5",
|
|
72
|
+
"@emnapi/runtime": "2.0.0-alpha.5",
|
|
73
|
+
"@napi-rs/cli": "^3.10.0",
|
|
71
74
|
"@napi-rs/wasm-runtime": "~1.2.2",
|
|
72
75
|
"@oxc-node/cli": "^0.1.0",
|
|
73
76
|
"cac": "^7.0.0",
|
|
74
77
|
"consola": "^3.4.2",
|
|
75
|
-
"emnapi": "2.0.0-alpha.
|
|
78
|
+
"emnapi": "2.0.0-alpha.5",
|
|
76
79
|
"execa": "^9.2.0",
|
|
77
80
|
"fresh-import": "^0.2.1",
|
|
78
81
|
"glob": "^13.0.0",
|
|
79
|
-
"oxc-parser": "=0.
|
|
82
|
+
"oxc-parser": "=0.150.0",
|
|
80
83
|
"pathe": "^2.0.3",
|
|
81
|
-
"remeda": "^2.
|
|
82
|
-
"rolldown": "1.2.
|
|
84
|
+
"remeda": "^2.48.0",
|
|
85
|
+
"rolldown": "1.2.9",
|
|
83
86
|
"rolldown-plugin-dts": "^0.28.0",
|
|
84
87
|
"rollup": "^4.63.0",
|
|
85
88
|
"signal-exit": "4.1.0",
|
|
86
89
|
"source-map": "0.8.0",
|
|
87
90
|
"typescript": "^6.0.0",
|
|
88
|
-
"valibot": "1.
|
|
91
|
+
"valibot": "1.5.0"
|
|
89
92
|
},
|
|
90
93
|
"napi": {
|
|
91
94
|
"binaryName": "rolldown-binding",
|
|
@@ -122,21 +125,21 @@
|
|
|
122
125
|
"node": "^20.19.0 || >=22.12.0"
|
|
123
126
|
},
|
|
124
127
|
"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.
|
|
128
|
+
"@rolldown/binding-darwin-arm64": "1.2.9",
|
|
129
|
+
"@rolldown/binding-android-arm64": "1.2.9",
|
|
130
|
+
"@rolldown/binding-win32-arm64-msvc": "1.2.9",
|
|
131
|
+
"@rolldown/binding-linux-arm64-gnu": "1.2.9",
|
|
132
|
+
"@rolldown/binding-linux-arm64-musl": "1.2.9",
|
|
133
|
+
"@rolldown/binding-openharmony-arm64": "1.2.9",
|
|
134
|
+
"@rolldown/binding-android-arm-eabi": "1.2.9",
|
|
135
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.2.9",
|
|
136
|
+
"@rolldown/binding-linux-ppc64-gnu": "1.2.9",
|
|
137
|
+
"@rolldown/binding-linux-s390x-gnu": "1.2.9",
|
|
138
|
+
"@rolldown/binding-darwin-x64": "1.2.9",
|
|
139
|
+
"@rolldown/binding-win32-x64-msvc": "1.2.9",
|
|
140
|
+
"@rolldown/binding-freebsd-x64": "1.2.9",
|
|
141
|
+
"@rolldown/binding-linux-x64-gnu": "1.2.9",
|
|
142
|
+
"@rolldown/binding-linux-x64-musl": "1.2.9"
|
|
140
143
|
},
|
|
141
144
|
"scripts": {
|
|
142
145
|
"# Scrips for binding #": "_",
|