@rollipop/rolldown 1.0.24 → 1.0.25

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 (39) hide show
  1. package/dist/cli.mjs +6 -6
  2. package/dist/config.d.mts +16 -17
  3. package/dist/config.mjs +2 -2
  4. package/dist/experimental-index.d.mts +214 -205
  5. package/dist/experimental-index.mjs +23 -14
  6. package/dist/experimental-runtime-types.d.ts +111 -41
  7. package/dist/filter-index.d.mts +6 -5
  8. package/dist/get-log-filter.d.mts +2 -2
  9. package/dist/index.d.mts +3 -3
  10. package/dist/index.mjs +4 -4
  11. package/dist/parallel-plugin-worker.mjs +2 -2
  12. package/dist/parallel-plugin.d.mts +3 -4
  13. package/dist/parse-ast-index.d.mts +19 -20
  14. package/dist/parse-ast-index.mjs +1 -1
  15. package/dist/plugins-index.d.mts +27 -28
  16. package/dist/plugins-index.mjs +2 -2
  17. package/dist/shared/{binding-FraDreAW.d.mts → binding-CyCKfYSu.d.mts} +37 -25
  18. package/dist/shared/{binding-DLP3kSP5.mjs → binding-DnitnDvS.mjs} +26 -26
  19. package/dist/shared/{bindingify-input-options-DQnooxIa.mjs → bindingify-input-options-CkSiXecU.mjs} +5 -5
  20. package/dist/shared/{constructors-CXtPAgZN.d.mts → constructors-B1v9buY3.d.mts} +9 -10
  21. package/dist/shared/{constructors-DpCCe7z3.mjs → constructors-CEYV9FDo.mjs} +1 -1
  22. package/dist/shared/define-config-JSiTCvYA.d.mts +4033 -0
  23. package/dist/shared/{error-CIdnbKmG.mjs → error-pMeQY3Ie.mjs} +1 -1
  24. package/dist/shared/get-log-filter-B6CU6b90.d.mts +34 -0
  25. package/dist/shared/{load-config-5r6l-9qr.mjs → load-config-BAsjK_il.mjs} +1 -1
  26. package/dist/shared/{logging-BSNejiLS.d.mts → logging-xuHO4mAy.d.mts} +6 -6
  27. package/dist/shared/{normalize-string-or-regex-oITfWWWc.mjs → normalize-string-or-regex-CSHtENP1.mjs} +1 -1
  28. package/dist/shared/{parse-CI_bqXWS.mjs → parse-BEeauYyL.mjs} +2 -2
  29. package/dist/shared/{resolve-tsconfig-9cpL_qUM.mjs → resolve-tsconfig-upebNbwm.mjs} +2 -2
  30. package/dist/shared/{rolldown-DBxQ1pTJ.mjs → rolldown-DHWEkE2v.mjs} +1 -1
  31. package/dist/shared/{rolldown-build-Blclcr5k.mjs → rolldown-build-Cy0C2jvD.mjs} +4 -4
  32. package/dist/shared/transform-DJLP9UUk.d.mts +148 -0
  33. package/dist/shared/{watch-DElgNTzo.mjs → watch-BLrLOBAp.mjs} +4 -4
  34. package/dist/utils-index.d.mts +29 -30
  35. package/dist/utils-index.mjs +5 -5
  36. package/package.json +14 -14
  37. package/dist/shared/define-config-oNOGrLUX.d.mts +0 -4008
  38. package/dist/shared/get-log-filter-B4LpBryx.d.mts +0 -35
  39. package/dist/shared/transform-DmrnpNrQ.d.mts +0 -149
@@ -1,4 +1,4 @@
1
- import { t as require_binding } from "./binding-DLP3kSP5.mjs";
1
+ import { t as require_binding } from "./binding-DnitnDvS.mjs";
2
2
  //#region src/types/sourcemap.ts
