@rolldown/browser 1.0.0-beta.8-commit.0ddd7f7 → 1.0.0-beta.8-commit.534fde3
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/browser.mjs +17 -41
- package/dist/cli.cjs +4 -4
- package/dist/cli.mjs +4 -4
- package/dist/experimental-index.cjs +8 -2
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +2 -2
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{parse-ast-index-DTWvag1h.cjs → parse-ast-index-C4XbfZ6x.cjs} +1 -1
- package/dist/shared/{parse-ast-index-B5wGnMSg.mjs → parse-ast-index-D_ZB9M77.mjs} +2 -2
- package/dist/shared/{src-HT0bRkLh.cjs → src-BD62AA2R.cjs} +17 -41
- package/dist/shared/{src-DqmCczKH.mjs → src-C1eHSkk5.mjs} +18 -42
- package/package.json +3 -3
package/dist/browser.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import path from "pathe";
|
|
|
3
3
|
import colors from "ansis";
|
|
4
4
|
|
|
5
5
|
//#region package.json
|
|
6
|
-
var version = "1.0.0-beta.8-commit.
|
|
6
|
+
var version = "1.0.0-beta.8-commit.534fde3";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -822,29 +822,6 @@ function custom(check2, message) {
|
|
|
822
822
|
};
|
|
823
823
|
}
|
|
824
824
|
/* @__NO_SIDE_EFFECTS__ */
|
|
825
|
-
function enum_(enum__, message) {
|
|
826
|
-
const options = [];
|
|
827
|
-
for (const key in enum__) if (`${+key}` !== key || typeof enum__[key] !== "string" || !Object.is(enum__[enum__[key]], +key)) options.push(enum__[key]);
|
|
828
|
-
return {
|
|
829
|
-
kind: "schema",
|
|
830
|
-
type: "enum",
|
|
831
|
-
reference: enum_,
|
|
832
|
-
expects: /* @__PURE__ */ _joinExpects(options.map(_stringify), "|"),
|
|
833
|
-
async: false,
|
|
834
|
-
enum: enum__,
|
|
835
|
-
options,
|
|
836
|
-
message,
|
|
837
|
-
get "~standard"() {
|
|
838
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
839
|
-
},
|
|
840
|
-
"~run"(dataset, config2) {
|
|
841
|
-
if (this.options.includes(dataset.value)) dataset.typed = true;
|
|
842
|
-
else _addIssue(this, "type", dataset, config2);
|
|
843
|
-
return dataset;
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
}
|
|
847
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
848
825
|
function function_(message) {
|
|
849
826
|
return {
|
|
850
827
|
kind: "schema",
|
|
@@ -1713,21 +1690,20 @@ const InputCliOptionsSchema = omit(strictObject({
|
|
|
1713
1690
|
"profilerNames",
|
|
1714
1691
|
"watch"
|
|
1715
1692
|
]);
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
}(ESTarget || {});
|
|
1693
|
+
const ESTargetSchema = union([
|
|
1694
|
+
literal("es6"),
|
|
1695
|
+
literal("es2015"),
|
|
1696
|
+
literal("es2016"),
|
|
1697
|
+
literal("es2017"),
|
|
1698
|
+
literal("es2018"),
|
|
1699
|
+
literal("es2019"),
|
|
1700
|
+
literal("es2020"),
|
|
1701
|
+
literal("es2021"),
|
|
1702
|
+
literal("es2022"),
|
|
1703
|
+
literal("es2023"),
|
|
1704
|
+
literal("es2024"),
|
|
1705
|
+
literal("esnext")
|
|
1706
|
+
]);
|
|
1731
1707
|
const ModuleFormatSchema = union([
|
|
1732
1708
|
literal("es"),
|
|
1733
1709
|
literal("cjs"),
|
|
@@ -1807,7 +1783,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
1807
1783
|
comments: pipe(optional(union([literal("none"), literal("preserve-legal")])), description("Control comments in the output")),
|
|
1808
1784
|
plugins: optional(custom(() => true)),
|
|
1809
1785
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
1810
|
-
target: pipe(optional(
|
|
1786
|
+
target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
|
|
1811
1787
|
hoistTransitiveImports: optional(custom((input) => {
|
|
1812
1788
|
if (input) return false;
|
|
1813
1789
|
return true;
|
|
@@ -2287,7 +2263,7 @@ function bindingPluginOrder(order) {
|
|
|
2287
2263
|
}
|
|
2288
2264
|
|
|
2289
2265
|
//#endregion
|
|
2290
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2266
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.68.1/node_modules/oxc-parser/wrap.mjs
|
|
2291
2267
|
function wrap$1(result) {
|
|
2292
2268
|
let program, module, comments, errors;
|
|
2293
2269
|
return {
|
package/dist/cli.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-BD62AA2R.cjs');
|
|
3
3
|
const require_filter_index = require('./shared/filter-index-ChddWdsi.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-C4XbfZ6x.cjs');
|
|
5
5
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
6
6
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
7
7
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
@@ -1560,8 +1560,8 @@ async function loadConfig(configPath) {
|
|
|
1560
1560
|
}
|
|
1561
1561
|
|
|
1562
1562
|
//#endregion
|
|
1563
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1564
|
-
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1563
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.68.1/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1564
|
+
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.68.1/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1565
1565
|
function _usingCtx() {
|
|
1566
1566
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1567
1567
|
var n$2 = Error();
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-C1eHSkk5.mjs";
|
|
3
3
|
import { arraify, init_misc } from "./shared/filter-index-DmisSKZF.mjs";
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
4
|
+
import "./shared/parse-ast-index-D_ZB9M77.mjs";
|
|
5
5
|
import path, { sep } from "node:path";
|
|
6
6
|
import colors from "ansis";
|
|
7
7
|
import process$1, { cwd } from "node:process";
|
|
@@ -1565,8 +1565,8 @@ var init_load_config = __esm({ "src/cli/load-config.ts"() {
|
|
|
1565
1565
|
} });
|
|
1566
1566
|
|
|
1567
1567
|
//#endregion
|
|
1568
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1569
|
-
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1568
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.68.1/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1569
|
+
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.68.1/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1570
1570
|
function _usingCtx() {
|
|
1571
1571
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1572
1572
|
var n$2 = Error();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('./shared/src-
|
|
3
|
+
const require_src = require('./shared/src-BD62AA2R.cjs');
|
|
4
4
|
require('./shared/filter-index-ChddWdsi.cjs');
|
|
5
|
-
require('./shared/parse-ast-index-
|
|
5
|
+
require('./shared/parse-ast-index-C4XbfZ6x.cjs');
|
|
6
6
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
7
7
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
8
8
|
|
|
@@ -89,6 +89,12 @@ exports.composePlugins = require_src.composeJsPlugins
|
|
|
89
89
|
exports.defineParallelPlugin = defineParallelPlugin
|
|
90
90
|
exports.dynamicImportVarsPlugin = require_src.dynamicImportVarsPlugin
|
|
91
91
|
exports.importGlobPlugin = require_src.importGlobPlugin
|
|
92
|
+
Object.defineProperty(exports, 'isolatedDeclaration', {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () {
|
|
95
|
+
return src_rolldown_binding_wasi_cjs.isolatedDeclaration;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
92
98
|
exports.isolatedDeclarationPlugin = require_src.isolatedDeclarationPlugin
|
|
93
99
|
exports.jsonPlugin = require_src.jsonPlugin
|
|
94
100
|
exports.loadFallbackPlugin = require_src.loadFallbackPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/input-options.d-JaQuRwQq.cjs";
|
|
2
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
2
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -93,4 +93,4 @@ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exc
|
|
|
93
93
|
declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
94
94
|
|
|
95
95
|
//#endregion
|
|
96
|
-
export { TransformOptions, TransformResult, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
96
|
+
export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/input-options.d-DIb0_K9t.mjs";
|
|
2
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
2
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -93,4 +93,4 @@ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exc
|
|
|
93
93
|
declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
94
94
|
|
|
95
95
|
//#endregion
|
|
96
|
-
export { TransformOptions, TransformResult, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
96
|
+
export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-
|
|
1
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-C1eHSkk5.mjs";
|
|
2
2
|
import "./shared/filter-index-DmisSKZF.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
4
|
-
import { moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
|
+
import "./shared/parse-ast-index-D_ZB9M77.mjs";
|
|
4
|
+
import { isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
|
7
7
|
//#region src/api/experimental.ts
|
|
@@ -92,4 +92,4 @@ init_compose_js_plugins();
|
|
|
92
92
|
init_constructors();
|
|
93
93
|
|
|
94
94
|
//#endregion
|
|
95
|
-
export { aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
95
|
+
export { aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
1
|
+
const require_src = require('./shared/src-BD62AA2R.cjs');
|
|
2
2
|
require('./shared/filter-index-ChddWdsi.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
3
|
+
require('./shared/parse-ast-index-C4XbfZ6x.cjs');
|
|
4
4
|
|
|
5
5
|
exports.VERSION = require_src.VERSION
|
|
6
6
|
exports.build = require_src.build
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-C1eHSkk5.mjs";
|
|
2
2
|
import "./shared/filter-index-DmisSKZF.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-D_ZB9M77.mjs";
|
|
4
4
|
|
|
5
5
|
init_src();
|
|
6
6
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-BD62AA2R.cjs');
|
|
3
3
|
require('./shared/filter-index-ChddWdsi.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-C4XbfZ6x.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
6
6
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __commonJS } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-C1eHSkk5.mjs";
|
|
3
3
|
import "./shared/filter-index-DmisSKZF.mjs";
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
4
|
+
import "./shared/parse-ast-index-D_ZB9M77.mjs";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
7
|
|
package/dist/parse-ast-index.cjs
CHANGED
|
@@ -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-C4XbfZ6x.cjs');
|
|
2
2
|
|
|
3
3
|
exports.parseAst = require_parse_ast_index.parseAst
|
|
4
4
|
exports.parseAstAsync = require_parse_ast_index.parseAstAsync
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-
|
|
1
|
+
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-D_ZB9M77.mjs";
|
|
2
2
|
|
|
3
3
|
init_parse_ast_index();
|
|
4
4
|
export { parseAst, parseAstAsync };
|
|
Binary file
|
|
@@ -182,7 +182,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
//#endregion
|
|
185
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
185
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.68.1/node_modules/oxc-parser/wrap.mjs
|
|
186
186
|
function wrap$1(result) {
|
|
187
187
|
let program, module$1, comments, errors;
|
|
188
188
|
return {
|
|
@@ -190,7 +190,7 @@ var init_logs = __esm({ "src/log/logs.ts"() {
|
|
|
190
190
|
} });
|
|
191
191
|
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
193
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.68.1/node_modules/oxc-parser/wrap.mjs
|
|
194
194
|
function wrap$1(result) {
|
|
195
195
|
let program, module, comments, errors;
|
|
196
196
|
return {
|
|
@@ -227,7 +227,7 @@ function transform(key, value) {
|
|
|
227
227
|
}
|
|
228
228
|
return value;
|
|
229
229
|
}
|
|
230
|
-
var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.
|
|
230
|
+
var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.68.1/node_modules/oxc-parser/wrap.mjs"() {} });
|
|
231
231
|
|
|
232
232
|
//#endregion
|
|
233
233
|
//#region src/parse-ast-index.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-qZFfknuJ.cjs');
|
|
3
3
|
const require_filter_index = require('./filter-index-ChddWdsi.cjs');
|
|
4
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
4
|
+
const require_parse_ast_index = require('./parse-ast-index-C4XbfZ6x.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("../rolldown-binding.wasi.cjs"));
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
@@ -9,7 +9,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
9
9
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
10
10
|
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "1.0.0-beta.8-commit.
|
|
12
|
+
var version = "1.0.0-beta.8-commit.534fde3";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
@@ -694,29 +694,6 @@ function custom(check2, message) {
|
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
696
|
/* @__NO_SIDE_EFFECTS__ */
|
|
697
|
-
function enum_(enum__, message) {
|
|
698
|
-
const options = [];
|
|
699
|
-
for (const key in enum__) if (`${+key}` !== key || typeof enum__[key] !== "string" || !Object.is(enum__[enum__[key]], +key)) options.push(enum__[key]);
|
|
700
|
-
return {
|
|
701
|
-
kind: "schema",
|
|
702
|
-
type: "enum",
|
|
703
|
-
reference: enum_,
|
|
704
|
-
expects: /* @__PURE__ */ _joinExpects(options.map(_stringify), "|"),
|
|
705
|
-
async: false,
|
|
706
|
-
enum: enum__,
|
|
707
|
-
options,
|
|
708
|
-
message,
|
|
709
|
-
get "~standard"() {
|
|
710
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
711
|
-
},
|
|
712
|
-
"~run"(dataset, config2) {
|
|
713
|
-
if (this.options.includes(dataset.value)) dataset.typed = true;
|
|
714
|
-
else _addIssue(this, "type", dataset, config2);
|
|
715
|
-
return dataset;
|
|
716
|
-
}
|
|
717
|
-
};
|
|
718
|
-
}
|
|
719
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
720
697
|
function function_(message) {
|
|
721
698
|
return {
|
|
722
699
|
kind: "schema",
|
|
@@ -1924,21 +1901,20 @@ const InputCliOptionsSchema = omit(strictObject({
|
|
|
1924
1901
|
"profilerNames",
|
|
1925
1902
|
"watch"
|
|
1926
1903
|
]);
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
}(ESTarget || {});
|
|
1904
|
+
const ESTargetSchema = union([
|
|
1905
|
+
literal("es6"),
|
|
1906
|
+
literal("es2015"),
|
|
1907
|
+
literal("es2016"),
|
|
1908
|
+
literal("es2017"),
|
|
1909
|
+
literal("es2018"),
|
|
1910
|
+
literal("es2019"),
|
|
1911
|
+
literal("es2020"),
|
|
1912
|
+
literal("es2021"),
|
|
1913
|
+
literal("es2022"),
|
|
1914
|
+
literal("es2023"),
|
|
1915
|
+
literal("es2024"),
|
|
1916
|
+
literal("esnext")
|
|
1917
|
+
]);
|
|
1942
1918
|
const ModuleFormatSchema = union([
|
|
1943
1919
|
literal("es"),
|
|
1944
1920
|
literal("cjs"),
|
|
@@ -2018,7 +1994,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
2018
1994
|
comments: pipe(optional(union([literal("none"), literal("preserve-legal")])), description("Control comments in the output")),
|
|
2019
1995
|
plugins: optional(custom(() => true)),
|
|
2020
1996
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
2021
|
-
target: pipe(optional(
|
|
1997
|
+
target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
|
|
2022
1998
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2023
1999
|
if (input) return false;
|
|
2024
2000
|
return true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esm } from "./chunk-DSsiIF1Z.mjs";
|
|
2
2
|
import { and, arraify, code, exclude, id, include, init_filter_index, init_misc, isNullish, moduleType, noop, or, unimplemented, unreachable, unsupported } from "./filter-index-DmisSKZF.mjs";
|
|
3
|
-
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-
|
|
3
|
+
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-D_ZB9M77.mjs";
|
|
4
4
|
import { BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import colors from "ansis";
|
|
@@ -8,7 +8,7 @@ import { availableParallelism } from "node:os";
|
|
|
8
8
|
import { Worker } from "node:worker_threads";
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-beta.8-commit.
|
|
11
|
+
var version = "1.0.0-beta.8-commit.534fde3";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -720,29 +720,6 @@ function custom(check2, message) {
|
|
|
720
720
|
};
|
|
721
721
|
}
|
|
722
722
|
/* @__NO_SIDE_EFFECTS__ */
|
|
723
|
-
function enum_(enum__, message) {
|
|
724
|
-
const options = [];
|
|
725
|
-
for (const key in enum__) if (`${+key}` !== key || typeof enum__[key] !== "string" || !Object.is(enum__[enum__[key]], +key)) options.push(enum__[key]);
|
|
726
|
-
return {
|
|
727
|
-
kind: "schema",
|
|
728
|
-
type: "enum",
|
|
729
|
-
reference: enum_,
|
|
730
|
-
expects: /* @__PURE__ */ _joinExpects(options.map(_stringify), "|"),
|
|
731
|
-
async: false,
|
|
732
|
-
enum: enum__,
|
|
733
|
-
options,
|
|
734
|
-
message,
|
|
735
|
-
get "~standard"() {
|
|
736
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
737
|
-
},
|
|
738
|
-
"~run"(dataset, config2) {
|
|
739
|
-
if (this.options.includes(dataset.value)) dataset.typed = true;
|
|
740
|
-
else _addIssue(this, "type", dataset, config2);
|
|
741
|
-
return dataset;
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
|
-
}
|
|
745
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
746
723
|
function function_(message) {
|
|
747
724
|
return {
|
|
748
725
|
kind: "schema",
|
|
@@ -1803,7 +1780,7 @@ function getOutputCliKeys() {
|
|
|
1803
1780
|
function getJsonSchema() {
|
|
1804
1781
|
return toJsonSchema(CliOptionsSchema);
|
|
1805
1782
|
}
|
|
1806
|
-
var StringOrRegExpSchema, LogLevelSchema, LogLevelOptionSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, InputOptionSchema, ExternalSchema, ModuleTypesSchema, JsxOptionsSchema, HelperModeSchema, DecoratorOptionSchema, HelpersSchema, RewriteImportExtensionsSchema, TypescriptSchema, AssumptionsSchema, TransformOptionsSchema, WatchOptionsSchema, ChecksOptionsSchema, MinifyOptionsSchema, ResolveOptionsSchema, TreeshakingOptionsSchema, OnLogSchema, OnwarnSchema, HmrSchema, InputOptionsSchema, InputCliOverrideSchema, InputCliOptionsSchema,
|
|
1783
|
+
var StringOrRegExpSchema, LogLevelSchema, LogLevelOptionSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, InputOptionSchema, ExternalSchema, ModuleTypesSchema, JsxOptionsSchema, HelperModeSchema, DecoratorOptionSchema, HelpersSchema, RewriteImportExtensionsSchema, TypescriptSchema, AssumptionsSchema, TransformOptionsSchema, WatchOptionsSchema, ChecksOptionsSchema, MinifyOptionsSchema, ResolveOptionsSchema, TreeshakingOptionsSchema, OnLogSchema, OnwarnSchema, HmrSchema, InputOptionsSchema, InputCliOverrideSchema, InputCliOptionsSchema, ESTargetSchema, ModuleFormatSchema, AddonFunctionSchema, ChunkFileNamesSchema, AssetFileNamesSchema, SanitizeFileNameSchema, GlobalsFunctionSchema, AdvancedChunksSchema, OutputOptionsSchema, getAddonDescription, OutputCliOverrideSchema, OutputCliOptionsSchema, CliOptionsSchema, inputHelperMsgRecord, outputHelperMsgRecord;
|
|
1807
1784
|
var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
1808
1785
|
init_dist$1();
|
|
1809
1786
|
init_dist$2();
|
|
@@ -2011,21 +1988,20 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2011
1988
|
"profilerNames",
|
|
2012
1989
|
"watch"
|
|
2013
1990
|
]);
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
}(ESTarget || {});
|
|
1991
|
+
ESTargetSchema = union([
|
|
1992
|
+
literal("es6"),
|
|
1993
|
+
literal("es2015"),
|
|
1994
|
+
literal("es2016"),
|
|
1995
|
+
literal("es2017"),
|
|
1996
|
+
literal("es2018"),
|
|
1997
|
+
literal("es2019"),
|
|
1998
|
+
literal("es2020"),
|
|
1999
|
+
literal("es2021"),
|
|
2000
|
+
literal("es2022"),
|
|
2001
|
+
literal("es2023"),
|
|
2002
|
+
literal("es2024"),
|
|
2003
|
+
literal("esnext")
|
|
2004
|
+
]);
|
|
2029
2005
|
ModuleFormatSchema = union([
|
|
2030
2006
|
literal("es"),
|
|
2031
2007
|
literal("cjs"),
|
|
@@ -2105,7 +2081,7 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2105
2081
|
comments: pipe(optional(union([literal("none"), literal("preserve-legal")])), description("Control comments in the output")),
|
|
2106
2082
|
plugins: optional(custom(() => true)),
|
|
2107
2083
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
2108
|
-
target: pipe(optional(
|
|
2084
|
+
target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
|
|
2109
2085
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2110
2086
|
if (input) return false;
|
|
2111
2087
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
3
|
-
"version": "1.0.0-beta.8-commit.
|
|
3
|
+
"version": "1.0.0-beta.8-commit.534fde3",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@napi-rs/wasm-runtime": "^0.2.8",
|
|
58
|
-
"@oxc-project/types": "0.
|
|
58
|
+
"@oxc-project/types": "0.68.1",
|
|
59
59
|
"ansis": "^3.17.0",
|
|
60
60
|
"pathe": "^2.0.3"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@oxc-project/runtime": "0.
|
|
63
|
+
"@oxc-project/runtime": "0.68.1"
|
|
64
64
|
},
|
|
65
65
|
"peerDependenciesMeta": {
|
|
66
66
|
"@oxc-project/runtime": {
|