@rollipop/rolldown 1.0.25 → 1.0.27
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/THIRD-PARTY-LICENSE +33 -0
- package/dist/cli.d.mts +1 -1
- package/dist/cli.mjs +17 -14
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/experimental-default-runtime.mjs +116 -0
- package/dist/experimental-index.d.mts +10 -4
- package/dist/experimental-index.mjs +32 -16
- package/dist/experimental-runtime-base.mjs +95 -0
- package/dist/experimental-runtime.d.ts +177 -0
- package/dist/experimental-runtime.mjs +257 -0
- 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.d.mts +1 -1
- package/dist/parallel-plugin-worker.mjs +3 -3
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/shared/binding-CuB3cgML.mjs +679 -0
- package/dist/shared/{binding-CyCKfYSu.d.mts → binding-We_IfeZk.d.mts} +11 -0
- package/dist/shared/{bindingify-input-options-CkSiXecU.mjs → bindingify-input-options-Cp0kpzhL.mjs} +453 -283
- package/dist/shared/{constructors-CEYV9FDo.mjs → constructors-CUnQrTUN.mjs} +10 -6
- package/dist/shared/{constructors-B1v9buY3.d.mts → constructors-dwVL6FXl.d.mts} +2 -2
- package/dist/shared/{rolldown-build-Cy0C2jvD.mjs → create-bundler-option-CAx_5u9x.mjs} +72 -179
- package/dist/shared/{define-config-JSiTCvYA.d.mts → define-config-D7NdzfP7.d.mts} +86 -27
- package/dist/shared/{error-pMeQY3Ie.mjs → error-BdMRRSIe.mjs} +1 -1
- package/dist/shared/{load-config-BAsjK_il.mjs → load-config-Bh1CAJT7.mjs} +2 -2
- package/dist/shared/{logs-ZGEh6uhb.mjs → logs-DmYCAKcW.mjs} +8 -1
- package/dist/shared/{misc-CoQm4NHO.mjs → misc-DOSKtd97.mjs} +9 -1
- package/dist/shared/{normalize-string-or-regex-CSHtENP1.mjs → normalize-string-or-regex-Bp8lvaXp.mjs} +2 -2
- package/dist/shared/{parse-BEeauYyL.mjs → parse-Be-cJD0d.mjs} +2 -2
- package/dist/shared/{prompt--dNycKSZ.mjs → prompt-CH6TK0bC.mjs} +2 -6
- package/dist/shared/{resolve-tsconfig-upebNbwm.mjs → resolve-tsconfig-CzlObluk.mjs} +2 -2
- package/dist/shared/rolldown-BTyqb0Av.mjs +178 -0
- package/dist/shared/{transform-DJLP9UUk.d.mts → transform-CsZGbS4Q.d.mts} +1 -1
- package/dist/shared/{watch-BLrLOBAp.mjs → watch-BA13XFgy.mjs} +17 -14
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +16 -16
- package/package.json +26 -16
- package/dist/shared/binding-DnitnDvS.mjs +0 -594
- package/dist/shared/rolldown-DHWEkE2v.mjs +0 -40
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-Be-cJD0d.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-CzlObluk.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.143.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)) {
|
|
@@ -499,9 +499,7 @@ function walkNode(node, visitors) {
|
|
|
499
499
|
case "TSTypeReference":
|
|
500
500
|
walkTSTypeReference(node, visitors);
|
|
501
501
|
break;
|
|
502
|
-
case "TSUnionType":
|
|
503
|
-
walkTSUnionType(node, visitors);
|
|
504
|
-
break;
|
|
502
|
+
case "TSUnionType": walkTSUnionType(node, visitors);
|
|
505
503
|
}
|
|
506
504
|
}
|
|
507
505
|
function walkDebuggerStatement(node, visitors) {
|
|
@@ -2010,7 +2008,7 @@ function walkTSUnionType(node, visitors) {
|
|
|
2010
2008
|
exit !== null && exit(node);
|
|
2011
2009
|
}
|
|
2012
2010
|
//#endregion
|
|
2013
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2011
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2014
2012
|
/** Mapping from node type name to node type ID */
|
|
2015
2013
|
const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
|
|
2016
2014
|
["DebuggerStatement", 0],
|
|
@@ -2180,7 +2178,7 @@ const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
|
|
|
2180
2178
|
["TSUnionType", 164]
|
|
2181
2179
|
]);
|
|
2182
2180
|
//#endregion
|
|
2183
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2181
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2182
|
let compiledVisitor;
|
|
2185
2183
|
function createCompiledVisitor() {
|
|
2186
2184
|
compiledVisitor = [];
|
|
@@ -2243,14 +2241,16 @@ function addVisitorToCompiled(visitor) {
|
|
|
2243
2241
|
const typeId = NODE_TYPE_IDS_MAP.get(name);
|
|
2244
2242
|
if (typeId === void 0) throw new Error(`Unknown node type '${name}' in visitor object`);
|
|
2245
2243
|
const existing = compiledVisitor[typeId];
|
|
2246
|
-
if (typeId < 27)
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2244
|
+
if (typeId < 27) {
|
|
2245
|
+
if (existing === null) compiledVisitor[typeId] = visitFn;
|
|
2246
|
+
else if (Array.isArray(existing)) {
|
|
2247
|
+
if (isExit) existing.push(visitFn);
|
|
2248
|
+
else existing.splice(existing.length - 1, 0, visitFn);
|
|
2249
|
+
} else {
|
|
2250
|
+
compiledVisitor[typeId] = isExit ? createVisitFnArray(existing, visitFn) : createVisitFnArray(visitFn, existing);
|
|
2251
|
+
mergedLeafVisitorTypeIds.push(typeId);
|
|
2252
|
+
}
|
|
2253
|
+
} else if (existing === null) {
|
|
2254
2254
|
const enterExit = compiledVisitor[typeId] = getEnterExitObject();
|
|
2255
2255
|
if (isExit) enterExit.exit = visitFn;
|
|
2256
2256
|
else enterExit.enter = visitFn;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollipop/rolldown",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundler",
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"bin",
|
|
25
25
|
"cli",
|
|
26
26
|
"dist",
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"THIRD-PARTY-LICENSE",
|
|
27
29
|
"!dist/*.node"
|
|
28
30
|
],
|
|
29
31
|
"type": "module",
|
|
@@ -31,6 +33,8 @@
|
|
|
31
33
|
"module": "./dist/index.mjs",
|
|
32
34
|
"types": "./dist/index.d.mts",
|
|
33
35
|
"imports": {
|
|
36
|
+
"#default-runtime": "./dist/experimental-default-runtime.mjs",
|
|
37
|
+
"#runtime": "./dist/experimental-runtime.mjs",
|
|
34
38
|
"#parallel-plugin-worker": "./dist/parallel-plugin-worker.mjs"
|
|
35
39
|
},
|
|
36
40
|
"exports": {
|
|
@@ -40,6 +44,10 @@
|
|
|
40
44
|
"./experimental/runtime-types": {
|
|
41
45
|
"types": "./dist/experimental-runtime-types.d.ts"
|
|
42
46
|
},
|
|
47
|
+
"./experimental/runtime": {
|
|
48
|
+
"types": "./dist/experimental-runtime.d.ts",
|
|
49
|
+
"default": "./dist/experimental-runtime.mjs"
|
|
50
|
+
},
|
|
43
51
|
"./filter": "./dist/filter-index.mjs",
|
|
44
52
|
"./getLogFilter": "./dist/get-log-filter.mjs",
|
|
45
53
|
"./parallelPlugin": "./dist/parallel-plugin.mjs",
|
|
@@ -53,12 +61,14 @@
|
|
|
53
61
|
"registry": "https://registry.npmjs.org/"
|
|
54
62
|
},
|
|
55
63
|
"dependencies": {
|
|
56
|
-
"@oxc-project/types": "=0.
|
|
64
|
+
"@oxc-project/types": "=0.143.0",
|
|
57
65
|
"@rolldown/pluginutils": "^1.0.0"
|
|
58
66
|
},
|
|
59
67
|
"devDependencies": {
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
68
|
+
"@emnapi/core": "2.0.0-alpha.3",
|
|
69
|
+
"@emnapi/runtime": "2.0.0-alpha.3",
|
|
70
|
+
"@napi-rs/cli": "^3.8.2",
|
|
71
|
+
"@napi-rs/wasm-runtime": "^1.2.2",
|
|
62
72
|
"@oxc-node/cli": "^0.1.0",
|
|
63
73
|
"@rollup/plugin-json": "^6.1.0",
|
|
64
74
|
"buble": "^0.20.0",
|
|
@@ -67,17 +77,17 @@
|
|
|
67
77
|
"execa": "^9.2.0",
|
|
68
78
|
"fresh-import": "^0.2.1",
|
|
69
79
|
"glob": "^13.0.0",
|
|
70
|
-
"oxc-parser": "=0.
|
|
80
|
+
"oxc-parser": "=0.143.0",
|
|
71
81
|
"pathe": "^2.0.3",
|
|
72
82
|
"remeda": "^2.34.1",
|
|
73
|
-
"rolldown": "1.2.
|
|
74
|
-
"rolldown-plugin-dts": "^0.
|
|
83
|
+
"rolldown": "1.2.1",
|
|
84
|
+
"rolldown-plugin-dts": "^0.28.0",
|
|
75
85
|
"rollup": "^4.60.4",
|
|
76
86
|
"signal-exit": "4.1.0",
|
|
77
|
-
"source-map": "0.
|
|
87
|
+
"source-map": "0.8.0",
|
|
78
88
|
"typescript": "^6.0.0",
|
|
79
89
|
"valibot": "1.4.2",
|
|
80
|
-
"@rollipop/rolldown": "1.0.
|
|
90
|
+
"@rollipop/rolldown": "1.0.27"
|
|
81
91
|
},
|
|
82
92
|
"napi": {
|
|
83
93
|
"binaryName": "rolldown-binding",
|
|
@@ -105,13 +115,13 @@
|
|
|
105
115
|
"node": "^20.19.0 || >=22.12.0"
|
|
106
116
|
},
|
|
107
117
|
"optionalDependencies": {
|
|
108
|
-
"@rollipop/rolldown-binding-darwin-x64": "1.0.
|
|
109
|
-
"@rollipop/rolldown-binding-win32-x64-msvc": "1.0.
|
|
110
|
-
"@rollipop/rolldown-binding-linux-x64-gnu": "1.0.
|
|
111
|
-
"@rollipop/rolldown-binding-linux-x64-musl": "1.0.
|
|
112
|
-
"@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.
|
|
113
|
-
"@rollipop/rolldown-binding-darwin-arm64": "1.0.
|
|
114
|
-
"@rollipop/rolldown-binding-linux-arm64-musl": "1.0.
|
|
118
|
+
"@rollipop/rolldown-binding-darwin-x64": "1.0.27",
|
|
119
|
+
"@rollipop/rolldown-binding-win32-x64-msvc": "1.0.27",
|
|
120
|
+
"@rollipop/rolldown-binding-linux-x64-gnu": "1.0.27",
|
|
121
|
+
"@rollipop/rolldown-binding-linux-x64-musl": "1.0.27",
|
|
122
|
+
"@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.27",
|
|
123
|
+
"@rollipop/rolldown-binding-darwin-arm64": "1.0.27",
|
|
124
|
+
"@rollipop/rolldown-binding-linux-arm64-musl": "1.0.27"
|
|
115
125
|
},
|
|
116
126
|
"scripts": {
|
|
117
127
|
"# Scrips for binding #": "_",
|