rolldown 1.0.0-beta.57 → 1.0.0-beta.58
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/dist/cli-setup.mjs +1 -1
- package/dist/cli.mjs +9 -9
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +7 -7
- package/dist/experimental-index.d.mts +3 -3
- package/dist/experimental-index.mjs +22 -23
- package/dist/filter-index.d.mts +2 -2
- package/dist/get-log-filter.d.mts +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +7 -7
- package/dist/parallel-plugin-worker.mjs +4 -4
- package/dist/parallel-plugin.d.mts +2 -2
- 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 +3 -3
- package/dist/shared/{binding-Cuiiq-jL.mjs → binding-B_TbiTj8.mjs} +29 -28
- package/dist/shared/{binding-CDyF6W3D.d.mts → binding-MAEzB4KA.d.mts} +10 -0
- package/dist/shared/{bindingify-input-options-B8B4dvr-.mjs → bindingify-input-options-DA2ZhV0B.mjs} +8 -4
- package/dist/shared/{constructors-CxTKGwaB.mjs → constructors-BpxCdJYi.mjs} +1 -1
- package/dist/shared/{constructors-BnPlw43Q.d.mts → constructors-i-dnHlhG.d.mts} +2 -2
- package/dist/shared/{define-config-kYHtCO-M.d.mts → define-config-twT5HTur.d.mts} +470 -129
- package/dist/shared/{load-config-BvbZUaFt.mjs → load-config-ORm33WR7.mjs} +1 -1
- package/dist/shared/{logging-BpAvp7KV.d.mts → logging-B4x9qar8.d.mts} +1 -0
- package/dist/shared/{normalize-string-or-regex-0t36Z7KW.mjs → normalize-string-or-regex-DD62Rjxi.mjs} +4 -3
- package/dist/shared/{parse-ast-index-Bcjhsr8U.mjs → parse-ast-index-CgUIFKC1.mjs} +2 -2
- package/dist/shared/{rolldown-CF29fS6Z.mjs → rolldown-B-IUR2m3.mjs} +2 -1
- package/dist/shared/{rolldown-build--qygLwCL.mjs → rolldown-build-DADnIB07.mjs} +7 -4
- package/dist/shared/{watch-CyvuFK7g.mjs → watch-BxrDbQPl.mjs} +5 -4
- package/package.json +58 -58
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-B_TbiTj8.mjs";
|
|
2
2
|
import { a as logInvalidLogPosition, c as logPluginError, n as error } from "./logs-Up1RAnkl.mjs";
|
|
3
3
|
import { r as noop } from "./misc-DpjTMcQQ.mjs";
|
|
4
4
|
|
|
@@ -32,11 +32,12 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region package.json
|
|
35
|
-
var version = "1.0.0-beta.
|
|
35
|
+
var version = "1.0.0-beta.58";
|
|
36
36
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/version.ts
|
|
40
|
+
/** @category Plugin APIs */
|
|
40
41
|
const VERSION = version;
|
|
41
42
|
|
|
42
43
|
//#endregion
|
|
@@ -190,7 +191,7 @@ function bindingAssetSource(source) {
|
|
|
190
191
|
}
|
|
191
192
|
|
|
192
193
|
//#endregion
|
|
193
|
-
//#region \0@oxc-project+runtime@0.
|
|
194
|
+
//#region \0@oxc-project+runtime@0.106.0/helpers/decorate.js
|
|
194
195
|
function __decorate(decorators, target, key, desc) {
|
|
195
196
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
196
197
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-B_TbiTj8.mjs";
|
|
2
2
|
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./logs-Up1RAnkl.mjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.106.0/node_modules/oxc-parser/src-js/wrap.js
|
|
5
5
|
function wrap$1(result) {
|
|
6
6
|
let program, module, comments, errors;
|
|
7
7
|
return {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build
|
|
1
|
+
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-DADnIB07.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/api/rolldown/index.ts
|
|
4
|
+
/** @category Programmatic APIs */
|
|
4
5
|
const rolldown = async (input) => {
|
|
5
6
|
validateOption("input", input);
|
|
6
7
|
return new RolldownBuild(await PluginDriver.callOptionsHook(input));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-B_TbiTj8.mjs";
|
|
2
2
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-Up1RAnkl.mjs";
|
|
3
3
|
import { i as unimplemented } from "./misc-DpjTMcQQ.mjs";
|
|
4
|
-
import { C as LOG_LEVEL_DEBUG, D as logLevelPriority, E as LOG_LEVEL_WARN, S as normalizeLog, T as LOG_LEVEL_INFO, _ as PlainObjectLike, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, n as BuiltinPlugin, p as __decorate, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_ERROR, y as VERSION } from "./normalize-string-or-regex-
|
|
5
|
-
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-
|
|
4
|
+
import { C as LOG_LEVEL_DEBUG, D as logLevelPriority, E as LOG_LEVEL_WARN, S as normalizeLog, T as LOG_LEVEL_INFO, _ as PlainObjectLike, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, n as BuiltinPlugin, p as __decorate, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_ERROR, y as VERSION } from "./normalize-string-or-regex-DD62Rjxi.mjs";
|
|
5
|
+
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-DA2ZhV0B.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { styleText } from "node:util";
|
|
@@ -1746,7 +1746,7 @@ const InputOptionsSchema = strictObject({
|
|
|
1746
1746
|
transform: optional(TransformOptionsSchema),
|
|
1747
1747
|
watch: optional(union([WatchOptionsSchema, literal(false)])),
|
|
1748
1748
|
checks: optional(ChecksOptionsSchema),
|
|
1749
|
-
|
|
1749
|
+
devtools: pipe(optional(object({ sessionId: pipe(optional(string()), description("Used to name the build.")) })), description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly.")),
|
|
1750
1750
|
preserveEntrySignatures: pipe(optional(union([
|
|
1751
1751
|
literal("strict"),
|
|
1752
1752
|
literal("allow-extension"),
|
|
@@ -1876,6 +1876,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
1876
1876
|
generatedCode: pipe(optional(partial(GeneratedCodeOptionsSchema)), description("Generated code options")),
|
|
1877
1877
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
1878
1878
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
1879
|
+
dynamicImportInCjs: pipe(optional(boolean()), description("Dynamic import in CJS output")),
|
|
1879
1880
|
manualChunks: optional(ManualChunksFunctionSchema),
|
|
1880
1881
|
advancedChunks: optional(AdvancedChunksSchema),
|
|
1881
1882
|
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
@@ -2056,6 +2057,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2056
2057
|
minify: outputOptions.minify,
|
|
2057
2058
|
externalLiveBindings: outputOptions.externalLiveBindings,
|
|
2058
2059
|
inlineDynamicImports: outputOptions.inlineDynamicImports,
|
|
2060
|
+
dynamicImportInCjs: outputOptions.dynamicImportInCjs,
|
|
2059
2061
|
advancedChunks,
|
|
2060
2062
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
2061
2063
|
sanitizeFileName,
|
|
@@ -2222,6 +2224,7 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode) {
|
|
|
2222
2224
|
//#endregion
|
|
2223
2225
|
//#region src/api/rolldown/rolldown-build.ts
|
|
2224
2226
|
Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
|
|
2227
|
+
/** @category Programmatic APIs */
|
|
2225
2228
|
var RolldownBuild = class RolldownBuild {
|
|
2226
2229
|
#inputOptions;
|
|
2227
2230
|
#bundler;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-B_TbiTj8.mjs";
|
|
2
2
|
import { o as logMultiplyNotifyOption } from "./logs-Up1RAnkl.mjs";
|
|
3
3
|
import { t as arraify } from "./misc-DpjTMcQQ.mjs";
|
|
4
|
-
import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-
|
|
5
|
-
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build
|
|
6
|
-
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-
|
|
4
|
+
import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-DD62Rjxi.mjs";
|
|
5
|
+
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-DADnIB07.mjs";
|
|
6
|
+
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-DA2ZhV0B.mjs";
|
|
7
7
|
|
|
8
8
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
9
9
|
/**
|
|
@@ -341,6 +341,7 @@ function getValidNotifyOption(bundlerOptions) {
|
|
|
341
341
|
|
|
342
342
|
//#endregion
|
|
343
343
|
//#region src/api/watch/index.ts
|
|
344
|
+
/** @category Programmatic APIs */
|
|
344
345
|
const watch = (input) => {
|
|
345
346
|
const emitter = new WatcherEmitter();
|
|
346
347
|
createWatcher(emitter, input);
|
package/package.json
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.58",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
|
-
"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"bundler",
|
|
7
|
+
"esbuild",
|
|
8
|
+
"parcel",
|
|
9
|
+
"rolldown",
|
|
10
|
+
"rollup",
|
|
11
|
+
"webpack"
|
|
12
|
+
],
|
|
6
13
|
"homepage": "https://rolldown.rs/",
|
|
14
|
+
"license": "MIT",
|
|
7
15
|
"repository": {
|
|
8
16
|
"type": "git",
|
|
9
17
|
"url": "git+https://github.com/rolldown/rolldown.git",
|
|
10
18
|
"directory": "packages/rolldown"
|
|
11
19
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
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
|
"cli",
|
|
24
26
|
"dist",
|
|
25
27
|
"!dist/*.node"
|
|
26
28
|
],
|
|
27
|
-
"
|
|
28
|
-
"rolldown": "./bin/cli.mjs"
|
|
29
|
-
},
|
|
29
|
+
"type": "module",
|
|
30
30
|
"main": "./dist/index.mjs",
|
|
31
31
|
"module": "./dist/index.mjs",
|
|
32
32
|
"types": "./dist/index.d.mts",
|
|
33
|
+
"imports": {
|
|
34
|
+
"#parallel-plugin-worker": "./dist/parallel-plugin-worker.mjs"
|
|
35
|
+
},
|
|
33
36
|
"exports": {
|
|
34
37
|
".": "./dist/index.mjs",
|
|
35
38
|
"./config": "./dist/config.mjs",
|
|
@@ -44,15 +47,37 @@
|
|
|
44
47
|
"./package.json": "./package.json",
|
|
45
48
|
"./plugins": "./dist/plugins-index.mjs"
|
|
46
49
|
},
|
|
47
|
-
"imports": {
|
|
48
|
-
"#parallel-plugin-worker": "./dist/parallel-plugin-worker.mjs"
|
|
49
|
-
},
|
|
50
50
|
"publishConfig": {
|
|
51
|
-
"
|
|
52
|
-
"
|
|
51
|
+
"access": "public",
|
|
52
|
+
"registry": "https://registry.npmjs.org/"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@oxc-project/types": "=0.106.0",
|
|
56
|
+
"@rolldown/pluginutils": "1.0.0-beta.58"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@napi-rs/cli": "^3.4.1",
|
|
60
|
+
"@napi-rs/wasm-runtime": "^1.0.0",
|
|
61
|
+
"@oxc-node/cli": "^0.0.35",
|
|
62
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
63
|
+
"buble": "^0.20.0",
|
|
64
|
+
"consola": "^3.4.2",
|
|
65
|
+
"execa": "^9.2.0",
|
|
66
|
+
"glob": "^13.0.0",
|
|
67
|
+
"oxc-parser": "=0.106.0",
|
|
68
|
+
"pathe": "^2.0.3",
|
|
69
|
+
"remeda": "^2.10.0",
|
|
70
|
+
"rolldown-plugin-dts": "^0.20.0",
|
|
71
|
+
"rollup": "^4.18.0",
|
|
72
|
+
"signal-exit": "4.1.0",
|
|
73
|
+
"source-map": "^0.7.6",
|
|
74
|
+
"typescript": "^5.8.3",
|
|
75
|
+
"valibot": "1.2.0",
|
|
76
|
+
"rolldown": "1.0.0-beta.58"
|
|
53
77
|
},
|
|
54
78
|
"napi": {
|
|
55
79
|
"binaryName": "rolldown-binding",
|
|
80
|
+
"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",
|
|
56
81
|
"packageName": "@rolldown/binding",
|
|
57
82
|
"targets": [
|
|
58
83
|
"x86_64-apple-darwin",
|
|
@@ -75,50 +100,25 @@
|
|
|
75
100
|
"fs": true,
|
|
76
101
|
"asyncInit": true
|
|
77
102
|
}
|
|
78
|
-
}
|
|
79
|
-
"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
|
-
},
|
|
81
|
-
"dependencies": {
|
|
82
|
-
"@oxc-project/types": "=0.103.0",
|
|
83
|
-
"@rolldown/pluginutils": "1.0.0-beta.57"
|
|
84
|
-
},
|
|
85
|
-
"devDependencies": {
|
|
86
|
-
"@napi-rs/cli": "^3.4.1",
|
|
87
|
-
"@napi-rs/wasm-runtime": "^1.0.0",
|
|
88
|
-
"@oxc-node/cli": "^0.0.35",
|
|
89
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
90
|
-
"buble": "^0.20.0",
|
|
91
|
-
"consola": "^3.4.2",
|
|
92
|
-
"execa": "^9.2.0",
|
|
93
|
-
"glob": "^13.0.0",
|
|
94
|
-
"oxc-parser": "=0.103.0",
|
|
95
|
-
"pathe": "^2.0.3",
|
|
96
|
-
"remeda": "^2.10.0",
|
|
97
|
-
"rolldown-plugin-dts": "^0.19.0",
|
|
98
|
-
"rollup": "^4.18.0",
|
|
99
|
-
"signal-exit": "4.1.0",
|
|
100
|
-
"source-map": "^0.7.6",
|
|
101
|
-
"typescript": "^5.8.3",
|
|
102
|
-
"valibot": "1.2.0",
|
|
103
|
-
"rolldown": "1.0.0-beta.57"
|
|
103
|
+
}
|
|
104
104
|
},
|
|
105
105
|
"engines": {
|
|
106
106
|
"node": "^20.19.0 || >=22.12.0"
|
|
107
107
|
},
|
|
108
108
|
"optionalDependencies": {
|
|
109
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.
|
|
110
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.
|
|
111
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.
|
|
112
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.
|
|
113
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.
|
|
114
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.
|
|
115
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.
|
|
116
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.
|
|
117
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.
|
|
118
|
-
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.
|
|
119
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.
|
|
120
|
-
"@rolldown/binding-android-arm64": "1.0.0-beta.
|
|
121
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.
|
|
109
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.58",
|
|
110
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.58",
|
|
111
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.58",
|
|
112
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.58",
|
|
113
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.58",
|
|
114
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.58",
|
|
115
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.58",
|
|
116
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.58",
|
|
117
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.58",
|
|
118
|
+
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.58",
|
|
119
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.58",
|
|
120
|
+
"@rolldown/binding-android-arm64": "1.0.0-beta.58",
|
|
121
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.58"
|
|
122
122
|
},
|
|
123
123
|
"scripts": {
|
|
124
124
|
"# Scrips for binding #": "_",
|