rolldown 1.2.1 → 1.2.3

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.
Files changed (32) hide show
  1. package/dist/cli.d.mts +1 -1
  2. package/dist/cli.mjs +14 -10
  3. package/dist/config.d.mts +1 -1
  4. package/dist/config.mjs +2 -2
  5. package/dist/experimental-index.d.mts +2 -2
  6. package/dist/experimental-index.mjs +8 -8
  7. package/dist/filter-index.d.mts +1 -1
  8. package/dist/index.d.mts +1 -1
  9. package/dist/index.mjs +4 -4
  10. package/dist/parallel-plugin-worker.d.mts +1 -1
  11. package/dist/parallel-plugin-worker.mjs +3 -3
  12. package/dist/parallel-plugin.d.mts +1 -1
  13. package/dist/parse-ast-index.mjs +1 -1
  14. package/dist/plugins-index.d.mts +2 -2
  15. package/dist/plugins-index.mjs +2 -2
  16. package/dist/shared/binding-CKyeQZen.mjs +673 -0
  17. package/dist/shared/{bindingify-input-options-EnUlEF0T.mjs → bindingify-input-options-CMab5gbt.mjs} +247 -28
  18. package/dist/shared/{constructors-CuqzPFxJ.mjs → constructors-6Zc-JFd7.mjs} +1 -1
  19. package/dist/shared/{constructors-ALilxAii.d.mts → constructors-XaIbWpwJ.d.mts} +1 -1
  20. package/dist/shared/{create-bundler-option-4QtiLLuz.mjs → create-bundler-option-BZD-ER-Z.mjs} +36 -26
  21. package/dist/shared/{define-config-DSMNXceb.d.mts → define-config-DVsXPNaU.d.mts} +0 -4
  22. package/dist/shared/{error-BgfXq0Tb.mjs → error-BzLGqhSQ.mjs} +1 -1
  23. package/dist/shared/{load-config-DsMzOVzu.mjs → load-config-ChaLPL3M.mjs} +1 -1
  24. package/dist/shared/{normalize-string-or-regex-BVNGzRe4.mjs → normalize-string-or-regex-DYjJ67tj.mjs} +1 -1
  25. package/dist/shared/{parse-DQIYJwT4.mjs → parse-CWXBoSKb.mjs} +2 -2
  26. package/dist/shared/{resolve-tsconfig-CQndqeLj.mjs → resolve-tsconfig-Bcd82vVT.mjs} +2 -2
  27. package/dist/shared/{rolldown-DP_p9pd3.mjs → rolldown-I5b6h5Km.mjs} +5 -5
  28. package/dist/shared/{watch-Cwq-cFUy.mjs → watch-BW4p8Vif.mjs} +5 -5
  29. package/dist/utils-index.d.mts +1 -1
  30. package/dist/utils-index.mjs +15 -13
  31. package/package.json +22 -22
  32. package/dist/shared/binding-Cv62mM1i.mjs +0 -662
@@ -1,6 +1,6 @@
1
- import { n as parseSync, t as parse } from "./shared/parse-DQIYJwT4.mjs";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-CQndqeLj.mjs";
3
- //#region ../../node_modules/.pnpm/oxc-parser@0.142.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { n as parseSync, t as parse } from "./shared/parse-CWXBoSKb.mjs";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-Bcd82vVT.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)) {
@@ -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.142.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2011
+ //#region ../../node_modules/.pnpm/oxc-parser@0.143.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.142.0/node_modules/oxc-parser/src-js/visit/visitor.js
2181
+ //#region ../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/visit/visitor.js
2182
2182
  let compiledVisitor;
