@rolldown/browser 1.0.0-beta.9-commit.0ec9e7d → 1.0.0-rc.2

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 (73) hide show
  1. package/dist/cli-setup.mjs +16 -0
  2. package/dist/cli.mjs +1084 -1281
  3. package/dist/config.d.mts +1 -3
  4. package/dist/config.mjs +7 -5
  5. package/dist/constructors-B8gqcrFr.js +61 -0
  6. package/dist/experimental-index.browser.mjs +225 -50
  7. package/dist/experimental-index.d.mts +164 -76
  8. package/dist/experimental-index.mjs +220 -60
  9. package/dist/experimental-runtime-types.d.ts +98 -0
  10. package/dist/filter-index.d.mts +104 -2
  11. package/dist/filter-index.mjs +123 -3
  12. package/dist/get-log-filter.d.mts +7 -0
  13. package/dist/get-log-filter.mjs +48 -0
  14. package/dist/index.browser.mjs +242 -2
  15. package/dist/index.d.mts +4 -3
  16. package/dist/index.mjs +54 -5
  17. package/dist/{shared/parse-ast-index-BHaE0ECV.cjs → normalize-string-or-regex-CL-PJZI7.js} +70 -137
  18. package/dist/parallel-plugin-worker.mjs +26 -33
  19. package/dist/parallel-plugin.d.mts +7 -7
  20. package/dist/parse-ast-index.d.mts +5 -6
  21. package/dist/parse-ast-index.mjs +1 -2
  22. package/dist/plugins-index.browser.mjs +39 -0
  23. package/dist/plugins-index.d.mts +30 -0
  24. package/dist/plugins-index.mjs +39 -0
  25. package/dist/rolldown-binding.wasi-browser.js +41 -24
  26. package/dist/rolldown-binding.wasi.cjs +62 -24
  27. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  28. package/dist/rolldown-build-BntP6Bjl.js +5063 -0
  29. package/dist/shared/bindingify-input-options-CObJx_Uj.mjs +2236 -0
  30. package/dist/shared/composable-filters-CIxSuZSM.mjs +227 -0
  31. package/dist/shared/constructors-5bt5oBhE.d.mts +28 -0
  32. package/dist/shared/constructors-BTW-c3jX.mjs +61 -0
  33. package/dist/shared/define-config-C-sO_cLw.d.mts +3679 -0
  34. package/dist/shared/define-config-Dlptvz3X.mjs +7 -0
  35. package/dist/shared/{load-config-D7UduHRZ.mjs → load-config-hx3WBhLe.mjs} +23 -33
  36. package/dist/shared/logging-RB67zQ4N.d.mts +50 -0
  37. package/dist/shared/{parse-ast-index-vu376yZ1.mjs → logs-B2CASPcx.mjs} +21 -116
  38. package/dist/shared/normalize-string-or-regex-DIwprzLy.mjs +60 -0
  39. package/dist/shared/parse-ast-index-BQpfNG1v.mjs +98 -0
  40. package/dist/shared/{prompt-CxjDC0Gn.cjs → prompt-CYPmuhh-.mjs} +301 -308
  41. package/dist/shared/rolldown-D2E0YTeB.mjs +42 -0
  42. package/dist/shared/rolldown-build-Do6WlRGM.mjs +2371 -0
  43. package/dist/shared/types-CIhJMr1h.d.mts +1300 -0
  44. package/dist/shared/utils-CqMTwlsR.d.mts +22 -0
  45. package/dist/shared/watch-BsneBCNP.mjs +378 -0
  46. package/package.json +33 -38
  47. package/dist/cli.cjs +0 -1748
  48. package/dist/config.cjs +0 -12
  49. package/dist/config.d.cts +0 -11
  50. package/dist/experimental-index.cjs +0 -129
  51. package/dist/experimental-index.d.cts +0 -96
  52. package/dist/filter-index.cjs +0 -53
  53. package/dist/filter-index.d.cts +0 -3
  54. package/dist/index.cjs +0 -9
  55. package/dist/index.d.cts +0 -3
  56. package/dist/parallel-plugin-worker.cjs +0 -33
  57. package/dist/parallel-plugin-worker.d.cts +0 -1
  58. package/dist/parallel-plugin.cjs +0 -8
  59. package/dist/parallel-plugin.d.cts +0 -14
  60. package/dist/parse-ast-index.cjs +0 -4
  61. package/dist/parse-ast-index.d.cts +0 -9
  62. package/dist/shared/chunk-DDkG_k5U.cjs +0 -39
  63. package/dist/shared/chunk-DSsiIF1Z.mjs +0 -30
  64. package/dist/shared/define-config.d-D4lKXE9V.d.cts +0 -1165
  65. package/dist/shared/define-config.d-Dm9iNdt9.d.mts +0 -1165
  66. package/dist/shared/dist-BMVjvV-v.cjs +0 -249
  67. package/dist/shared/dist-CAn6dxW6.mjs +0 -153
  68. package/dist/shared/load-config-CtKjQ8Mn.cjs +0 -125
  69. package/dist/shared/prompt-GFYxfPw7.mjs +0 -854
  70. package/dist/shared/src-D0nc44MQ.mjs +0 -4691
  71. package/dist/shared/src-s89s870G.cjs +0 -4647
  72. package/dist/src-CeWghjQt.js +0 -4329
  73. /package/dist/{cli.d.cts → cli-setup.d.mts} +0 -0