3
3
  function bindingifySourcemap(map) {
4
4
  if (map == null) return;
@@ -0,0 +1,34 @@
1
+ import { a as RolldownLog } from "./logging-xuHO4mAy.mjs";
2
+ //#region src/get-log-filter.d.ts
3
+ /**
4
+ * @param filters A list of log filters to apply
5
+ * @returns A function that tests whether a log should be output
6
+ *
7
+ * @category Config
8
+ */
9
+ type GetLogFilter = (filters: string[]) => (log: RolldownLog) => boolean;
10
+ /**
11
+ * A helper function to generate log filters using the same syntax as the CLI.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * import { defineConfig } from '@rollipop/rolldown';
16
+ * import { getLogFilter } from '@rollipop/rolldown/getLogFilter';
17
+ *
18
+ * const logFilter = getLogFilter(['code:FOO', 'code:BAR']);
19
+ *
20
+ * export default defineConfig({
21
+ * input: 'main.js',
22
+ * onLog(level, log, handler) {
23
+ * if (logFilter(log)) {
24
+ * handler(level, log);
25
+ * }
26
+ * }
27
+ * });
28
+ * ```
29
+ *
30
+ * @category Config
31
+ */
32
+ declare const getLogFilter: GetLogFilter;
33
+ //#endregion
34
+ export { getLogFilter as n, GetLogFilter as t };
@@ -1,4 +1,4 @@
1
- import { t as rolldown } from "./rolldown-DBxQ1pTJ.mjs";
1
+ import { t as rolldown } from "./rolldown-DHWEkE2v.mjs";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import { readdir } from "node:fs/promises";
@@ -9,9 +9,9 @@ interface RolldownLog {
9
9
  binding?: string;
10
10
  cause?: unknown;
11
11
  /**
12
- * The log code for this log object.
13
- * @example 'PLUGIN_ERROR'
14
- */
12
+ * The log code for this log object.
13
+ * @example 'PLUGIN_ERROR'
14
+ */
15
15
  code?: string;
16
16
  exporter?: string;
17
17
  frame?: string;
@@ -24,9 +24,9 @@ interface RolldownLog {
24
24
  line: number;
25
25
  };
26
26
  /**
27
- * The message for this log object.
28
- * @example 'The "transform" hook used by the output plugin "rolldown-plugin-foo" is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.'
29
- */
27
+ * The message for this log object.
28
+ * @example 'The "transform" hook used by the output plugin "rolldown-plugin-foo" is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.'
29
+ */
30
30
  message: string;
31
31
  meta?: any;
32
32
  names?: string[];
@@ -1,4 +1,4 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DLP3kSP5.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-DnitnDvS.mjs";
2
2
  import { c as logPluginError, n as error } from "./logs-ZGEh6uhb.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-DLP3kSP5.mjs";
2
- //#region ../../node_modules/.pnpm/oxc-parser@0.139.0/node_modules/oxc-parser/src-js/wrap.js
1
+ import { n as __toESM, t as require_binding } from "./binding-DnitnDvS.mjs";
2
+ //#region ../../node_modules/.pnpm/oxc-parser@0.140.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-DLP3kSP5.mjs";
2
- import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-CIdnbKmG.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-DnitnDvS.mjs";
2
+ import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-pMeQY3Ie.mjs";
3
3
  //#region src/utils/minify.ts
4
4
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-Blclcr5k.mjs";
1
+ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-Cy0C2jvD.mjs";
2
2
  //#region src/api/rolldown/index.ts
3
3
  /**
4
4
  * The API compatible with Rollup's `rollup` function.
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DLP3kSP5.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-DnitnDvS.mjs";
2
2
  import { i as logInputHookInOutputPlugin, n as error } from "./logs-ZGEh6uhb.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-oITfWWWc.mjs";
4
- import { a as transformModuleInfo, b as VERSION, c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as PluginContextData, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, y as logLevelPriority } from "./bindingify-input-options-DQnooxIa.mjs";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-CSHtENP1.mjs";
4
+ import { a as transformModuleInfo, b as VERSION, c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as PluginContextData, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, y as logLevelPriority } from "./bindingify-input-options-CkSiXecU.mjs";
5
5
  import { i as unimplemented } from "./misc-CoQm4NHO.mjs";
6
- import { i as unwrapBindingResult } from "./error-CIdnbKmG.mjs";
6
+ import { i as unwrapBindingResult } from "./error-pMeQY3Ie.mjs";
7
7
  import { Worker } from "node:worker_threads";
8
8
  import path, { sep } from "node:path";
9
9
  import { formatWithOptions, styleText } from "node:util";
@@ -0,0 +1,148 @@
1
+ import { a as RolldownLog } from "./logging-xuHO4mAy.mjs";
2
+ import { H as ParserOptions$1, L as MinifyOptions$1, R as MinifyResult$1, V as ParseResult$1, Y as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, q as SourceMap, x as BindingTsconfigResult } from "./binding-CyCKfYSu.mjs";
3
+ //#region src/utils/resolve-tsconfig.d.ts
4
+ /**
5
+ * Cache for tsconfig resolution to avoid redundant file system operations.
6
+ *
7
+ * The cache stores resolved tsconfig configurations keyed by their file paths.
8
+ * When transforming multiple files in the same project, tsconfig lookups are
9
+ * deduplicated, improving performance.
10
+ *
11
+ * @category Utilities
12
+ * @experimental
13
+ */
14
+ declare class TsconfigCache extends TsconfigCache$1 {
15
+ constructor();
16
+ }
17
+ /** @hidden This is only expected to be used by Vite */
18
+ declare function resolveTsconfig(filename: string, cache?: TsconfigCache | null): BindingTsconfigResult | null;
19
+ //#endregion
20
+ //#region src/utils/parse.d.ts
21
+ /**
22
+ * Result of parsing a code
23
+ *
24
+ * @category Utilities
25
+ */
26
+ interface ParseResult extends ParseResult$1 {}
27
+ /**
28
+ * Options for parsing a code
29
+ *
30
+ * @category Utilities
31
+ */
32
+ interface ParserOptions extends ParserOptions$1 {}
33
+ /**
34
+ * Parse JS/TS source asynchronously on a separate thread.
35
+ *
36
+ * Note that not all of the workload can happen on a separate thread.
37
+ * Parsing on Rust side does happen in a separate thread, but deserialization of the AST to JS objects
38
+ * has to happen on current thread. This synchronous deserialization work typically outweighs
39
+ * the asynchronous parsing by a factor of between 3 and 20.
40
+ *
41
+ * i.e. the majority of the workload cannot be parallelized by using this method.
42
+ *
43
+ * Generally {@linkcode parseSync} is preferable to use as it does not have the overhead of spawning a thread.
44
+ * If you need to parallelize parsing multiple files, it is recommended to use worker threads.
45
+ *
46
+ * @category Utilities
47
+ */
48
+ declare function parse(filename: string, sourceText: string, options?: ParserOptions | null): Promise<ParseResult>;
49
+ /**
50
+ * Parse JS/TS source synchronously on current thread.
51
+ *
52
+ * This is generally preferable over {@linkcode parse} (async) as it does not have the overhead
53
+ * of spawning a thread, and the majority of the workload cannot be parallelized anyway
54
+ * (see {@linkcode parse} documentation for details).
55
+ *
56
+ * If you need to parallelize parsing multiple files, it is recommended to use worker threads
57
+ * with {@linkcode parseSync} rather than using {@linkcode parse}.
58
+ *
59
+ * @category Utilities
60
+ */
61
+ declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | null): ParseResult;
62
+ //#endregion
63
+ //#region src/utils/minify.d.ts
64
+ /**
65
+ * Options for minification.
66
+ *
67
+ * @category Utilities
68
+ */
69
+ interface MinifyOptions extends MinifyOptions$1 {
70
+ inputMap?: SourceMap;
71
+ }
72
+ /**
73
+ * The result of minification.
74
+ *
75
+ * @category Utilities
76
+ */
77
+ interface MinifyResult extends MinifyResult$1 {}
78
+ /**
79
+ * Minify asynchronously.
80
+ *
81
+ * Note: This function can be slower than {@linkcode minifySync} due to the overhead of spawning a thread.
82
+ *
83
+ * @category Utilities
84
+ * @experimental
85
+ */
86
+ declare function minify(filename: string, sourceText: string, options?: MinifyOptions | null): Promise<MinifyResult>;
87
+ /**
88
+ * Minify synchronously.
89
+ *
90
+ * @category Utilities
91
+ * @experimental
92
+ */
93
+ declare function minifySync(filename: string, sourceText: string, options?: MinifyOptions | null): MinifyResult;
94
+ //#endregion
95
+ //#region src/utils/transform.d.ts
96
+ /**
97
+ * Options for transforming a code.
98
+ *
99
+ * @category Utilities
100
+ */
101
+ interface TransformOptions extends BindingEnhancedTransformOptions {}
102
+ /**
103
+ * Result of transforming a code.
104
+ *
105
+ * @category Utilities
106
+ */
107
+ type TransformResult = Omit<BindingEnhancedTransformResult, "errors" | "warnings"> & {
108
+ errors: Error[];
109
+ warnings: RolldownLog[];
110
+ };
111
+ /**
112
+ * Transpile a JavaScript or TypeScript into a target ECMAScript version, asynchronously.
113
+ *
114
+ * Note: This function can be slower than `transformSync` due to the overhead of spawning a thread.
115
+ *
116
+ * @param filename The name of the file being transformed. If this is a
117
+ * relative path, consider setting the {@linkcode TransformOptions#cwd} option.
118
+ * @param sourceText The source code to transform.
119
+ * @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
120
+ * @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
121
+ * Only used when `options.tsconfig` is `true`.
122
+ *
123
+ * @returns a promise that resolves to an object containing the transformed code,
124
+ * source maps, and any errors that occurred during parsing or transformation.
125
+ *
126
+ * @category Utilities
127
+ * @experimental
128
+ */
129
+ declare function transform(filename: string, sourceText: string, options?: TransformOptions | null, cache?: TsconfigCache | null): Promise<TransformResult>;
130
+ /**
131
+ * Transpile a JavaScript or TypeScript into a target ECMAScript version.
132
+ *
133
+ * @param filename The name of the file being transformed. If this is a
134
+ * relative path, consider setting the {@linkcode TransformOptions#cwd} option.
135
+ * @param sourceText The source code to transform.
136
+ * @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
137
+ * @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
138
+ * Only used when `options.tsconfig` is `true`.
139
+ *
140
+ * @returns an object containing the transformed code, source maps, and any errors
141
+ * that occurred during parsing or transformation.
142
+ *
143
+ * @category Utilities
144
+ * @experimental
145
+ */
146
+ declare function transformSync(filename: string, sourceText: string, options?: TransformOptions | null, cache?: TsconfigCache | null): TransformResult;
147
+ //#endregion
148
+ export { MinifyOptions as a, minifySync as c, parse as d, parseSync as f, transformSync as i, ParseResult as l, resolveTsconfig as m, TransformResult as n, MinifyResult as o, TsconfigCache as p, transform as r, minify as s, TransformOptions as t, ParserOptions as u };
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DLP3kSP5.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-DnitnDvS.mjs";
2
2
  import { o as logMultipleWatcherOption } from "./logs-ZGEh6uhb.mjs";
3
- import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-DQnooxIa.mjs";
3
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-CkSiXecU.mjs";
4
4
  import { t as arraify } from "./misc-CoQm4NHO.mjs";
5
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-Blclcr5k.mjs";
6
- import { t as aggregateBindingErrorsIntoJsError } from "./error-CIdnbKmG.mjs";
5
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-Cy0C2jvD.mjs";
6
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-pMeQY3Ie.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.
@@ -1,9 +1,8 @@
1
- import { v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-FraDreAW.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-DmrnpNrQ.mjs";
1
+ import { b as BindingTsconfigRawOptions, y as BindingTsconfigCompilerOptions } from "./shared/binding-CyCKfYSu.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-DJLP9UUk.mjs";
3
3
  import * as ESTree from "@oxc-project/types";
4
4
  import { Program } from "@oxc-project/types";
5
-
6
- //#region ../../node_modules/.pnpm/oxc-parser@0.139.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
5
+ //#region ../../node_modules/.pnpm/oxc-parser@0.140.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
7
6
  interface VisitorObject$1 {
8
7
  DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
9
8
  "DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
@@ -339,34 +338,34 @@ interface VisitorObject$1 {
339
338
  //#endregion
340
339
  //#region src/utils/visitor.d.ts
341
340
  /**
342
- * Visitor object for traversing AST.
343
- *
344
- * @category Utilities
345
- */
341
+ * Visitor object for traversing AST.
342
+ *
343
+ * @category Utilities
344
+ */
346
345
  type VisitorObject = VisitorObject$1;
347
346
  /**
348
- * Visitor class for traversing AST.
349
- *
350
- * @example
351
- * ```ts
352
- * import { Visitor } from '@rollipop/rolldown/utils';
353
- * import { parseSync } from '@rollipop/rolldown/utils';
354
- *
355
- * const result = parseSync(...);
356
- * const visitor = new Visitor({
357
- * VariableDeclaration(path) {
358
- * // Do something with the variable declaration
359
- * },
360
- * "VariableDeclaration:exit"(path) {
361
- * // Do something after visiting the variable declaration
362
- * }
363
- * });
364
- * visitor.visit(result.program);
365
- * ```
366
- *
367
- * @category Utilities
368
- * @experimental
369
- */
347
+ * Visitor class for traversing AST.
348
+ *
349
+ * @example
350
+ * ```ts
351
+ * import { Visitor } from '@rollipop/rolldown/utils';
352
+ * import { parseSync } from '@rollipop/rolldown/utils';
353
+ *
354
+ * const result = parseSync(...);
355
+ * const visitor = new Visitor({
356
+ * VariableDeclaration(path) {
357
+ * // Do something with the variable declaration
358
+ * },
359
+ * "VariableDeclaration:exit"(path) {
360
+ * // Do something after visiting the variable declaration
361
+ * }
362
+ * });
363
+ * visitor.visit(result.program);
364
+ * ```
365
+ *
366
+ * @category Utilities
367
+ * @experimental
368
+ */
370
369
  declare class Visitor {
371
370
  #private;
372
371
  constructor(visitor: VisitorObject);
@@ -1,6 +1,6 @@
1
- import { n as parseSync, t as parse } from "./shared/parse-CI_bqXWS.mjs";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-9cpL_qUM.mjs";
3
- //#region ../../node_modules/.pnpm/oxc-parser@0.139.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { n as parseSync, t as parse } from "./shared/parse-BEeauYyL.mjs";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-upebNbwm.mjs";
3
+ //#region ../../node_modules/.pnpm/oxc-parser@0.140.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)) {
@@ -2010,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
2010
2010
  exit !== null && exit(node);
2011
2011
  }
2012
2012
  //#endregion
2013
- //#region ../../node_modules/.pnpm/oxc-parser@0.139.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2013
+ //#region ../../node_modules/.pnpm/oxc-parser@0.140.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2014
2014
  /** Mapping from node type name to node type ID */
2015
2015
  const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
2016
2016
  ["DebuggerStatement", 0],
@@ -2180,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
2180
2180
  ["TSUnionType", 164]
2181
2181
  ]);
2182
2182
  //#endregion
2183
- //#region ../../node_modules/.pnpm/oxc-parser@0.139.0/node_modules/oxc-parser/src-js/visit/visitor.js
2183
+ //#region ../../node_modules/.pnpm/oxc-parser@0.140.0/node_modules/oxc-parser/src-js/visit/visitor.js
2184
2184
  let compiledVisitor;
2185
2185
  function createCompiledVisitor() {
2186
2186
  compiledVisitor = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollipop/rolldown",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "keywords": [
6
6
  "bundler",
@@ -53,11 +53,11 @@
53
53
  "registry": "https://registry.npmjs.org/"
54
54
  },
55
55
  "dependencies": {
56
- "@oxc-project/types": "=0.139.0",
56
+ "@oxc-project/types": "=0.140.0",
57
57
  "@rolldown/pluginutils": "^1.0.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@napi-rs/cli": "^3.7.2",
60
+ "@napi-rs/cli": "^3.7.3",
61
61
  "@napi-rs/wasm-runtime": "^1.1.6",
62
62
  "@oxc-node/cli": "^0.1.0",
63
63
  "@rollup/plugin-json": "^6.1.0",
@@ -67,17 +67,17 @@
67
67
  "execa": "^9.2.0",
68
68
  "fresh-import": "^0.2.1",
69
69
  "glob": "^13.0.0",
70
- "oxc-parser": "=0.139.0",
70
+ "oxc-parser": "=0.140.0",
71
71
  "pathe": "^2.0.3",
72
72
  "remeda": "^2.34.1",
73
- "rolldown": "1.1.5",
74
- "rolldown-plugin-dts": "^0.26.0",
73
+ "rolldown": "1.2.0",
74
+ "rolldown-plugin-dts": "^0.27.0",
75
75
  "rollup": "^4.60.4",
76
76
  "signal-exit": "4.1.0",
77
77
  "source-map": "0.7.6",
78
78
  "typescript": "^6.0.0",
79
79
  "valibot": "1.4.2",
80
- "@rollipop/rolldown": "1.0.24"
80
+ "@rollipop/rolldown": "1.0.25"
81
81
  },
82
82
  "napi": {
83
83
  "binaryName": "rolldown-binding",
@@ -105,13 +105,13 @@
105
105
  "node": "^20.19.0 || >=22.12.0"
106
106
  },
107
107
  "optionalDependencies": {
108
- "@rollipop/rolldown-binding-darwin-x64": "1.0.24",
109
- "@rollipop/rolldown-binding-win32-x64-msvc": "1.0.24",
110
- "@rollipop/rolldown-binding-linux-x64-gnu": "1.0.24",
111
- "@rollipop/rolldown-binding-linux-x64-musl": "1.0.24",
112
- "@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.24",
113
- "@rollipop/rolldown-binding-darwin-arm64": "1.0.24",
114
- "@rollipop/rolldown-binding-linux-arm64-musl": "1.0.24"
108
+ "@rollipop/rolldown-binding-darwin-x64": "1.0.25",
109
+ "@rollipop/rolldown-binding-win32-x64-msvc": "1.0.25",
110
+ "@rollipop/rolldown-binding-linux-x64-gnu": "1.0.25",
111
+ "@rollipop/rolldown-binding-linux-x64-musl": "1.0.25",
112
+ "@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.25",
113
+ "@rollipop/rolldown-binding-darwin-arm64": "1.0.25",
114
+ "@rollipop/rolldown-binding-linux-arm64-musl": "1.0.25"
115
115
  },
116
116
  "scripts": {
117
117
  "# Scrips for binding #": "_",