rolldown 1.0.0-beta.3-commit.b814905 → 1.0.0-beta.3-commit.124516c
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/cjs/cli.cjs +2 -2
- package/dist/cjs/experimental-index.cjs +2 -2
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/parallel-plugin-worker.cjs +2 -2
- package/dist/cjs/parse-ast-index.cjs +1 -1
- package/dist/esm/cli.mjs +2 -2
- package/dist/esm/experimental-index.mjs +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/parallel-plugin-worker.mjs +2 -2
- package/dist/esm/parse-ast-index.mjs +1 -1
- package/dist/shared/{parse-ast-index-CYgta8XV.cjs → parse-ast-index-BGtslpMc.cjs} +6 -1
- package/dist/shared/{parse-ast-index-xu1sp-Oh.mjs → parse-ast-index-CcVk5ch3.mjs} +6 -1
- package/dist/shared/{src-DvFoEK0x.mjs → src-BgMfqT7u.mjs} +5 -5
- package/dist/shared/{src-CMgSOUyx.cjs → src-C4rSqCpe.cjs} +5 -5
- package/dist/types/binding.d.ts +11 -0
- package/package.json +17 -17
package/dist/cjs/cli.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
4
|
-
const require_parse_ast_index = require('../shared/parse-ast-index-
|
|
3
|
+
const require_src = require('../shared/src-C4rSqCpe.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-BGtslpMc.cjs');
|
|
5
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
4
|
-
const require_parse_ast_index = require('../shared/parse-ast-index-
|
|
3
|
+
const require_src = require('../shared/src-C4rSqCpe.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-BGtslpMc.cjs');
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
6
6
|
|
|
7
7
|
//#region src/plugin/parallel-plugin.ts
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_src = require('../shared/src-
|
|
2
|
-
require('../shared/parse-ast-index-
|
|
1
|
+
const require_src = require('../shared/src-C4rSqCpe.cjs');
|
|
2
|
+
require('../shared/parse-ast-index-BGtslpMc.cjs');
|
|
3
3
|
|
|
4
4
|
exports.VERSION = require_src.VERSION
|
|
5
5
|
exports.build = require_src.build
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
4
|
-
const require_parse_ast_index = require('../shared/parse-ast-index-
|
|
3
|
+
const require_src = require('../shared/src-C4rSqCpe.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-BGtslpMc.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_parse_ast_index = require('../shared/parse-ast-index-
|
|
1
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-BGtslpMc.cjs');
|
|
2
2
|
|
|
3
3
|
exports.parseAst = require_parse_ast_index.parseAst
|
|
4
4
|
exports.parseAstAsync = require_parse_ast_index.parseAstAsync
|
package/dist/esm/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { colors } from "../shared/parse-ast-index-
|
|
2
|
-
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-
|
|
1
|
+
import { colors } from "../shared/parse-ast-index-CcVk5ch3.mjs";
|
|
2
|
+
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-BgMfqT7u.mjs";
|
|
3
3
|
import process$1, { cwd } from "node:process";
|
|
4
4
|
import path, { sep } from "node:path";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { import_binding } from "../shared/parse-ast-index-
|
|
2
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-
|
|
1
|
+
import { import_binding } from "../shared/parse-ast-index-CcVk5ch3.mjs";
|
|
2
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-BgMfqT7u.mjs";
|
|
3
3
|
import { pathToFileURL } from "node:url";
|
|
4
4
|
|
|
5
5
|
//#region src/plugin/parallel-plugin.ts
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../shared/parse-ast-index-
|
|
2
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-
|
|
1
|
+
import "../shared/parse-ast-index-CcVk5ch3.mjs";
|
|
2
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-BgMfqT7u.mjs";
|
|
3
3
|
|
|
4
4
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { import_binding } from "../shared/parse-ast-index-
|
|
2
|
-
import { PluginContextData, bindingifyPlugin } from "../shared/src-
|
|
1
|
+
import { import_binding } from "../shared/parse-ast-index-CcVk5ch3.mjs";
|
|
2
|
+
import { PluginContextData, bindingifyPlugin } from "../shared/src-BgMfqT7u.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
|
|
5
5
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -293,7 +293,12 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
295
|
function requireNative() {
|
|
296
|
-
if (process.
|
|
296
|
+
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) try {
|
|
297
|
+
nativeBinding = require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
|
|
298
|
+
} catch (err) {
|
|
299
|
+
loadErrors.push(err);
|
|
300
|
+
}
|
|
301
|
+
else if (process.platform === "android") if (process.arch === "arm64") {
|
|
297
302
|
try {
|
|
298
303
|
return require("./rolldown-binding.android-arm64.node");
|
|
299
304
|
} catch (e) {
|
|
@@ -319,7 +319,12 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
function requireNative() {
|
|
322
|
-
if (process.
|
|
322
|
+
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) try {
|
|
323
|
+
nativeBinding = __require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
|
|
324
|
+
} catch (err) {
|
|
325
|
+
loadErrors.push(err);
|
|
326
|
+
}
|
|
327
|
+
else if (process.platform === "android") if (process.arch === "arm64") {
|
|
323
328
|
try {
|
|
324
329
|
return __require("./rolldown-binding.android-arm64.node");
|
|
325
330
|
} catch (e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { augmentCodeLocation, colors, error, import_binding, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-
|
|
1
|
+
import { augmentCodeLocation, colors, error, import_binding, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-CcVk5ch3.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { Buffer } from "node:buffer";
|
|
4
4
|
import { Worker } from "node:worker_threads";
|
|
@@ -1826,7 +1826,7 @@ function bindingifyAssetFilenames(assetFileNames) {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
|
|
1828
1828
|
//#endregion
|
|
1829
|
-
//#region ../../node_modules/.pnpm/remeda@2.20.
|
|
1829
|
+
//#region ../../node_modules/.pnpm/remeda@2.20.2/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
1830
1830
|
function u$1(o, n, a) {
|
|
1831
1831
|
let t$1 = (r) => o(r, ...n);
|
|
1832
1832
|
return a === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -1836,7 +1836,7 @@ function u$1(o, n, a) {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
|
|
1838
1838
|
//#endregion
|
|
1839
|
-
//#region ../../node_modules/.pnpm/remeda@2.20.
|
|
1839
|
+
//#region ../../node_modules/.pnpm/remeda@2.20.2/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
1840
1840
|
function u(r, n, o) {
|
|
1841
1841
|
let a = r.length - n.length;
|
|
1842
1842
|
if (a === 0) return r(...n);
|
|
@@ -1845,7 +1845,7 @@ function u(r, n, o) {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
|
|
1847
1847
|
//#endregion
|
|
1848
|
-
//#region ../../node_modules/.pnpm/remeda@2.20.
|
|
1848
|
+
//#region ../../node_modules/.pnpm/remeda@2.20.2/node_modules/remeda/dist/chunk-5NQBDF4H.js
|
|
1849
1849
|
function t(...n) {
|
|
1850
1850
|
return u(Object.keys, n);
|
|
1851
1851
|
}
|
|
@@ -2705,7 +2705,7 @@ const watch = (input) => {
|
|
|
2705
2705
|
|
|
2706
2706
|
//#endregion
|
|
2707
2707
|
//#region package.json
|
|
2708
|
-
var version = "1.0.0-beta.3-commit.
|
|
2708
|
+
var version = "1.0.0-beta.3-commit.124516c";
|
|
2709
2709
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2710
2710
|
|
|
2711
2711
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
3
|
+
const require_parse_ast_index = require('./parse-ast-index-BGtslpMc.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_buffer = require_chunk.__toESM(require("node:buffer"));
|
|
6
6
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
@@ -1828,7 +1828,7 @@ function bindingifyAssetFilenames(assetFileNames) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
|
|
1830
1830
|
//#endregion
|
|
1831
|
-
//#region ../../node_modules/.pnpm/remeda@2.20.
|
|
1831
|
+
//#region ../../node_modules/.pnpm/remeda@2.20.2/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
1832
1832
|
function u$1(o, n, a) {
|
|
1833
1833
|
let t$1 = (r) => o(r, ...n);
|
|
1834
1834
|
return a === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -1838,7 +1838,7 @@ function u$1(o, n, a) {
|
|
|
1838
1838
|
}
|
|
1839
1839
|
|
|
1840
1840
|
//#endregion
|
|
1841
|
-
//#region ../../node_modules/.pnpm/remeda@2.20.
|
|
1841
|
+
//#region ../../node_modules/.pnpm/remeda@2.20.2/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
1842
1842
|
function u(r, n, o) {
|
|
1843
1843
|
let a = r.length - n.length;
|
|
1844
1844
|
if (a === 0) return r(...n);
|
|
@@ -1847,7 +1847,7 @@ function u(r, n, o) {
|
|
|
1847
1847
|
}
|
|
1848
1848
|
|
|
1849
1849
|
//#endregion
|
|
1850
|
-
//#region ../../node_modules/.pnpm/remeda@2.20.
|
|
1850
|
+
//#region ../../node_modules/.pnpm/remeda@2.20.2/node_modules/remeda/dist/chunk-5NQBDF4H.js
|
|
1851
1851
|
function t(...n) {
|
|
1852
1852
|
return u(Object.keys, n);
|
|
1853
1853
|
}
|
|
@@ -2707,7 +2707,7 @@ const watch = (input) => {
|
|
|
2707
2707
|
|
|
2708
2708
|
//#endregion
|
|
2709
2709
|
//#region package.json
|
|
2710
|
-
var version = "1.0.0-beta.3-commit.
|
|
2710
|
+
var version = "1.0.0-beta.3-commit.124516c";
|
|
2711
2711
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2712
2712
|
|
|
2713
2713
|
//#endregion
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -147,6 +147,7 @@ export declare class Bundler {
|
|
|
147
147
|
scan(): Promise<BindingOutputs>
|
|
148
148
|
close(): Promise<void>
|
|
149
149
|
get closed(): boolean
|
|
150
|
+
generateHmrPatch(changedFiles: Array<string>): Promise<string>
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
export declare class MagicString {
|
|
@@ -754,6 +755,16 @@ export interface DecoratorOptions {
|
|
|
754
755
|
* @default false
|
|
755
756
|
*/
|
|
756
757
|
legacy?: boolean
|
|
758
|
+
/**
|
|
759
|
+
* Enables emitting decorator metadata.
|
|
760
|
+
*
|
|
761
|
+
* This option the same as [emitDecoratorMetadata](https://www.typescriptlang.org/tsconfig/#emitDecoratorMetadata)
|
|
762
|
+
* in TypeScript, and it only works when `legacy` is true.
|
|
763
|
+
*
|
|
764
|
+
* @see https://www.typescriptlang.org/tsconfig/#emitDecoratorMetadata
|
|
765
|
+
* @default false
|
|
766
|
+
*/
|
|
767
|
+
emitDecoratorMetadata?: boolean
|
|
757
768
|
}
|
|
758
769
|
|
|
759
770
|
export interface DynamicImport {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.3-commit.
|
|
3
|
+
"version": "1.0.0-beta.3-commit.124516c",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
"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\n\n"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@oxc-project/types": "0.
|
|
87
|
+
"@oxc-project/types": "0.52.0",
|
|
88
88
|
"@valibot/to-json-schema": "1.0.0-beta.5",
|
|
89
89
|
"valibot": "1.0.0-beta.14"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
|
-
"@oxc-project/runtime": "0.
|
|
92
|
+
"@oxc-project/runtime": "0.52.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependenciesMeta": {
|
|
95
95
|
"@oxc-project/runtime": {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
101
|
-
"@napi-rs/cli": "^3.0.0-alpha.
|
|
101
|
+
"@napi-rs/cli": "^3.0.0-alpha.71",
|
|
102
102
|
"@napi-rs/wasm-runtime": "^0.2.4",
|
|
103
103
|
"@oxc-node/core": "^0.0.19",
|
|
104
104
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -122,21 +122,21 @@
|
|
|
122
122
|
"unbuild": "^3.0.0",
|
|
123
123
|
"why-is-node-running": "^3.0.0",
|
|
124
124
|
"@rolldown/testing": "0.0.1",
|
|
125
|
-
"rolldown": "1.0.0-beta.3-commit.
|
|
125
|
+
"rolldown": "1.0.0-beta.3-commit.124516c"
|
|
126
126
|
},
|
|
127
127
|
"optionalDependencies": {
|
|
128
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.
|
|
129
|
-
"@rolldown/binding-
|
|
130
|
-
"@rolldown/binding-
|
|
131
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.
|
|
132
|
-
"@rolldown/binding-linux-
|
|
133
|
-
"@rolldown/binding-linux-x64-
|
|
134
|
-
"@rolldown/binding-linux-
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.
|
|
137
|
-
"@rolldown/binding-win32-
|
|
138
|
-
"@rolldown/binding-win32-
|
|
139
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.
|
|
128
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.124516c",
|
|
129
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.124516c",
|
|
130
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.124516c",
|
|
131
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.124516c",
|
|
132
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.124516c",
|
|
133
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.124516c",
|
|
134
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.124516c",
|
|
135
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.124516c",
|
|
136
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.124516c",
|
|
137
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.124516c",
|
|
138
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.124516c",
|
|
139
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.124516c"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|