@@ -0,0 +1,22 @@
1
+ import { BindingBuiltinPluginName } from "../binding.cjs";
2
+
3
+ //#region src/types/utils.d.ts
4
+ type MaybePromise<T> = T | Promise<T>;
5
+ /** @inline */
6
+ type NullValue<T = void> = T | undefined | null | void;
7
+ type PartialNull<T> = { [P in keyof T]: T[P] | null };
8
+ type MakeAsync<Function_> = Function_ extends ((this: infer This, ...parameters: infer Arguments) => infer Return) ? (this: This, ...parameters: Arguments) => Return | Promise<Return> : never;
9
+ type MaybeArray<T> = T | T[];
10
+ /** @inline */
11
+ type StringOrRegExp = string | RegExp;
12
+ //#endregion
13
+ //#region src/builtin-plugin/utils.d.ts
14
+ declare class BuiltinPlugin {
15
+ name: BindingBuiltinPluginName;
16
+ _options?: unknown;
17
+ /** Vite-specific option to control plugin ordering */
18
+ enforce?: "pre" | "post";
19
+ constructor(name: BindingBuiltinPluginName, _options?: unknown);
20
+ }
21
+ //#endregion
22
+ export { NullValue as a, MaybePromise as i, MakeAsync as n, PartialNull as o, MaybeArray as r, StringOrRegExp as s, BuiltinPlugin as t };
@@ -0,0 +1,378 @@
1
+ import { o as logMultiplyNotifyOption } from "./logs-B2CASPcx.mjs";
2
+ import { a as aggregateBindingErrorsIntoJsError, b as LOG_LEVEL_WARN } from "./bindingify-input-options-CObJx_Uj.mjs";
3
+ import { h as arraify } from "./composable-filters-CIxSuZSM.mjs";
4
+ import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-Do6WlRGM.mjs";
5
+ import { BindingWatcher, shutdownAsyncRuntime } from "../rolldown-binding.wasi.cjs";
6
+
7
+ //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
8
+ /**
9
+ * This is not the set of all possible signals.
10
+ *
11
+ * It IS, however, the set of all signals that trigger
12
+ * an exit on either Linux or BSD systems. Linux is a
13
+ * superset of the signal names supported on BSD, and
14
+ * the unknown signals just fail to register, so we can
15
+ * catch that easily enough.
16
+ *
17
+ * Windows signals are a different set, since there are
18
+ * signals that terminate Windows processes, but don't
19
+ * terminate (or don't even exist) on Posix systems.
20
+ *
21
+ * Don't bother with SIGKILL. It's uncatchable, which
22
+ * means that we can't fire any callbacks anyway.
23
+ *
24
+ * If a user does happen to register a handler on a non-
25
+ * fatal signal like SIGWINCH or something, and then
26
+ * exit, it'll end up firing `process.emit('exit')`, so
27
+ * the handler will be fired anyway.
28
+ *
29
+ * SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
30
+ * artificially, inherently leave the process in a
31
+ * state from which it is not safe to try and enter JS
32
+ * listeners.
33
+ */
34
+ const signals = [];
35
+ signals.push("SIGHUP", "SIGINT", "SIGTERM");
36
+ if (process.platform !== "win32") signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
37
+ if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
38
+
39
+ //#endregion
40
+ //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
41
+ const processOk = (process) => !!process && typeof process === "object" && typeof process.removeListener === "function" && typeof process.emit === "function" && typeof process.reallyExit === "function" && typeof process.listeners === "function" && typeof process.kill === "function" && typeof process.pid === "number" && typeof process.on === "function";
42
+ const kExitEmitter = Symbol.for("signal-exit emitter");
43
+ const global = globalThis;
44
+ const ObjectDefineProperty = Object.defineProperty.bind(Object);
45
+ var Emitter = class {
46
+ emitted = {
47
+ afterExit: false,
48
+ exit: false
49
+ };
50
+ listeners = {
51
+ afterExit: [],
52
+ exit: []
53
+ };
54
+ count = 0;
55
+ id = Math.random();
56
+ constructor() {
57
+ if (global[kExitEmitter]) return global[kExitEmitter];
58
+ ObjectDefineProperty(global, kExitEmitter, {
59
+ value: this,
60
+ writable: false,
61
+ enumerable: false,
62
+ configurable: false
63
+ });
64
+ }
65
+ on(ev, fn) {
66
+ this.listeners[ev].push(fn);
67
+ }
68
+ removeListener(ev, fn) {
69
+ const list = this.listeners[ev];
70
+ const i = list.indexOf(fn);
71
+ /* c8 ignore start */
72
+ if (i === -1) return;
73
+ /* c8 ignore stop */
74
+ if (i === 0 && list.length === 1) list.length = 0;
75
+ else list.splice(i, 1);
76
+ }
77
+ emit(ev, code, signal) {
78
+ if (this.emitted[ev]) return false;
79
+ this.emitted[ev] = true;
80
+ let ret = false;
81
+ for (const fn of this.listeners[ev]) ret = fn(code, signal) === true || ret;
82
+ if (ev === "exit") ret = this.emit("afterExit", code, signal) || ret;
83
+ return ret;
84
+ }
85
+ };
86
+ var SignalExitBase = class {};
87
+ const signalExitWrap = (handler) => {
88
+ return {
89
+ onExit(cb, opts) {
90
+ return handler.onExit(cb, opts);
91
+ },
92
+ load() {
93
+ return handler.load();
94
+ },
95
+ unload() {
96
+ return handler.unload();
97
+ }
98
+ };
99
+ };
100
+ var SignalExitFallback = class extends SignalExitBase {
101
+ onExit() {
102
+ return () => {};
103
+ }
104
+ load() {}
105
+ unload() {}
106
+ };
107
+ var SignalExit = class extends SignalExitBase {
108
+ /* c8 ignore start */
109
+ #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
110
+ /* c8 ignore stop */
111
+ #emitter = new Emitter();
112
+ #process;
113
+ #originalProcessEmit;
114
+ #originalProcessReallyExit;
115
+ #sigListeners = {};
116
+ #loaded = false;
117
+ constructor(process) {
118
+ super();
119
+ this.#process = process;
120
+ this.#sigListeners = {};
121
+ for (const sig of signals) this.#sigListeners[sig] = () => {
122
+ const listeners = this.#process.listeners(sig);
123
+ let { count } = this.#emitter;
124
+ /* c8 ignore start */
125
+ const p = process;
126
+ if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") count += p.__signal_exit_emitter__.count;
127
+ /* c8 ignore stop */
128
+ if (listeners.length === count) {
129
+ this.unload();
130
+ const ret = this.#emitter.emit("exit", null, sig);
131
+ /* c8 ignore start */
132
+ const s = sig === "SIGHUP" ? this.#hupSig : sig;
133
+ if (!ret) process.kill(process.pid, s);
134
+ }
135
+ };
136
+ this.#originalProcessReallyExit = process.reallyExit;
137
+ this.#originalProcessEmit = process.emit;
138
+ }
139
+ onExit(cb, opts) {
140
+ /* c8 ignore start */
141
+ if (!processOk(this.#process)) return () => {};
142
+ /* c8 ignore stop */
143
+ if (this.#loaded === false) this.load();
144
+ const ev = opts?.alwaysLast ? "afterExit" : "exit";
145
+ this.#emitter.on(ev, cb);
146
+ return () => {
147
+ this.#emitter.removeListener(ev, cb);
148
+ if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) this.unload();
149
+ };
150
+ }
151
+ load() {
152
+ if (this.#loaded) return;
153
+ this.#loaded = true;
154
+ this.#emitter.count += 1;
155
+ for (const sig of signals) try {
156
+ const fn = this.#sigListeners[sig];
157
+ if (fn) this.#process.on(sig, fn);
158
+ } catch (_) {}
159
+ this.#process.emit = (ev, ...a) => {
160
+ return this.#processEmit(ev, ...a);
161
+ };
162
+ this.#process.reallyExit = (code) => {
163
+ return this.#processReallyExit(code);
164
+ };
165
+ }
166
+ unload() {
167
+ if (!this.#loaded) return;
168
+ this.#loaded = false;
169
+ signals.forEach((sig) => {
170
+ const listener = this.#sigListeners[sig];
171
+ /* c8 ignore start */
172
+ if (!listener) throw new Error("Listener not defined for signal: " + sig);
173
+ /* c8 ignore stop */
174
+ try {
175
+ this.#process.removeListener(sig, listener);
176
+ } catch (_) {}
177
+ /* c8 ignore stop */
178
+ });
179
+ this.#process.emit = this.#originalProcessEmit;
180
+ this.#process.reallyExit = this.#originalProcessReallyExit;
181
+ this.#emitter.count -= 1;
182
+ }
183
+ #processReallyExit(code) {
184
+ /* c8 ignore start */
185
+ if (!processOk(this.#process)) return 0;
186
+ this.#process.exitCode = code || 0;
187
+ /* c8 ignore stop */
188
+ this.#emitter.emit("exit", this.#process.exitCode, null);
189
+ return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
190
+ }
191
+ #processEmit(ev, ...args) {
192
+ const og = this.#originalProcessEmit;
193
+ if (ev === "exit" && processOk(this.#process)) {
194
+ if (typeof args[0] === "number") this.#process.exitCode = args[0];
195
+ /* c8 ignore start */
196
+ const ret = og.call(this.#process, ev, ...args);
197
+ /* c8 ignore start */
198
+ this.#emitter.emit("exit", this.#process.exitCode, null);
199
+ /* c8 ignore stop */
200
+ return ret;
201
+ } else return og.call(this.#process, ev, ...args);
202
+ }
203
+ };
204
+ const process$1 = globalThis.process;
205
+ const { onExit: onExit$1, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
206
+
207
+ //#endregion
208
+ //#region src/utils/signal-exit.ts
209
+ function onExit(...args) {
210
+ if (typeof process === "object" && process.versions.webcontainer) {
211
+ process.on("exit", (code) => {
212
+ args[0](code, null);
213
+ });
214
+ return;
215
+ }
216
+ onExit$1(...args);
217
+ }
218
+
219
+ //#endregion
220
+ //#region src/api/watch/watch-emitter.ts
221
+ var WatcherEmitter = class {
222
+ listeners = /* @__PURE__ */ new Map();
223
+ timer;
224
+ constructor() {
225
+ this.timer = setInterval(() => {}, 1e9);
226
+ }
227
+ on(event, listener) {
228
+ const listeners = this.listeners.get(event);
229
+ if (listeners) listeners.push(listener);
230
+ else this.listeners.set(event, [listener]);
231
+ return this;
232
+ }
233
+ off(event, listener) {
234
+ const listeners = this.listeners.get(event);
235
+ if (listeners) {
236
+ const index = listeners.indexOf(listener);
237
+ if (index !== -1) listeners.splice(index, 1);
238
+ }
239
+ return this;
240
+ }
241
+ clear(event) {
242
+ if (this.listeners.has(event)) this.listeners.delete(event);
243
+ }
244
+ async onEvent(event) {
245
+ const listeners = this.listeners.get(event.eventKind());
246
+ if (listeners) switch (event.eventKind()) {
247
+ case "close":
248
+ case "restart":
249
+ for (const listener of listeners) await listener();
250
+ break;
251
+ case "event":
252
+ for (const listener of listeners) {
253
+ const code = event.bundleEventKind();
254
+ switch (code) {
255
+ case "BUNDLE_END":
256
+ const { duration, output, result } = event.bundleEndData();
257
+ await listener({
258
+ code: "BUNDLE_END",
259
+ duration,
260
+ output: [output],
261
+ result
262
+ });
263
+ break;
264
+ case "ERROR":
265
+ const data = event.bundleErrorData();
266
+ await listener({
267
+ code: "ERROR",
268
+ error: aggregateBindingErrorsIntoJsError(data.error),
269
+ result: data.result
270
+ });
271
+ break;
272
+ default:
273
+ await listener({ code });
274
+ break;
275
+ }
276
+ }
277
+ break;
278
+ case "change":
279
+ for (const listener of listeners) {
280
+ const { path, kind } = event.watchChangeData();
281
+ await listener(path, { event: kind });
282
+ }
283
+ break;
284
+ default: throw new Error(`Unknown event: ${event}`);
285
+ }
286
+ }
287
+ async close() {
288
+ clearInterval(this.timer);
289
+ }
290
+ };
291
+
292
+ //#endregion
293
+ //#region src/api/watch/watcher.ts
294
+ var Watcher = class {
295
+ closed;
296
+ inner;
297
+ emitter;
298
+ stopWorkers;
299
+ constructor(emitter, inner, stopWorkers) {
300
+ this.closed = false;
301
+ this.inner = inner;
302
+ this.emitter = emitter;
303
+ const originClose = emitter.close.bind(emitter);
304
+ emitter.close = async () => {
305
+ await this.close();
306
+ originClose();
307
+ };
308
+ this.stopWorkers = stopWorkers;
309
+ }
310
+ async close() {
311
+ if (this.closed) return;
312
+ this.closed = true;
313
+ for (const stop of this.stopWorkers) await stop?.();
314
+ await this.inner.close();
315
+ shutdownAsyncRuntime();
316
+ }
317
+ start() {
318
+ process.nextTick(() => this.inner.start(this.emitter.onEvent.bind(this.emitter)));
319
+ }
320
+ };
321
+ async function createWatcher(emitter, input) {
322
+ const options = arraify(input);
323
+ const bundlerOptions = await Promise.all(options.map((option) => arraify(option.output || {}).map(async (output) => {
324
+ return createBundlerOptions(await PluginDriver.callOptionsHook(option, true), output, true);
325
+ })).flat());
326
+ const notifyOptions = getValidNotifyOption(bundlerOptions);
327
+ new Watcher(emitter, new BindingWatcher(bundlerOptions.map((option) => option.bundlerOptions), notifyOptions), bundlerOptions.map((option) => option.stopWorkers)).start();
328
+ }
329
+ function getValidNotifyOption(bundlerOptions) {
330
+ let result;
331
+ for (const option of bundlerOptions) if (option.inputOptions.watch) {
332
+ const notifyOption = option.inputOptions.watch.notify;
333
+ if (notifyOption) if (result) {
334
+ option.onLog(LOG_LEVEL_WARN, logMultiplyNotifyOption());
335
+ return result;
336
+ } else result = notifyOption;
337
+ }
338
+ }
339
+
340
+ //#endregion
341
+ //#region src/api/watch/index.ts
342
+ /**
343
+ * The API compatible with Rollup's `watch` function.
344
+ *
345
+ * This function will rebuild the bundle when it detects that the individual modules have changed on disk.
346
+ *
347
+ * Note that when using this function, it is your responsibility to call `event.result.close()` in response to the `BUNDLE_END` event to avoid resource leaks.
348
+ *
349
+ * @param input The watch options object or the list of them.
350
+ * @returns A watcher object.
351
+ *
352
+ * @example
353
+ * ```js
354
+ * import { watch } from 'rolldown';
355
+ *
356
+ * const watcher = watch({ /* ... *\/ });
357
+ * watcher.on('event', (event) => {
358
+ * if (event.code === 'BUNDLE_END') {
359
+ * console.log(event.duration);
360
+ * event.result.close();
361
+ * }
362
+ * });
363
+ *
364
+ * // Stop watching
365
+ * watcher.close();
366
+ * ```
367
+ *
368
+ * @experimental
369
+ * @category Programmatic APIs
370
+ */
371
+ function watch(input) {
372
+ const emitter = new WatcherEmitter();
373
+ createWatcher(emitter, input);
374
+ return emitter;
375
+ }
376
+
377
+ //#endregion
378
+ export { onExit as n, watch as t };
package/package.json CHANGED
@@ -1,71 +1,66 @@
1
1
  {
2
2
  "name": "@rolldown/browser",
3
- "version": "1.0.0-beta.9-commit.0ec9e7d",
3
+ "version": "1.0.0-rc.2",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
+ "keywords": [
6
+ "bundler",
7
+ "esbuild",
8
+ "parcel",
9
+ "rolldown",
10
+ "rollup",
11
+ "webpack"
12
+ ],
5
13
  "homepage": "https://rolldown.rs/",
6
- "type": "module",
14
+ "license": "MIT",
7
15
  "repository": {
8
16
  "type": "git",
9
17
  "url": "git+https://github.com/rolldown/rolldown.git",
10
18
  "directory": "packages/browser"
11
19
  },
12
- "license": "MIT",
13
- "keywords": [
14
- "webpack",
15
- "parcel",
16
- "esbuild",
17
- "rollup",
18
- "bundler",
19
- "rolldown"
20
- ],
20
+ "bin": {
21
+ "rolldown": "./bin/cli.mjs"
22
+ },
21
23
  "files": [
22
24
  "bin",
23
25
  "dist",
24
26
  "!*/.tsbuildinfo"
25
27
  ],
26
- "bin": {
27
- "rolldown": "./bin/cli.mjs"
28
- },
29
- "main": "./dist/index.cjs",
28
+ "type": "module",
29
+ "main": "./dist/index.mjs",
30
30
  "module": "./dist/index.mjs",
31
- "types": "./dist/index.d.cts",
31
+ "types": "./dist/index.d.mts",
32
32
  "exports": {
33
33
  ".": {
34
34
  "browser": "./dist/index.browser.mjs",
35
- "require": "./dist/index.cjs",
36
- "import": "./dist/index.mjs"
35
+ "default": "./dist/index.mjs"
37
36
  },
37
+ "./config": "./dist/config.mjs",
38
38
  "./experimental": {
39
39
  "browser": "./dist/experimental-index.browser.mjs",
40
- "require": "./dist/experimental-index.cjs",
41
- "import": "./dist/experimental-index.mjs"
42
- },
43
- "./parallel-plugin": {
44
- "require": "./dist/parallel-plugin.cjs",
45
- "import": "./dist/parallel-plugin.mjs"
40
+ "default": "./dist/experimental-index.mjs"
46
41
  },
47
- "./parseAst": {
48
- "require": "./dist/parse-ast-index.cjs",
49
- "import": "./dist/parse-ast-index.mjs"
42
+ "./plugins": {
43
+ "browser": "./dist/plugins-index.browser.mjs",
44
+ "default": "./dist/plugins-index.mjs"
50
45
  },
46
+ "./filter": "./dist/filter-index.mjs",
47
+ "./parallelPlugin": "./dist/parallel-plugin.mjs",
48
+ "./parseAst": "./dist/parse-ast-index.mjs",
51
49
  "./package.json": "./package.json"
52
50
  },
53
51
  "publishConfig": {
54
- "registry": "https://registry.npmjs.org/",
55
- "access": "public"
52
+ "access": "public",
53
+ "registry": "https://registry.npmjs.org/"
56
54
  },
57
55
  "dependencies": {
58
- "@napi-rs/wasm-runtime": "^0.2.8",
59
- "@oxc-project/runtime": "0.72.0",
60
- "@oxc-project/types": "0.72.0",
61
- "ansis": "^4.0.0",
62
- "pathe": "^2.0.3"
56
+ "@napi-rs/wasm-runtime": "^1.0.0"
63
57
  },
64
58
  "scripts": {
65
59
  "build": "pnpm run build:debug",
66
- "build:debug": "pnpm run --filter rolldown build-browser:debug",
67
- "build:release": "pnpm run --filter rolldown build-browser:release",
68
- "build-node": "BROWSER_PKG=1 pnpm run --filter rolldown build-node",
69
- "preinstall": "npx only-allow pnpm"
60
+ "build:debug": "pnpm run --filter rolldown build-browser-pkg:debug",
61
+ "build:release": "pnpm run --filter rolldown build-browser-pkg:release",
62
+ "build-node": "TARGET='browser' pnpm run --filter rolldown build-node",
63
+ "preinstall": "npx only-allow pnpm",
64
+ "publint": "publint ."
70
65
  }
71
66
  }