rolldown 1.0.0-beta.52 → 1.0.0-beta.54

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 (30) hide show
  1. package/dist/cli-setup.mjs +1 -1
  2. package/dist/cli.mjs +11 -12
  3. package/dist/config.d.mts +2 -3
  4. package/dist/config.mjs +7 -9
  5. package/dist/experimental-index.d.mts +23 -12
  6. package/dist/experimental-index.mjs +28 -17
  7. package/dist/filter-index.d.mts +2 -3
  8. package/dist/index.d.mts +3 -4
  9. package/dist/index.mjs +7 -9
  10. package/dist/parallel-plugin-worker.mjs +4 -6
  11. package/dist/parallel-plugin.d.mts +2 -3
  12. package/dist/parse-ast-index.d.mts +1 -1
  13. package/dist/parse-ast-index.mjs +2 -3
  14. package/dist/plugins-index.d.mts +3 -3
  15. package/dist/plugins-index.mjs +3 -5
  16. package/dist/shared/{binding-kg77KQCQ.mjs → binding-BgawCXFG.mjs} +26 -26
  17. package/dist/shared/{binding-BKL2JHoJ.d.mts → binding-yIBVkeOE.d.mts} +107 -21
  18. package/dist/shared/{bindingify-input-options-6nBAYjYP.mjs → bindingify-input-options-DvsExmEF.mjs} +22 -9
  19. package/dist/shared/constructors-BgO0Ou3T.d.mts +30 -0
  20. package/dist/shared/{constructors-CwAnOHmv.mjs → constructors-DqAPGbqJ.mjs} +9 -10
  21. package/dist/shared/{define-config-9CiSl0uo.d.mts → define-config-COJu-A7R.d.mts} +78 -5
  22. package/dist/shared/{load-config-DS8fzWF9.mjs → load-config--qXpT-nH.mjs} +1 -1
  23. package/dist/shared/{normalize-string-or-regex-VlPkMWXA.mjs → normalize-string-or-regex-CF1OWLn9.mjs} +44 -5
  24. package/dist/shared/{parse-ast-index-C44ewaWh.mjs → parse-ast-index-DeJDe-DO.mjs} +2 -2
  25. package/dist/shared/{rolldown-CpwN72kC.mjs → rolldown-BsTgRBvz.mjs} +1 -1
  26. package/dist/shared/{rolldown-build-D2CkFbcq.mjs → rolldown-build-DtYoS8Tq.mjs} +337 -190
  27. package/dist/shared/{watch-BWN40jw1.mjs → watch-CfGzq0YA.mjs} +17 -5
  28. package/package.json +20 -22
  29. package/dist/shared/constructors-BvaMwihu.d.mts +0 -32
  30. package/dist/shared/utils-DKydZ4iH.d.mts +0 -62
@@ -1,9 +1,9 @@
1
- import { t as require_binding } from "./binding-kg77KQCQ.mjs";
1
+ import { t as require_binding } from "./binding-BgawCXFG.mjs";
2
2
  import { o as logMultiplyNotifyOption } from "./logs-CSQ_UMWp.mjs";
3
3
  import { t as arraify } from "./misc-CxyvWjTr.mjs";
4
- import { w as LOG_LEVEL_WARN } from "./normalize-string-or-regex-VlPkMWXA.mjs";
5
- import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-D2CkFbcq.mjs";
6
- import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-6nBAYjYP.mjs";
4
+ import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-CF1OWLn9.mjs";
5
+ import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-DtYoS8Tq.mjs";
6
+ import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-DvsExmEF.mjs";
7
7
 
