rolldown 1.0.0-beta.8-commit.e270f24 → 1.0.0-beta.8-commit.56abf23
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.cjs +4 -4
- package/dist/cli.mjs +8 -8
- package/dist/experimental-index.cjs +6 -2
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +5 -3
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.cjs +4 -3
- package/dist/parallel-plugin-worker.mjs +5 -4
- package/dist/parallel-plugin.d.cts +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/shared/{binding.d-DiufgqJs.d.mts → binding.d-Ddl7hcN3.d.cts} +1 -0
- package/dist/shared/{binding.d-TdksiV0L.d.cts → binding.d-Y-OUMnnv.d.mts} +1 -0
- package/dist/shared/{chunk-DUYDk_2O.mjs → chunk--iN_1bjD.mjs} +1 -1
- package/dist/shared/{input-options.d-xkHPeCns.d.cts → input-options.d-DVmWlHE9.d.cts} +1 -1
- package/dist/shared/{input-options.d--njwKbQU.d.mts → input-options.d-Dnzz-V9o.d.mts} +1 -1
- package/dist/shared/{misc-CcQKSZ8O.mjs → misc-DGAe2XOW.mjs} +1 -1
- package/dist/shared/{parse-ast-index-CHCsJTcD.mjs → parse-ast-index-BXDjUzKF.mjs} +4 -4
- package/dist/shared/{parse-ast-index-n6Ys2h9o.cjs → parse-ast-index-C37DYnt2.cjs} +7 -7
- package/dist/shared/{prompt-UMUDMApt.mjs → prompt-AXtOIn-r.mjs} +1 -1
- package/dist/shared/{src-WSLYLQjV.cjs → src-RTReWFUn.cjs} +25 -18
- package/dist/shared/{src-DbQfn8bU.mjs → src-TcTOaWt7.mjs} +40 -24
- package/package.json +16 -17
package/dist/cli.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
2
|
+
const require_src = require('./shared/src-RTReWFUn.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-C37DYnt2.cjs');
|
|
4
4
|
const require_misc = require('./shared/misc-BWx4LNta.cjs');
|
|
5
5
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
8
|
+
const node_url = require_chunk.__toESM(require("node:url"));
|
|
8
9
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
9
10
|
const node_util = require_chunk.__toESM(require("node:util"));
|
|
10
11
|
const node_tty = require_chunk.__toESM(require("node:tty"));
|
|
11
12
|
const node_perf_hooks = require_chunk.__toESM(require("node:perf_hooks"));
|
|
12
13
|
const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
|
|
13
|
-
const node_url = require_chunk.__toESM(require("node:url"));
|
|
14
14
|
|
|
15
15
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/core.mjs
|
|
16
16
|
const LogLevels = {
|
|
@@ -1618,10 +1618,10 @@ var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc
|
|
|
1618
1618
|
}
|
|
1619
1619
|
module.exports = _usingCtx, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1620
1620
|
} });
|
|
1621
|
-
var import_usingCtx = require_chunk.__toESM(require_usingCtx());
|
|
1622
1621
|
|
|
1623
1622
|
//#endregion
|
|
1624
1623
|
//#region src/cli/commands/bundle.ts
|
|
1624
|
+
var import_usingCtx = require_chunk.__toESM(require_usingCtx());
|
|
1625
1625
|
async function bundleWithConfig(configPath, cliOptions) {
|
|
1626
1626
|
if (cliOptions.watch) {
|
|
1627
1627
|
process.env.ROLLUP_WATCH = "true";
|
package/dist/cli.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { __commonJS, __esm, __toESM } from "./shared/chunk
|
|
2
|
-
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
4
|
-
import { arraify, init_misc } from "./shared/misc-
|
|
1
|
+
import { __commonJS, __esm, __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-TcTOaWt7.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-BXDjUzKF.mjs";
|
|
4
|
+
import { arraify, init_misc } from "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import path, { sep } from "node:path";
|
|
7
7
|
import colors from "ansis";
|
|
8
|
+
import { pathToFileURL } from "node:url";
|
|
8
9
|
import process$1, { cwd } from "node:process";
|
|
9
10
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
10
11
|
import * as tty from "node:tty";
|
|
11
12
|
import { performance } from "node:perf_hooks";
|
|
12
13
|
import { readdir } from "node:fs/promises";
|
|
13
|
-
import { pathToFileURL } from "node:url";
|
|
14
14
|
|
|
15
15
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/core.mjs
|
|
16
16
|
function isPlainObject$1(value) {
|
|
@@ -761,7 +761,7 @@ function createConsola(options$1 = {}) {
|
|
|
761
761
|
defaults: { level },
|
|
762
762
|
stdout: process.stdout,
|
|
763
763
|
stderr: process.stderr,
|
|
764
|
-
prompt: (...args) => import("./shared/prompt-
|
|
764
|
+
prompt: (...args) => import("./shared/prompt-AXtOIn-r.mjs").then((m) => m.prompt(...args)),
|
|
765
765
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
766
766
|
...options$1
|
|
767
767
|
});
|
|
@@ -1623,7 +1623,6 @@ var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runti
|
|
|
1623
1623
|
}
|
|
1624
1624
|
module.exports = _usingCtx, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1625
1625
|
} });
|
|
1626
|
-
var import_usingCtx = __toESM(require_usingCtx());
|
|
1627
1626
|
|
|
1628
1627
|
//#endregion
|
|
1629
1628
|
//#region src/cli/commands/bundle.ts
|
|
@@ -1789,7 +1788,7 @@ function relativeId(id) {
|
|
|
1789
1788
|
if (!path.isAbsolute(id)) return id;
|
|
1790
1789
|
return path.relative(path.resolve(), id);
|
|
1791
1790
|
}
|
|
1792
|
-
var numberFormatter, CHUNK_GROUPS;
|
|
1791
|
+
var import_usingCtx, numberFormatter, CHUNK_GROUPS;
|
|
1793
1792
|
var init_bundle = __esm({ "src/cli/commands/bundle.ts"() {
|
|
1794
1793
|
init_mjs();
|
|
1795
1794
|
init_rolldown();
|
|
@@ -1797,6 +1796,7 @@ var init_bundle = __esm({ "src/cli/commands/bundle.ts"() {
|
|
|
1797
1796
|
init_misc();
|
|
1798
1797
|
init_load_config();
|
|
1799
1798
|
init_logger();
|
|
1799
|
+
import_usingCtx = __toESM(require_usingCtx());
|
|
1800
1800
|
numberFormatter = new Intl.NumberFormat("en", {
|
|
1801
1801
|
maximumFractionDigits: 2,
|
|
1802
1802
|
minimumFractionDigits: 2
|
|
@@ -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-RTReWFUn.cjs');
|
|
4
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-C37DYnt2.cjs');
|
|
5
5
|
require('./shared/misc-BWx4LNta.cjs');
|
|
6
6
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
7
7
|
|
|
@@ -81,6 +81,10 @@ function transformPlugin(config) {
|
|
|
81
81
|
return new require_src.BuiltinPlugin("builtin:transform", config);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/experimental-index.ts
|
|
86
|
+
var import_binding = require_chunk.__toESM(require_parse_ast_index.require_binding());
|
|
87
|
+
|
|
84
88
|
//#endregion
|
|
85
89
|
exports.aliasPlugin = aliasPlugin
|
|
86
90
|
exports.buildImportAnalysisPlugin = require_src.buildImportAnalysisPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-
|
|
2
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/input-options.d-
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-Ddl7hcN3.cjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/input-options.d-DVmWlHE9.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-
|
|
2
|
-
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
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-Y-OUMnnv.mjs";
|
|
2
|
+
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-Dnzz-V9o.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./shared/
|
|
1
|
+
import { __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
+
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-TcTOaWt7.mjs";
|
|
3
|
+
import { require_binding } from "./shared/parse-ast-index-BXDjUzKF.mjs";
|
|
4
|
+
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
5
|
import { pathToFileURL } from "node:url";
|
|
5
6
|
|
|
6
7
|
//#region src/api/experimental.ts
|
|
@@ -87,6 +88,7 @@ function transformPlugin(config) {
|
|
|
87
88
|
|
|
88
89
|
//#endregion
|
|
89
90
|
//#region src/experimental-index.ts
|
|
91
|
+
var import_binding = __toESM(require_binding());
|
|
90
92
|
init_compose_js_plugins();
|
|
91
93
|
init_constructors();
|
|
92
94
|
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { withFilter } from "./shared/input-options.d-
|
|
1
|
+
import "./shared/binding.d-Ddl7hcN3.cjs";
|
|
2
|
+
import { withFilter } from "./shared/input-options.d-DVmWlHE9.cjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
5
5
|
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { withFilter } from "./shared/input-options.d
|
|
1
|
+
import "./shared/binding.d-Y-OUMnnv.mjs";
|
|
2
|
+
import { withFilter } from "./shared/input-options.d-Dnzz-V9o.mjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
5
5
|
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { arraify, init_misc, isPromiseLike } from "./shared/misc-
|
|
1
|
+
import { arraify, init_misc, isPromiseLike } from "./shared/misc-DGAe2XOW.mjs";
|
|
2
2
|
import { and, code, exclude, id, include, moduleType, not, or } from "@rolldown/pluginutils";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/with-filter.ts
|
package/dist/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-RTReWFUn.cjs');
|
|
2
|
+
require('./shared/parse-ast-index-C37DYnt2.cjs');
|
|
3
3
|
require('./shared/misc-BWx4LNta.cjs');
|
|
4
4
|
|
|
5
5
|
exports.VERSION = require_src.VERSION
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding.d-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/input-options.d-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding.d-Ddl7hcN3.cjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/input-options.d-DVmWlHE9.cjs";
|
|
3
3
|
|
|
4
4
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding.d-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/input-options.d
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding.d-Y-OUMnnv.mjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/input-options.d-Dnzz-V9o.mjs";
|
|
3
3
|
|
|
4
4
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
3
|
-
import "./shared/misc-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-TcTOaWt7.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-BXDjUzKF.mjs";
|
|
3
|
+
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
4
|
|
|
5
5
|
init_src();
|
|
6
6
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
const require_parse_ast_index = require('./shared/parse-ast-index-
|
|
2
|
+
const require_src = require('./shared/src-RTReWFUn.cjs');
|
|
3
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-C37DYnt2.cjs');
|
|
4
4
|
require('./shared/misc-BWx4LNta.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
|
8
|
+
var import_binding = require_chunk.__toESM(require_parse_ast_index.require_binding());
|
|
8
9
|
const { registryId, pluginInfos, threadNumber } = node_worker_threads.workerData;
|
|
9
10
|
(async () => {
|
|
10
11
|
try {
|
|
@@ -28,7 +29,7 @@ const { registryId, pluginInfos, threadNumber } = node_worker_threads.workerData
|
|
|
28
29
|
)
|
|
29
30
|
};
|
|
30
31
|
}));
|
|
31
|
-
(0,
|
|
32
|
+
(0, import_binding.registerPlugins)(registryId, plugins);
|
|
32
33
|
node_worker_threads.parentPort.postMessage({ type: "success" });
|
|
33
34
|
} catch (error) {
|
|
34
35
|
node_worker_threads.parentPort.postMessage({
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { __commonJS } from "./shared/chunk
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
3
|
-
import {
|
|
4
|
-
import "./shared/misc-
|
|
1
|
+
import { __commonJS, __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-TcTOaWt7.mjs";
|
|
3
|
+
import { require_binding } from "./shared/parse-ast-index-BXDjUzKF.mjs";
|
|
4
|
+
import "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
|
8
8
|
var require_parallel_plugin_worker = __commonJS({ "src/parallel-plugin-worker.ts"() {
|
|
9
|
+
var import_binding = __toESM(require_binding());
|
|
9
10
|
init_bindingify_plugin();
|
|
10
11
|
init_plugin_context_data();
|
|
11
12
|
const { registryId, pluginInfos, threadNumber } = workerData;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/input-options.d-
|
|
1
|
+
import "./shared/binding.d-Ddl7hcN3.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/input-options.d-DVmWlHE9.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/input-options.d
|
|
1
|
+
import "./shared/binding.d-Y-OUMnnv.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/input-options.d-Dnzz-V9o.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
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-C37DYnt2.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-BXDjUzKF.mjs";
|
|
2
2
|
|
|
3
3
|
init_parse_ast_index();
|
|
4
4
|
export { parseAst, parseAstAsync };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-
|
|
1
|
+
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-Ddl7hcN3.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-
|
|
1
|
+
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-Y-OUMnnv.mjs";
|
|
2
2
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
3
3
|
import { Program } from "@oxc-project/types";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __commonJS, __esm, __require, __toESM } from "./chunk
|
|
1
|
+
import { __commonJS, __esm, __require, __toESM } from "./chunk--iN_1bjD.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/webcontainer-fallback.js
|
|
4
4
|
var require_webcontainer_fallback = __commonJS({ "src/webcontainer-fallback.js"(exports, module) {
|
|
@@ -370,7 +370,6 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
370
370
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
371
371
|
module.exports.transform = nativeBinding.transform;
|
|
372
372
|
} });
|
|
373
|
-
var import_binding = __toESM(require_binding());
|
|
374
373
|
|
|
375
374
|
//#endregion
|
|
376
375
|
//#region src/utils/code-frame.ts
|
|
@@ -636,8 +635,9 @@ async function parseAstAsync(sourceText, options, filename) {
|
|
|
636
635
|
...options
|
|
637
636
|
}), sourceText);
|
|
638
637
|
}
|
|
639
|
-
var defaultParserOptions;
|
|
638
|
+
var import_binding, defaultParserOptions;
|
|
640
639
|
var init_parse_ast_index = __esm({ "src/parse-ast-index.ts"() {
|
|
640
|
+
import_binding = __toESM(require_binding());
|
|
641
641
|
init_locate_character();
|
|
642
642
|
init_logs();
|
|
643
643
|
init_code_frame();
|
|
@@ -649,4 +649,4 @@ var init_parse_ast_index = __esm({ "src/parse-ast-index.ts"() {
|
|
|
649
649
|
} });
|
|
650
650
|
|
|
651
651
|
//#endregion
|
|
652
|
-
export { augmentCodeLocation, error,
|
|
652
|
+
export { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, parseAstAsync, require_binding };
|
|
@@ -370,7 +370,6 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
370
370
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
371
371
|
module.exports.transform = nativeBinding.transform;
|
|
372
372
|
} });
|
|
373
|
-
var import_binding = require_chunk.__toESM(require_binding());
|
|
374
373
|
|
|
375
374
|
//#endregion
|
|
376
375
|
//#region src/utils/code-frame.ts
|
|
@@ -593,6 +592,7 @@ function transform(key, value) {
|
|
|
593
592
|
|
|
594
593
|
//#endregion
|
|
595
594
|
//#region src/parse-ast-index.ts
|
|
595
|
+
var import_binding = require_chunk.__toESM(require_binding());
|
|
596
596
|
function wrap(result, sourceText) {
|
|
597
597
|
result = wrap$1(result);
|
|
598
598
|
if (result.errors.length > 0) return normalizeParseError(sourceText, result.errors);
|
|
@@ -644,12 +644,6 @@ Object.defineProperty(exports, 'error', {
|
|
|
644
644
|
return error;
|
|
645
645
|
}
|
|
646
646
|
});
|
|
647
|
-
Object.defineProperty(exports, 'import_binding', {
|
|
648
|
-
enumerable: true,
|
|
649
|
-
get: function () {
|
|
650
|
-
return import_binding;
|
|
651
|
-
}
|
|
652
|
-
});
|
|
653
647
|
Object.defineProperty(exports, 'logCycleLoading', {
|
|
654
648
|
enumerable: true,
|
|
655
649
|
get: function () {
|
|
@@ -691,4 +685,10 @@ Object.defineProperty(exports, 'parseAstAsync', {
|
|
|
691
685
|
get: function () {
|
|
692
686
|
return parseAstAsync;
|
|
693
687
|
}
|
|
688
|
+
});
|
|
689
|
+
Object.defineProperty(exports, 'require_binding', {
|
|
690
|
+
enumerable: true,
|
|
691
|
+
get: function () {
|
|
692
|
+
return require_binding;
|
|
693
|
+
}
|
|
694
694
|
});
|
|
@@ -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-C37DYnt2.cjs');
|
|
4
4
|
const require_misc = require('./misc-BWx4LNta.cjs');
|
|
5
5
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
6
6
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
@@ -9,13 +9,14 @@ 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.56abf23";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/builtin-plugin/utils.ts
|
|
17
|
+
var import_binding$6 = require_chunk.__toESM(require_parse_ast_index.require_binding());
|
|
17
18
|
function makeBuiltinPluginCallable(plugin) {
|
|
18
|
-
let callablePlugin = new
|
|
19
|
+
let callablePlugin = new import_binding$6.BindingCallableBuiltinPlugin(bindingifyBuiltInPlugin(plugin));
|
|
19
20
|
const wrappedPlugin = plugin;
|
|
20
21
|
for (const key in callablePlugin) wrappedPlugin[key] = function(...args$1) {
|
|
21
22
|
return callablePlugin[key](...args$1);
|
|
@@ -2201,11 +2202,12 @@ function transformModuleInfo(info, option) {
|
|
|
2201
2202
|
|
|
2202
2203
|
//#endregion
|
|
2203
2204
|
//#region src/utils/transform-side-effects.ts
|
|
2205
|
+
var import_binding$5 = require_chunk.__toESM(require_parse_ast_index.require_binding());
|
|
2204
2206
|
function bindingifySideEffects(sideEffects) {
|
|
2205
2207
|
switch (sideEffects) {
|
|
2206
|
-
case true: return
|
|
2207
|
-
case false: return
|
|
2208
|
-
case "no-treeshake": return
|
|
2208
|
+
case true: return import_binding$5.BindingHookSideEffects.True;
|
|
2209
|
+
case false: return import_binding$5.BindingHookSideEffects.False;
|
|
2210
|
+
case "no-treeshake": return import_binding$5.BindingHookSideEffects.NoTreeshake;
|
|
2209
2211
|
case null:
|
|
2210
2212
|
case void 0: return void 0;
|
|
2211
2213
|
default: throw new Error(`Unexpected side effects: ${sideEffects}`);
|
|
@@ -2394,13 +2396,14 @@ function bindingifyRenderChunkFilter(filterOption) {
|
|
|
2394
2396
|
|
|
2395
2397
|
//#endregion
|
|
2396
2398
|
//#region src/plugin/bindingify-plugin-hook-meta.ts
|
|
2399
|
+
var import_binding$4 = require_chunk.__toESM(require_parse_ast_index.require_binding());
|
|
2397
2400
|
function bindingifyPluginHookMeta(options) {
|
|
2398
2401
|
return { order: bindingPluginOrder(options.order) };
|
|
2399
2402
|
}
|
|
2400
2403
|
function bindingPluginOrder(order) {
|
|
2401
2404
|
switch (order) {
|
|
2402
|
-
case "post": return
|
|
2403
|
-
case "pre": return
|
|
2405
|
+
case "post": return import_binding$4.BindingPluginOrder.Post;
|
|
2406
|
+
case "pre": return import_binding$4.BindingPluginOrder.Pre;
|
|
2404
2407
|
case null:
|
|
2405
2408
|
case void 0: return void 0;
|
|
2406
2409
|
default: throw new Error(`Unknown plugin order: ${order}`);
|
|
@@ -3552,6 +3555,7 @@ function isReadonlyArray(input) {
|
|
|
3552
3555
|
|
|
3553
3556
|
//#endregion
|
|
3554
3557
|
//#region src/utils/bindingify-input-options.ts
|
|
3558
|
+
var import_binding$3 = require_chunk.__toESM(require_parse_ast_index.require_binding());
|
|
3555
3559
|
function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
3556
3560
|
const pluginContextData = new PluginContextData();
|
|
3557
3561
|
const plugins = rawPlugins.map((plugin) => {
|
|
@@ -3664,10 +3668,10 @@ function bindingifyInject(inject) {
|
|
|
3664
3668
|
}
|
|
3665
3669
|
function bindingifyLogLevel(logLevel) {
|
|
3666
3670
|
switch (logLevel) {
|
|
3667
|
-
case "silent": return
|
|
3668
|
-
case "debug": return
|
|
3669
|
-
case "warn": return
|
|
3670
|
-
case "info": return
|
|
3671
|
+
case "silent": return import_binding$3.BindingLogLevel.Silent;
|
|
3672
|
+
case "debug": return import_binding$3.BindingLogLevel.Debug;
|
|
3673
|
+
case "warn": return import_binding$3.BindingLogLevel.Warn;
|
|
3674
|
+
case "info": return import_binding$3.BindingLogLevel.Info;
|
|
3671
3675
|
default: throw new Error(`Unexpected log level: ${logLevel}`);
|
|
3672
3676
|
}
|
|
3673
3677
|
}
|
|
@@ -4059,6 +4063,7 @@ function composeJsPlugins(plugins) {
|
|
|
4059
4063
|
|
|
4060
4064
|
//#endregion
|
|
4061
4065
|
//#region src/utils/initialize-parallel-plugins.ts
|
|
4066
|
+
var import_binding$2 = require_chunk.__toESM(require_parse_ast_index.require_binding());
|
|
4062
4067
|
async function initializeParallelPlugins(plugins) {
|
|
4063
4068
|
const pluginInfos = [];
|
|
4064
4069
|
for (const [index, plugin] of plugins.entries()) if ("_parallel" in plugin) {
|
|
@@ -4071,7 +4076,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
4071
4076
|
}
|
|
4072
4077
|
if (pluginInfos.length <= 0) return void 0;
|
|
4073
4078
|
const count = Math.min((0, node_os.availableParallelism)(), 8);
|
|
4074
|
-
const parallelJsPluginRegistry = new
|
|
4079
|
+
const parallelJsPluginRegistry = new import_binding$2.ParallelJsPluginRegistry(count);
|
|
4075
4080
|
const registryId = parallelJsPluginRegistry.id;
|
|
4076
4081
|
const workers = await initializeWorkers(registryId, count, pluginInfos);
|
|
4077
4082
|
const stopWorkers = async () => {
|
|
@@ -4142,16 +4147,17 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, isCl
|
|
|
4142
4147
|
|
|
4143
4148
|
//#endregion
|
|
4144
4149
|
//#region src/utils/create-bundler.ts
|
|
4150
|
+
var import_binding$1 = require_chunk.__toESM(require_parse_ast_index.require_binding());
|
|
4145
4151
|
let asyncRuntimeShutdown = false;
|
|
4146
4152
|
async function createBundler(inputOptions, outputOptions, isClose) {
|
|
4147
4153
|
const option = await createBundlerOptions(inputOptions, outputOptions, false, isClose);
|
|
4148
|
-
if (asyncRuntimeShutdown) (0,
|
|
4154
|
+
if (asyncRuntimeShutdown) (0, import_binding$1.startAsyncRuntime)();
|
|
4149
4155
|
try {
|
|
4150
4156
|
return {
|
|
4151
|
-
bundler: new
|
|
4157
|
+
bundler: new import_binding$1.Bundler(option.bundlerOptions),
|
|
4152
4158
|
stopWorkers: option.stopWorkers,
|
|
4153
4159
|
shutdown: () => {
|
|
4154
|
-
(0,
|
|
4160
|
+
(0, import_binding$1.shutdownAsyncRuntime)();
|
|
4155
4161
|
asyncRuntimeShutdown = true;
|
|
4156
4162
|
}
|
|
4157
4163
|
};
|
|
@@ -4309,6 +4315,7 @@ var WatcherEmitter = class {
|
|
|
4309
4315
|
|
|
4310
4316
|
//#endregion
|
|
4311
4317
|
//#region src/api/watch/watcher.ts
|
|
4318
|
+
var import_binding = require_chunk.__toESM(require_parse_ast_index.require_binding());
|
|
4312
4319
|
var Watcher = class {
|
|
4313
4320
|
closed;
|
|
4314
4321
|
inner;
|
|
@@ -4330,7 +4337,7 @@ var Watcher = class {
|
|
|
4330
4337
|
this.closed = true;
|
|
4331
4338
|
for (const stop of this.stopWorkers) await stop?.();
|
|
4332
4339
|
await this.inner.close();
|
|
4333
|
-
(0,
|
|
4340
|
+
(0, import_binding.shutdownAsyncRuntime)();
|
|
4334
4341
|
}
|
|
4335
4342
|
start() {
|
|
4336
4343
|
process.nextTick(() => this.inner.start(this.emitter.onEvent.bind(this.emitter)));
|
|
@@ -4343,7 +4350,7 @@ async function createWatcher(emitter, input) {
|
|
|
4343
4350
|
return createBundlerOptions(inputOptions, output, true);
|
|
4344
4351
|
})).flat());
|
|
4345
4352
|
const notifyOptions = getValidNotifyOption(bundlerOptions);
|
|
4346
|
-
const bindingWatcher = new
|
|
4353
|
+
const bindingWatcher = new import_binding.BindingWatcher(bundlerOptions.map((option) => option.bundlerOptions), notifyOptions);
|
|
4347
4354
|
const watcher = new Watcher(emitter, bindingWatcher, bundlerOptions.map((option) => option.stopWorkers));
|
|
4348
4355
|
watcher.start();
|
|
4349
4356
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __esm } from "./chunk
|
|
2
|
-
import { augmentCodeLocation, error,
|
|
3
|
-
import { arraify, init_misc, isNullish, noop, unimplemented, unreachable, unsupported } from "./misc-
|
|
1
|
+
import { __esm, __toESM } from "./chunk--iN_1bjD.mjs";
|
|
2
|
+
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, require_binding } from "./parse-ast-index-BXDjUzKF.mjs";
|
|
3
|
+
import { arraify, init_misc, isNullish, noop, unimplemented, unreachable, unsupported } from "./misc-DGAe2XOW.mjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import colors from "ansis";
|
|
6
6
|
import * as filter from "@rolldown/pluginutils";
|
|
@@ -8,13 +8,13 @@ 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.56abf23";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/builtin-plugin/utils.ts
|
|
16
16
|
function makeBuiltinPluginCallable(plugin) {
|
|
17
|
-
let callablePlugin = new import_binding.BindingCallableBuiltinPlugin(bindingifyBuiltInPlugin(plugin));
|
|
17
|
+
let callablePlugin = new import_binding$6.BindingCallableBuiltinPlugin(bindingifyBuiltInPlugin(plugin));
|
|
18
18
|
const wrappedPlugin = plugin;
|
|
19
19
|
for (const key in callablePlugin) wrappedPlugin[key] = function(...args$1) {
|
|
20
20
|
return callablePlugin[key](...args$1);
|
|
@@ -27,7 +27,10 @@ function bindingifyBuiltInPlugin(plugin) {
|
|
|
27
27
|
options: plugin._options
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var import_binding$6;
|
|
31
|
+
var init_utils = __esm({ "src/builtin-plugin/utils.ts"() {
|
|
32
|
+
import_binding$6 = __toESM(require_binding());
|
|
33
|
+
} });
|
|
31
34
|
|
|
32
35
|
//#endregion
|
|
33
36
|
//#region src/builtin-plugin/constructors.ts
|
|
@@ -2258,15 +2261,18 @@ var init_transform_module_info = __esm({ "src/utils/transform-module-info.ts"()
|
|
|
2258
2261
|
//#region src/utils/transform-side-effects.ts
|
|
2259
2262
|
function bindingifySideEffects(sideEffects) {
|
|
2260
2263
|
switch (sideEffects) {
|
|
2261
|
-
case true: return import_binding.BindingHookSideEffects.True;
|
|
2262
|
-
case false: return import_binding.BindingHookSideEffects.False;
|
|
2263
|
-
case "no-treeshake": return import_binding.BindingHookSideEffects.NoTreeshake;
|
|
2264
|
+
case true: return import_binding$5.BindingHookSideEffects.True;
|
|
2265
|
+
case false: return import_binding$5.BindingHookSideEffects.False;
|
|
2266
|
+
case "no-treeshake": return import_binding$5.BindingHookSideEffects.NoTreeshake;
|
|
2264
2267
|
case null:
|
|
2265
2268
|
case void 0: return void 0;
|
|
2266
2269
|
default: throw new Error(`Unexpected side effects: ${sideEffects}`);
|
|
2267
2270
|
}
|
|
2268
2271
|
}
|
|
2269
|
-
var
|
|
2272
|
+
var import_binding$5;
|
|
2273
|
+
var init_transform_side_effects = __esm({ "src/utils/transform-side-effects.ts"() {
|
|
2274
|
+
import_binding$5 = __toESM(require_binding());
|
|
2275
|
+
} });
|
|
2270
2276
|
|
|
2271
2277
|
//#endregion
|
|
2272
2278
|
//#region src/utils/transform-sourcemap.ts
|
|
@@ -3634,14 +3640,17 @@ function bindingifyPluginHookMeta(options) {
|
|
|
3634
3640
|
}
|
|
3635
3641
|
function bindingPluginOrder(order) {
|
|
3636
3642
|
switch (order) {
|
|
3637
|
-
case "post": return import_binding.BindingPluginOrder.Post;
|
|
3638
|
-
case "pre": return import_binding.BindingPluginOrder.Pre;
|
|
3643
|
+
case "post": return import_binding$4.BindingPluginOrder.Post;
|
|
3644
|
+
case "pre": return import_binding$4.BindingPluginOrder.Pre;
|
|
3639
3645
|
case null:
|
|
3640
3646
|
case void 0: return void 0;
|
|
3641
3647
|
default: throw new Error(`Unknown plugin order: ${order}`);
|
|
3642
3648
|
}
|
|
3643
3649
|
}
|
|
3644
|
-
var
|
|
3650
|
+
var import_binding$4;
|
|
3651
|
+
var init_bindingify_plugin_hook_meta = __esm({ "src/plugin/bindingify-plugin-hook-meta.ts"() {
|
|
3652
|
+
import_binding$4 = __toESM(require_binding());
|
|
3653
|
+
} });
|
|
3645
3654
|
|
|
3646
3655
|
//#endregion
|
|
3647
3656
|
//#region src/utils/asset-source.ts
|
|
@@ -4982,10 +4991,10 @@ function bindingifyInject(inject) {
|
|
|
4982
4991
|
}
|
|
4983
4992
|
function bindingifyLogLevel(logLevel) {
|
|
4984
4993
|
switch (logLevel) {
|
|
4985
|
-
case "silent": return import_binding.BindingLogLevel.Silent;
|
|
4986
|
-
case "debug": return import_binding.BindingLogLevel.Debug;
|
|
4987
|
-
case "warn": return import_binding.BindingLogLevel.Warn;
|
|
4988
|
-
case "info": return import_binding.BindingLogLevel.Info;
|
|
4994
|
+
case "silent": return import_binding$3.BindingLogLevel.Silent;
|
|
4995
|
+
case "debug": return import_binding$3.BindingLogLevel.Debug;
|
|
4996
|
+
case "warn": return import_binding$3.BindingLogLevel.Warn;
|
|
4997
|
+
case "info": return import_binding$3.BindingLogLevel.Info;
|
|
4989
4998
|
default: throw new Error(`Unexpected log level: ${logLevel}`);
|
|
4990
4999
|
}
|
|
4991
5000
|
}
|
|
@@ -5057,7 +5066,9 @@ function bindingifyMakeAbsoluteExternalsRelative(makeAbsoluteExternalsRelative)
|
|
|
5057
5066
|
field0: makeAbsoluteExternalsRelative
|
|
5058
5067
|
};
|
|
5059
5068
|
}
|
|
5069
|
+
var import_binding$3;
|
|
5060
5070
|
var init_bindingify_input_options = __esm({ "src/utils/bindingify-input-options.ts"() {
|
|
5071
|
+
import_binding$3 = __toESM(require_binding());
|
|
5061
5072
|
init_constructors();
|
|
5062
5073
|
init_utils();
|
|
5063
5074
|
init_bindingify_plugin();
|
|
@@ -5411,7 +5422,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
5411
5422
|
}
|
|
5412
5423
|
if (pluginInfos.length <= 0) return void 0;
|
|
5413
5424
|
const count = Math.min(availableParallelism(), 8);
|
|
5414
|
-
const parallelJsPluginRegistry = new import_binding.ParallelJsPluginRegistry(count);
|
|
5425
|
+
const parallelJsPluginRegistry = new import_binding$2.ParallelJsPluginRegistry(count);
|
|
5415
5426
|
const registryId = parallelJsPluginRegistry.id;
|
|
5416
5427
|
const workers = await initializeWorkers(registryId, count, pluginInfos);
|
|
5417
5428
|
const stopWorkers = async () => {
|
|
@@ -5448,7 +5459,10 @@ async function initializeWorker(registryId, pluginInfos, threadNumber) {
|
|
|
5448
5459
|
throw e$5;
|
|
5449
5460
|
}
|
|
5450
5461
|
}
|
|
5451
|
-
var
|
|
5462
|
+
var import_binding$2;
|
|
5463
|
+
var init_initialize_parallel_plugins = __esm({ "src/utils/initialize-parallel-plugins.ts"() {
|
|
5464
|
+
import_binding$2 = __toESM(require_binding());
|
|
5465
|
+
} });
|
|
5452
5466
|
|
|
5453
5467
|
//#endregion
|
|
5454
5468
|
//#region src/utils/create-bundler-option.ts
|
|
@@ -5495,13 +5509,13 @@ var init_create_bundler_option = __esm({ "src/utils/create-bundler-option.ts"()
|
|
|
5495
5509
|
//#region src/utils/create-bundler.ts
|
|
5496
5510
|
async function createBundler(inputOptions, outputOptions, isClose) {
|
|
5497
5511
|
const option = await createBundlerOptions(inputOptions, outputOptions, false, isClose);
|
|
5498
|
-
if (asyncRuntimeShutdown) (0, import_binding.startAsyncRuntime)();
|
|
5512
|
+
if (asyncRuntimeShutdown) (0, import_binding$1.startAsyncRuntime)();
|
|
5499
5513
|
try {
|
|
5500
5514
|
return {
|
|
5501
|
-
bundler: new import_binding.Bundler(option.bundlerOptions),
|
|
5515
|
+
bundler: new import_binding$1.Bundler(option.bundlerOptions),
|
|
5502
5516
|
stopWorkers: option.stopWorkers,
|
|
5503
5517
|
shutdown: () => {
|
|
5504
|
-
(0, import_binding.shutdownAsyncRuntime)();
|
|
5518
|
+
(0, import_binding$1.shutdownAsyncRuntime)();
|
|
5505
5519
|
asyncRuntimeShutdown = true;
|
|
5506
5520
|
}
|
|
5507
5521
|
};
|
|
@@ -5510,8 +5524,9 @@ async function createBundler(inputOptions, outputOptions, isClose) {
|
|
|
5510
5524
|
throw e$5;
|
|
5511
5525
|
}
|
|
5512
5526
|
}
|
|
5513
|
-
var asyncRuntimeShutdown;
|
|
5527
|
+
var import_binding$1, asyncRuntimeShutdown;
|
|
5514
5528
|
var init_create_bundler = __esm({ "src/utils/create-bundler.ts"() {
|
|
5529
|
+
import_binding$1 = __toESM(require_binding());
|
|
5515
5530
|
init_create_bundler_option();
|
|
5516
5531
|
asyncRuntimeShutdown = false;
|
|
5517
5532
|
} });
|
|
@@ -5704,8 +5719,9 @@ function getValidNotifyOption(bundlerOptions) {
|
|
|
5704
5719
|
} else result = notifyOption;
|
|
5705
5720
|
}
|
|
5706
5721
|
}
|
|
5707
|
-
var Watcher;
|
|
5722
|
+
var import_binding, Watcher;
|
|
5708
5723
|
var init_watcher = __esm({ "src/api/watch/watcher.ts"() {
|
|
5724
|
+
import_binding = __toESM(require_binding());
|
|
5709
5725
|
init_logging();
|
|
5710
5726
|
init_logs();
|
|
5711
5727
|
init_plugin_driver();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.8-commit.
|
|
3
|
+
"version": "1.0.0-beta.8-commit.56abf23",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"@oxc-project/types": "0.68.1",
|
|
90
|
-
"ansis": "^
|
|
91
|
-
"@rolldown/pluginutils": "1.0.0-beta.8"
|
|
90
|
+
"ansis": "^4.0.0",
|
|
91
|
+
"@rolldown/pluginutils": "1.0.0-beta.8-commit.56abf23"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"@oxc-project/runtime": "0.68.1"
|
|
@@ -102,7 +102,6 @@
|
|
|
102
102
|
"@napi-rs/cli": "^3.0.0-alpha.77",
|
|
103
103
|
"@napi-rs/wasm-runtime": "^0.2.4",
|
|
104
104
|
"@oxc-node/cli": "^0.0.25",
|
|
105
|
-
"@oxc-node/core": "^0.0.25",
|
|
106
105
|
"@types/fs-extra": "^11.0.4",
|
|
107
106
|
"@types/lodash-es": "^4.17.12",
|
|
108
107
|
"@valibot/to-json-schema": "1.0.0",
|
|
@@ -125,21 +124,21 @@
|
|
|
125
124
|
"unbuild": "^3.0.0",
|
|
126
125
|
"valibot": "1.0.0",
|
|
127
126
|
"@rolldown/testing": "0.0.1",
|
|
128
|
-
"rolldown": "1.0.0-beta.8-commit.
|
|
127
|
+
"rolldown": "1.0.0-beta.8-commit.56abf23"
|
|
129
128
|
},
|
|
130
129
|
"optionalDependencies": {
|
|
131
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.
|
|
132
|
-
"@rolldown/binding-
|
|
133
|
-
"@rolldown/binding-
|
|
134
|
-
"@rolldown/binding-linux-
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-linux-arm64-
|
|
137
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.
|
|
138
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.
|
|
139
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.
|
|
140
|
-
"@rolldown/binding-win32-
|
|
141
|
-
"@rolldown/binding-win32-
|
|
142
|
-
"@rolldown/binding-win32-
|
|
130
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.56abf23",
|
|
131
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.56abf23",
|
|
132
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.8-commit.56abf23",
|
|
133
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8-commit.56abf23",
|
|
134
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8-commit.56abf23",
|
|
135
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8-commit.56abf23",
|
|
136
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.56abf23",
|
|
137
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.56abf23",
|
|
138
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.56abf23",
|
|
139
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8-commit.56abf23",
|
|
140
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8-commit.56abf23",
|
|
141
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8-commit.56abf23"
|
|
143
142
|
},
|
|
144
143
|
"scripts": {
|
|
145
144
|
"# Scrips for binding #": "_",
|