2183
2183
  function createCompiledVisitor() {
2184
2184
  compiledVisitor = [];
@@ -2241,14 +2241,16 @@ function addVisitorToCompiled(visitor) {
2241
2241
  const typeId = NODE_TYPE_IDS_MAP.get(name);
2242
2242
  if (typeId === void 0) throw new Error(`Unknown node type '${name}' in visitor object`);
2243
2243
  const existing = compiledVisitor[typeId];
2244
- if (typeId < 27) if (existing === null) compiledVisitor[typeId] = visitFn;
2245
- else if (Array.isArray(existing)) if (isExit) existing.push(visitFn);
2246
- else existing.splice(existing.length - 1, 0, visitFn);
2247
- else {
2248
- compiledVisitor[typeId] = isExit ? createVisitFnArray(existing, visitFn) : createVisitFnArray(visitFn, existing);
2249
- mergedLeafVisitorTypeIds.push(typeId);
2250
- }
2251
- else if (existing === null) {
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) {
2252
2254
  const enterExit = compiledVisitor[typeId] = getEnterExitObject();
2253
2255
  if (isExit) enterExit.exit = visitFn;
2254
2256
  else enterExit.enter = visitFn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "keywords": [
6
6
  "bundler",
@@ -34,6 +34,7 @@
34
34
  "types": "./dist/index.d.mts",
35
35
  "imports": {
36
36
  "#default-runtime": "./dist/experimental-default-runtime.mjs",
37
+ "#runtime": "./dist/experimental-runtime.mjs",
37
38
  "#parallel-plugin-worker": "./dist/parallel-plugin-worker.mjs"
38
39
  },
39
40
  "exports": {
@@ -60,30 +61,30 @@
60
61
  "registry": "https://registry.npmjs.org/"
61
62
  },
62
63
  "dependencies": {
63
- "@oxc-project/types": "=0.142.0",
64
+ "@oxc-project/types": "=0.143.0",
64
65
  "@rolldown/pluginutils": "^1.0.0"
65
66
  },
66
67
  "devDependencies": {
67
68
  "@emnapi/core": "2.0.0-alpha.3",
68
69
  "@emnapi/runtime": "2.0.0-alpha.3",
69
- "@napi-rs/cli": "^3.8.0",
70
- "@napi-rs/wasm-runtime": "^1.2.0",
70
+ "@napi-rs/cli": "^3.8.2",
71
+ "@napi-rs/wasm-runtime": "^1.2.2",
71
72
  "@oxc-node/cli": "^0.1.0",
72
73
  "cac": "^7.0.0",
73
74
  "consola": "^3.4.2",
74
75
  "execa": "^9.2.0",
75
76
  "fresh-import": "^0.2.1",
76
77
  "glob": "^13.0.0",
77
- "oxc-parser": "=0.142.0",
78
+ "oxc-parser": "=0.143.0",
78
79
  "pathe": "^2.0.3",
79
80
  "remeda": "^2.34.1",
80
- "rolldown-plugin-dts": "^0.27.0",
81
+ "rolldown-plugin-dts": "^0.28.0",
81
82
  "rollup": "^4.60.4",
82
83
  "signal-exit": "4.1.0",
83
84
  "source-map": "0.8.0",
84
85
  "typescript": "^6.0.0",
85
86
  "valibot": "1.4.2",
86
- "rolldown": "1.2.1"
87
+ "rolldown": "1.2.3"
87
88
  },
88
89
  "napi": {
89
90
  "binaryName": "rolldown-binding",
@@ -119,21 +120,20 @@
119
120
  "node": "^20.19.0 || >=22.12.0"
120
121
  },
121
122
  "optionalDependencies": {
122
- "@rolldown/binding-darwin-x64": "1.2.1",
123
- "@rolldown/binding-win32-x64-msvc": "1.2.1",
124
- "@rolldown/binding-linux-x64-gnu": "1.2.1",
125
- "@rolldown/binding-linux-x64-musl": "1.2.1",
126
- "@rolldown/binding-freebsd-x64": "1.2.1",
127
- "@rolldown/binding-linux-arm-gnueabihf": "1.2.1",
128
- "@rolldown/binding-linux-arm64-gnu": "1.2.1",
129
- "@rolldown/binding-darwin-arm64": "1.2.1",
130
- "@rolldown/binding-linux-arm64-musl": "1.2.1",
131
- "@rolldown/binding-openharmony-arm64": "1.2.1",
132
- "@rolldown/binding-win32-arm64-msvc": "1.2.1",
133
- "@rolldown/binding-android-arm64": "1.2.1",
134
- "@rolldown/binding-wasm32-wasi": "1.2.1",
135
- "@rolldown/binding-linux-s390x-gnu": "1.2.1",
136
- "@rolldown/binding-linux-ppc64-gnu": "1.2.1"
123
+ "@rolldown/binding-darwin-x64": "1.2.3",
124
+ "@rolldown/binding-win32-x64-msvc": "1.2.3",
125
+ "@rolldown/binding-linux-x64-gnu": "1.2.3",
126
+ "@rolldown/binding-linux-x64-musl": "1.2.3",
127
+ "@rolldown/binding-freebsd-x64": "1.2.3",
128
+ "@rolldown/binding-linux-arm-gnueabihf": "1.2.3",
129
+ "@rolldown/binding-linux-arm64-gnu": "1.2.3",
130
+ "@rolldown/binding-darwin-arm64": "1.2.3",
131
+ "@rolldown/binding-linux-arm64-musl": "1.2.3",
132
+ "@rolldown/binding-openharmony-arm64": "1.2.3",
133
+ "@rolldown/binding-win32-arm64-msvc": "1.2.3",
134
+ "@rolldown/binding-android-arm64": "1.2.3",
135
+ "@rolldown/binding-linux-s390x-gnu": "1.2.3",
136
+ "@rolldown/binding-linux-ppc64-gnu": "1.2.3"
137
137
  },
138
138
  "scripts": {
139
139
  "# Scrips for binding #": "_",