8
8
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
9
9
  /**
@@ -205,6 +205,18 @@ var SignalExit = class extends SignalExitBase {
205
205
  const process$1 = globalThis.process;
206
206
  const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
207
207
 
208
+ //#endregion
209
+ //#region src/utils/signal-exit.ts
210
+ function onExit$1(...args) {
211
+ if (typeof process === "object" && process.versions.webcontainer) {
212
+ process.on("exit", (code) => {
213
+ args[0](code, null);
214
+ });
215
+ return;
216
+ }
217
+ onExit(...args);
218
+ }
219
+
208
220
  //#endregion
209
221
  //#region src/api/watch/watch-emitter.ts
210
222
  var WatcherEmitter = class {
@@ -336,4 +348,4 @@ const watch = (input) => {
336
348
  };
337
349
 
338
350
  //#endregion
339
- export { onExit as n, watch as t };
351
+ export { onExit$1 as n, watch as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.0-beta.52",
3
+ "version": "1.0.0-beta.54",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "type": "module",
6
6
  "homepage": "https://rolldown.rs/",
@@ -59,7 +59,6 @@
59
59
  "x86_64-unknown-linux-gnu",
60
60
  "x86_64-unknown-linux-musl",
61
61
  "x86_64-unknown-freebsd",
62
- "i686-pc-windows-msvc",
63
62
  "armv7-unknown-linux-gnueabihf",
64
63
  "aarch64-unknown-linux-gnu",
65
64
  "aarch64-apple-darwin",
@@ -79,19 +78,19 @@
79
78
  "dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\ntype BindingResult<T> = { errors: BindingError[], isBindingErrors: boolean } | T\n\n"
80
79
  },
81
80
  "dependencies": {
82
- "@oxc-project/types": "=0.99.0",
83
- "@rolldown/pluginutils": "1.0.0-beta.52"
81
+ "@oxc-project/types": "=0.102.0",
82
+ "@rolldown/pluginutils": "1.0.0-beta.54"
84
83
  },
85
84
  "devDependencies": {
86
85
  "@napi-rs/cli": "^3.4.1",
87
86
  "@napi-rs/wasm-runtime": "^1.0.0",
88
- "@oxc-node/cli": "^0.0.34",
87
+ "@oxc-node/cli": "^0.0.35",
89
88
  "@rollup/plugin-json": "^6.1.0",
90
89
  "buble": "^0.20.0",
91
90
  "consola": "^3.4.2",
92
91
  "execa": "^9.2.0",
93
92
  "glob": "^13.0.0",
94
- "oxc-parser": "=0.99.0",
93
+ "oxc-parser": "=0.102.0",
95
94
  "pathe": "^2.0.3",
96
95
  "remeda": "^2.10.0",
97
96
  "rolldown-plugin-dts": "^0.18.0",
@@ -99,27 +98,26 @@
99
98
  "signal-exit": "4.1.0",
100
99
  "source-map": "^0.7.4",
101
100
  "typescript": "^5.8.3",
102
- "valibot": "1.1.0",
103
- "rolldown": "1.0.0-beta.52"
101
+ "valibot": "1.2.0",
102
+ "rolldown": "1.0.0-beta.54"
104
103
  },
105
104
  "engines": {
106
105
  "node": "^20.19.0 || >=22.12.0"
107
106
  },
108
107
  "optionalDependencies": {
109
- "@rolldown/binding-darwin-x64": "1.0.0-beta.52",
110
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.52",
111
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.52",
112
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.52",
113
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.52",
114
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.52",
115
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.52",
116
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.52",
117
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.52",
118
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.52",
119
- "@rolldown/binding-openharmony-arm64": "1.0.0-beta.52",
120
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.52",
121
- "@rolldown/binding-android-arm64": "1.0.0-beta.52",
122
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.52"
108
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.54",
109
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.54",
110
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.54",
111
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.54",
112
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.54",
113
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.54",
114
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.54",
115
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.54",
116
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.54",
117
+ "@rolldown/binding-openharmony-arm64": "1.0.0-beta.54",
118
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.54",
119
+ "@rolldown/binding-android-arm64": "1.0.0-beta.54",
120
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.54"
123
121
  },
124
122
  "scripts": {
125
123
  "# Scrips for binding #": "_",
@@ -1,32 +0,0 @@
1
- import { t as BuiltinPlugin, u as StringOrRegExp } from "./utils-DKydZ4iH.mjs";
2
- import { C as BindingViteManifestPluginConfig, D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, _ as BindingViteCssPostPluginConfig, h as BindingViteBuildImportAnalysisPluginConfig, i as BindingEsmExternalRequirePluginConfig, k as BindingViteWasmHelperPluginConfig, o as BindingIsolatedDeclarationPluginConfig, p as BindingViteAssetImportMetaUrlPluginConfig, v as BindingViteDynamicImportVarsPluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteHtmlInlineProxyPluginConfig } from "./binding-BKL2JHoJ.mjs";
3
-
4
- //#region src/builtin-plugin/constructors.d.ts
5
- declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
6
- type DynamicImportVarsPluginConfig = Omit<BindingViteDynamicImportVarsPluginConfig, "include" | "exclude"> & {
7
- include?: StringOrRegExp | StringOrRegExp[];
8
- exclude?: StringOrRegExp | StringOrRegExp[];
9
- };
10
- declare function viteDynamicImportVarsPlugin(config?: DynamicImportVarsPluginConfig): BuiltinPlugin;
11
- declare function viteImportGlobPlugin(config?: BindingViteImportGlobPluginConfig): BuiltinPlugin;
12
- declare function viteReporterPlugin(config?: BindingViteReporterPluginConfig): BuiltinPlugin;
13
- declare function viteManifestPlugin(config?: BindingViteManifestPluginConfig): BuiltinPlugin;
14
- declare function viteWasmHelperPlugin(config?: BindingViteWasmHelperPluginConfig): BuiltinPlugin;
15
- declare function viteWasmFallbackPlugin(): BuiltinPlugin;
16
- declare function viteLoadFallbackPlugin(): BuiltinPlugin;
17
- declare function viteJsonPlugin(config?: BindingViteJsonPluginConfig): BuiltinPlugin;
18
- declare function viteBuildImportAnalysisPlugin(config: BindingViteBuildImportAnalysisPluginConfig): BuiltinPlugin;
19
- declare function viteResolvePlugin(config: BindingViteResolvePluginConfig): BuiltinPlugin;
20
- declare function isolatedDeclarationPlugin(config?: BindingIsolatedDeclarationPluginConfig): BuiltinPlugin;
21
- declare function viteWebWorkerPostPlugin(): BuiltinPlugin;
22
- declare function esmExternalRequirePlugin(config?: BindingEsmExternalRequirePluginConfig): BuiltinPlugin;
23
- type ViteReactRefreshWrapperPluginConfig = Omit<BindingViteReactRefreshWrapperPluginConfig, "include" | "exclude"> & {
24
- include?: StringOrRegExp | StringOrRegExp[];
25
- exclude?: StringOrRegExp | StringOrRegExp[];
26
- };
27
- declare function viteReactRefreshWrapperPlugin(config: ViteReactRefreshWrapperPluginConfig): BuiltinPlugin;
28
- declare function viteCSSPostPlugin(config?: BindingViteCssPostPluginConfig): BuiltinPlugin;
29
- declare function viteHtmlInlineProxyPlugin(config: BindingViteHtmlInlineProxyPluginConfig): BuiltinPlugin;
30
- declare function viteAssetImportMetaUrlPlugin(config: BindingViteAssetImportMetaUrlPluginConfig): BuiltinPlugin;
31
- //#endregion
32
- export { viteWasmHelperPlugin as _, viteCSSPostPlugin as a, viteImportGlobPlugin as c, viteManifestPlugin as d, viteModulePreloadPolyfillPlugin as f, viteWasmFallbackPlugin as g, viteResolvePlugin as h, viteBuildImportAnalysisPlugin as i, viteJsonPlugin as l, viteReporterPlugin as m, isolatedDeclarationPlugin as n, viteDynamicImportVarsPlugin as o, viteReactRefreshWrapperPlugin as p, viteAssetImportMetaUrlPlugin as r, viteHtmlInlineProxyPlugin as s, esmExternalRequirePlugin as t, viteLoadFallbackPlugin as u, viteWebWorkerPostPlugin as v };
@@ -1,62 +0,0 @@
1
- import { t as BindingBuiltinPluginName } from "./binding-BKL2JHoJ.mjs";
2
-
3
- //#region src/log/logging.d.ts
4
- type LogLevel = "info" | "debug" | "warn";
5
- type LogLevelOption = LogLevel | "silent";
6
- type LogLevelWithError = LogLevel | "error";
7
- interface RollupLog {
8
- binding?: string;
9
- cause?: unknown;
10
- code?: string;
11
- exporter?: string;
12
- frame?: string;
13
- hook?: string;
14
- id?: string;
15
- ids?: string[];
16
- loc?: {
17
- column: number;
18
- file?: string;
19
- line: number;
20
- };
21
- message: string;
22
- meta?: any;
23
- names?: string[];
24
- plugin?: string;
25
- pluginCode?: unknown;
26
- pos?: number;
27
- reexporter?: string;
28
- stack?: string;
29
- url?: string;
30
- }
31
- type RollupLogWithString = RollupLog | string;
32
- interface RollupError extends RollupLog {
33
- name?: string;
34
- stack?: string;
35
- watchFiles?: string[];
36
- }
37
- type LogOrStringHandler = (level: LogLevelWithError, log: RollupLogWithString) => void;
38
- //#endregion
39
- //#region src/types/utils.d.ts
40
- type MaybePromise<T> = T | Promise<T>;
41
- type NullValue<T = void> = T | undefined | null | void;
42
- type PartialNull<T> = { [P in keyof T]: T[P] | null };
43
- type MakeAsync<Function_> = Function_ extends ((this: infer This, ...parameters: infer Arguments) => infer Return) ? (this: This, ...parameters: Arguments) => Return | Promise<Return> : never;
44
- type MaybeArray<T> = T | T[];
45
- type StringOrRegExp = string | RegExp;
46
- //#endregion
47
- //#region src/log/log-handler.d.ts
48
- type LoggingFunction = (log: RollupLog | string | (() => RollupLog | string)) => void;
49
- type LoggingFunctionWithPosition = (log: RollupLog | string | (() => RollupLog | string), pos?: number | {
50
- column: number;
51
- line: number;
52
- }) => void;
53
- type WarningHandlerWithDefault = (warning: RollupLog, defaultHandler: LoggingFunction) => void;
54
- //#endregion
55
- //#region src/builtin-plugin/utils.d.ts
56
- declare class BuiltinPlugin {
57
- name: BindingBuiltinPluginName;
58
- _options?: unknown;
59
- constructor(name: BindingBuiltinPluginName, _options?: unknown);
60
- }
61
- //#endregion
62
- export { MakeAsync as a, NullValue as c, LogLevel as d, LogLevelOption as f, RollupLogWithString as g, RollupLog as h, WarningHandlerWithDefault as i, PartialNull as l, RollupError as m, LoggingFunction as n, MaybeArray as o, LogOrStringHandler as p, LoggingFunctionWithPosition as r, MaybePromise as s, BuiltinPlugin as t, StringOrRegExp as u };