rolldown 1.0.0-beta.3-commit.61bbd94 → 1.0.0-beta.3-commit.b814905
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-CYgta8XV.cjs} +15 -4
- package/dist/shared/{parse-ast-index-BDY-7XFT.mjs → parse-ast-index-xu1sp-Oh.mjs} +15 -4
- package/dist/shared/{src-BsHZ6P4f.cjs → src-CMgSOUyx.cjs} +3 -5
- package/dist/shared/{src-CMmVJusS.mjs → src-DvFoEK0x.mjs} +3 -5
- package/dist/types/parse-ast-index.d.ts +2 -2
- package/package.json +14 -14
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-CMgSOUyx.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-CYgta8XV.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-CMgSOUyx.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-CYgta8XV.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-CMgSOUyx.cjs');
|
|
2
|
+
require('../shared/parse-ast-index-CYgta8XV.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-CMgSOUyx.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-CYgta8XV.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-CYgta8XV.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-xu1sp-Oh.mjs";
|
|
2
|
+
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-DvFoEK0x.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-xu1sp-Oh.mjs";
|
|
2
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-DvFoEK0x.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-xu1sp-Oh.mjs";
|
|
2
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-DvFoEK0x.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-xu1sp-Oh.mjs";
|
|
2
|
+
import { PluginContextData, bindingifyPlugin } from "../shared/src-DvFoEK0x.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
|
|
5
5
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -625,11 +625,22 @@ function normalizeParseError(sourceText, errors) {
|
|
|
625
625
|
}
|
|
626
626
|
return error(logParseError(message));
|
|
627
627
|
}
|
|
628
|
-
|
|
629
|
-
|
|
628
|
+
const defaultParserOptions = {
|
|
629
|
+
lang: "js",
|
|
630
|
+
preserveParens: false,
|
|
631
|
+
convertSpanUtf16: true
|
|
632
|
+
};
|
|
633
|
+
function parseAst(sourceText, options, filename) {
|
|
634
|
+
return wrap((0, import_binding.parseSync)(filename ?? "file.js", sourceText, {
|
|
635
|
+
...defaultParserOptions,
|
|
636
|
+
...options
|
|
637
|
+
}), sourceText).program;
|
|
630
638
|
}
|
|
631
|
-
async function parseAstAsync(
|
|
632
|
-
return wrap(await (0, import_binding.parseAsync)(filename, sourceText,
|
|
639
|
+
async function parseAstAsync(sourceText, options, filename) {
|
|
640
|
+
return wrap(await (0, import_binding.parseAsync)(filename ?? "file.js", sourceText, {
|
|
641
|
+
...defaultParserOptions,
|
|
642
|
+
...options
|
|
643
|
+
}), sourceText).program;
|
|
633
644
|
}
|
|
634
645
|
|
|
635
646
|
//#endregion
|
|
@@ -651,11 +651,22 @@ function normalizeParseError(sourceText, errors) {
|
|
|
651
651
|
}
|
|
652
652
|
return error(logParseError(message));
|
|
653
653
|
}
|
|
654
|
-
|
|
655
|
-
|
|
654
|
+
const defaultParserOptions = {
|
|
655
|
+
lang: "js",
|
|
656
|
+
preserveParens: false,
|
|
657
|
+
convertSpanUtf16: true
|
|
658
|
+
};
|
|
659
|
+
function parseAst(sourceText, options, filename) {
|
|
660
|
+
return wrap((0, import_binding.parseSync)(filename ?? "file.js", sourceText, {
|
|
661
|
+
...defaultParserOptions,
|
|
662
|
+
...options
|
|
663
|
+
}), sourceText).program;
|
|
656
664
|
}
|
|
657
|
-
async function parseAstAsync(
|
|
658
|
-
return wrap(await (0, import_binding.parseAsync)(filename, sourceText,
|
|
665
|
+
async function parseAstAsync(sourceText, options, filename) {
|
|
666
|
+
return wrap(await (0, import_binding.parseAsync)(filename ?? "file.js", sourceText, {
|
|
667
|
+
...defaultParserOptions,
|
|
668
|
+
...options
|
|
669
|
+
}), sourceText).program;
|
|
659
670
|
}
|
|
660
671
|
|
|
661
672
|
//#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-CYgta8XV.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.b814905";
|
|
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-xu1sp-Oh.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.b814905";
|
|
2711
2709
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2712
2710
|
|
|
2713
2711
|
//#endregion
|
|
@@ -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.b814905",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -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.b814905"
|
|
126
126
|
},
|
|
127
127
|
"optionalDependencies": {
|
|
128
|
-
"@rolldown/binding-
|
|
129
|
-
"@rolldown/binding-
|
|
130
|
-
"@rolldown/binding-
|
|
131
|
-
"@rolldown/binding-
|
|
132
|
-
"@rolldown/binding-linux-arm64-
|
|
133
|
-
"@rolldown/binding-linux-
|
|
134
|
-
"@rolldown/binding-linux-x64-
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.
|
|
138
|
-
"@rolldown/binding-win32-
|
|
139
|
-
"@rolldown/binding-
|
|
128
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.b814905",
|
|
129
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.b814905",
|
|
130
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.b814905",
|
|
131
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.b814905",
|
|
132
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.b814905",
|
|
133
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.b814905",
|
|
134
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.b814905",
|
|
135
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.b814905",
|
|
136
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.b814905",
|
|
137
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.b814905",
|
|
138
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.b814905",
|
|
139
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.b814905"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|