rolldown 1.0.0-beta.3-commit.61bbd94 → 1.0.0-beta.3-commit.707c8dd
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-p24sJjY3.cjs → parse-ast-index-BGtslpMc.cjs} +21 -5
- package/dist/shared/{parse-ast-index-BDY-7XFT.mjs → parse-ast-index-CcVk5ch3.mjs} +21 -5
- package/dist/shared/{src-BsHZ6P4f.cjs → src-CzKhjJPZ.cjs} +3 -5
- package/dist/shared/{src-CMmVJusS.mjs → src-DRXsvQhQ.mjs} +3 -5
- package/dist/types/binding.d.ts +10 -0
- package/dist/types/parse-ast-index.d.ts +2 -2
- 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-CzKhjJPZ.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-CzKhjJPZ.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-CzKhjJPZ.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-CzKhjJPZ.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-DRXsvQhQ.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-DRXsvQhQ.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-DRXsvQhQ.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-DRXsvQhQ.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) {
|
|
@@ -625,11 +630,22 @@ function normalizeParseError(sourceText, errors) {
|
|
|
625
630
|
}
|
|
626
631
|
return error(logParseError(message));
|
|
627
632
|
}
|
|
628
|
-
|
|
629
|
-
|
|
633
|
+
const defaultParserOptions = {
|
|
634
|
+
lang: "js",
|
|
635
|
+
preserveParens: false,
|
|
636
|
+
convertSpanUtf16: true
|
|
637
|
+
};
|
|
638
|
+
function parseAst(sourceText, options, filename) {
|
|
639
|
+
return wrap((0, import_binding.parseSync)(filename ?? "file.js", sourceText, {
|
|
640
|
+
...defaultParserOptions,
|
|
641
|
+
...options
|
|
642
|
+
}), sourceText).program;
|
|
630
643
|
}
|
|
631
|
-
async function parseAstAsync(
|
|
632
|
-
return wrap(await (0, import_binding.parseAsync)(filename, sourceText,
|
|
644
|
+
async function parseAstAsync(sourceText, options, filename) {
|
|
645
|
+
return wrap(await (0, import_binding.parseAsync)(filename ?? "file.js", sourceText, {
|
|
646
|
+
...defaultParserOptions,
|
|
647
|
+
...options
|
|
648
|
+
}), sourceText).program;
|
|
633
649
|
}
|
|
634
650
|
|
|
635
651
|
//#endregion
|
|
@@ -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) {
|
|
@@ -651,11 +656,22 @@ function normalizeParseError(sourceText, errors) {
|
|
|
651
656
|
}
|
|
652
657
|
return error(logParseError(message));
|
|
653
658
|
}
|
|
654
|
-
|
|
655
|
-
|
|
659
|
+
const defaultParserOptions = {
|
|
660
|
+
lang: "js",
|
|
661
|
+
preserveParens: false,
|
|
662
|
+
convertSpanUtf16: true
|
|
663
|
+
};
|
|
664
|
+
function parseAst(sourceText, options, filename) {
|
|
665
|
+
return wrap((0, import_binding.parseSync)(filename ?? "file.js", sourceText, {
|
|
666
|
+
...defaultParserOptions,
|
|
667
|
+
...options
|
|
668
|
+
}), sourceText).program;
|
|
656
669
|
}
|
|
657
|
-
async function parseAstAsync(
|
|
658
|
-
return wrap(await (0, import_binding.parseAsync)(filename, sourceText,
|
|
670
|
+
async function parseAstAsync(sourceText, options, filename) {
|
|
671
|
+
return wrap(await (0, import_binding.parseAsync)(filename ?? "file.js", sourceText, {
|
|
672
|
+
...defaultParserOptions,
|
|
673
|
+
...options
|
|
674
|
+
}), sourceText).program;
|
|
659
675
|
}
|
|
660
676
|
|
|
661
677
|
//#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"));
|
|
@@ -181,8 +181,6 @@ var BuiltinPlugin = class {
|
|
|
181
181
|
constructor(name, _options) {
|
|
182
182
|
this.name = name;
|
|
183
183
|
this._options = _options;
|
|
184
|
-
this.name = name;
|
|
185
|
-
this._options = _options;
|
|
186
184
|
}
|
|
187
185
|
};
|
|
188
186
|
function modulePreloadPolyfillPlugin(config) {
|
|
@@ -837,7 +835,7 @@ var PluginContext = class extends MinimalPluginContext {
|
|
|
837
835
|
this.context.addWatchFile(id);
|
|
838
836
|
}
|
|
839
837
|
parse(input, options) {
|
|
840
|
-
return require_parse_ast_index.parseAst(
|
|
838
|
+
return require_parse_ast_index.parseAst(input, options);
|
|
841
839
|
}
|
|
842
840
|
};
|
|
843
841
|
|
|
@@ -2709,7 +2707,7 @@ const watch = (input) => {
|
|
|
2709
2707
|
|
|
2710
2708
|
//#endregion
|
|
2711
2709
|
//#region package.json
|
|
2712
|
-
var version = "1.0.0-beta.3-commit.
|
|
2710
|
+
var version = "1.0.0-beta.3-commit.707c8dd";
|
|
2713
2711
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2714
2712
|
|
|
2715
2713
|
//#endregion
|
|
@@ -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";
|
|
@@ -179,8 +179,6 @@ var BuiltinPlugin = class {
|
|
|
179
179
|
constructor(name, _options) {
|
|
180
180
|
this.name = name;
|
|
181
181
|
this._options = _options;
|
|
182
|
-
this.name = name;
|
|
183
|
-
this._options = _options;
|
|
184
182
|
}
|
|
185
183
|
};
|
|
186
184
|
function modulePreloadPolyfillPlugin(config) {
|
|
@@ -835,7 +833,7 @@ var PluginContext = class extends MinimalPluginContext {
|
|
|
835
833
|
this.context.addWatchFile(id);
|
|
836
834
|
}
|
|
837
835
|
parse(input, options) {
|
|
838
|
-
return parseAst(
|
|
836
|
+
return parseAst(input, options);
|
|
839
837
|
}
|
|
840
838
|
};
|
|
841
839
|
|
|
@@ -2707,7 +2705,7 @@ const watch = (input) => {
|
|
|
2707
2705
|
|
|
2708
2706
|
//#endregion
|
|
2709
2707
|
//#region package.json
|
|
2710
|
-
var version = "1.0.0-beta.3-commit.
|
|
2708
|
+
var version = "1.0.0-beta.3-commit.707c8dd";
|
|
2711
2709
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2712
2710
|
|
|
2713
2711
|
//#endregion
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -754,6 +754,16 @@ export interface DecoratorOptions {
|
|
|
754
754
|
* @default false
|
|
755
755
|
*/
|
|
756
756
|
legacy?: boolean
|
|
757
|
+
/**
|
|
758
|
+
* Enables emitting decorator metadata.
|
|
759
|
+
*
|
|
760
|
+
* This option the same as [emitDecoratorMetadata](https://www.typescriptlang.org/tsconfig/#emitDecoratorMetadata)
|
|
761
|
+
* in TypeScript, and it only works when `legacy` is true.
|
|
762
|
+
*
|
|
763
|
+
* @see https://www.typescriptlang.org/tsconfig/#emitDecoratorMetadata
|
|
764
|
+
* @default false
|
|
765
|
+
*/
|
|
766
|
+
emitDecoratorMetadata?: boolean
|
|
757
767
|
}
|
|
758
768
|
|
|
759
769
|
export interface DynamicImport {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Program } from '@oxc-project/types';
|
|
2
2
|
import type { ParseResult, ParserOptions } from './binding';
|
|
3
|
-
export declare function parseAst(
|
|
4
|
-
export declare function parseAstAsync(
|
|
3
|
+
export declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program;
|
|
4
|
+
export declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>;
|
|
5
5
|
export type { ParseResult, ParserOptions };
|
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.707c8dd",
|
|
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.707c8dd"
|
|
126
126
|
},
|
|
127
127
|
"optionalDependencies": {
|
|
128
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.
|
|
129
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.
|
|
130
|
-
"@rolldown/binding-linux-
|
|
131
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.
|
|
132
|
-
"@rolldown/binding-linux-
|
|
133
|
-
"@rolldown/binding-linux-arm64-
|
|
134
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.
|
|
135
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.
|
|
136
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.
|
|
137
|
-
"@rolldown/binding-
|
|
138
|
-
"@rolldown/binding-win32-
|
|
139
|
-
"@rolldown/binding-
|
|
128
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.707c8dd",
|
|
129
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.707c8dd",
|
|
130
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.707c8dd",
|
|
131
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.707c8dd",
|
|
132
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.707c8dd",
|
|
133
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.707c8dd",
|
|
134
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.707c8dd",
|
|
135
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.707c8dd",
|
|
136
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.707c8dd",
|
|
137
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.707c8dd",
|
|
138
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.707c8dd",
|
|
139
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.707c8dd"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|