rolldown 1.0.0-beta.26-commit.ce29359 → 1.0.0-beta.26-commit.e5d5666
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 +5 -5
- package/dist/cli.mjs +5 -5
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.cjs +2 -2
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +2 -2
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +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/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-B9-3a5q4.d.cts → binding-CCU51T2Z.d.mts} +88 -4
- package/dist/shared/{binding-DQYRWAqj.d.mts → binding-Drc5ua4y.d.cts} +88 -4
- package/dist/shared/{define-config-DM79zlkB.d.mts → define-config-BBCw1iOI.d.mts} +1 -1
- package/dist/shared/{define-config-ZN70csxk.d.cts → define-config-DarysRyQ.d.cts} +1 -1
- package/dist/shared/{load-config-D8t8T2S6.cjs → load-config-Dp-R8Iym.cjs} +1 -1
- package/dist/shared/{load-config-ZtaTdLkw.mjs → load-config-EbFxDNBo.mjs} +1 -1
- package/dist/shared/{parse-ast-index-BZPHquvf.cjs → parse-ast-index-CBA_AByf.cjs} +35 -1
- package/dist/shared/{parse-ast-index-BztFsVUE.mjs → parse-ast-index-Cn1hXCrA.mjs} +35 -1
- package/dist/shared/{src-9mERiEFk.cjs → src-CgDG0Z3M.cjs} +2 -2
- package/dist/shared/{src-DYOyzZCA.mjs → src-D2xY0HpX.mjs} +2 -2
- package/package.json +22 -20
package/dist/cli.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
2
|
+
const require_src = require('./shared/src-CgDG0Z3M.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-CBA_AByf.cjs');
|
|
4
4
|
const require_misc = require('./shared/misc-DksvspN4.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-Dp-R8Iym.cjs');
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
8
8
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
@@ -1424,8 +1424,8 @@ const process$2 = globalThis.process;
|
|
|
1424
1424
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
1425
1425
|
|
|
1426
1426
|
//#endregion
|
|
1427
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1428
|
-
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1427
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.77.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1428
|
+
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1429
1429
|
function _usingCtx() {
|
|
1430
1430
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1431
1431
|
var n$2 = Error();
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { __commonJS, __toESM } from "./shared/parse-ast-index-
|
|
2
|
-
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
1
|
+
import { __commonJS, __toESM } from "./shared/parse-ast-index-Cn1hXCrA.mjs";
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-D2xY0HpX.mjs";
|
|
3
3
|
import { arraify } from "./shared/misc-CQeo-AFx.mjs";
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
4
|
+
import { loadConfig } from "./shared/load-config-EbFxDNBo.mjs";
|
|
5
5
|
import path, { sep } from "node:path";
|
|
6
6
|
import colors from "ansis";
|
|
7
7
|
import process$1 from "node:process";
|
|
@@ -1423,8 +1423,8 @@ const process$2 = globalThis.process;
|
|
|
1423
1423
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
1424
1424
|
|
|
1425
1425
|
//#endregion
|
|
1426
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1427
|
-
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1426
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.77.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1427
|
+
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1428
1428
|
function _usingCtx() {
|
|
1429
1429
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1430
1430
|
var n$2 = Error();
|
package/dist/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
2
|
-
require('./shared/parse-ast-index-
|
|
1
|
+
const require_src = require('./shared/src-CgDG0Z3M.cjs');
|
|
2
|
+
require('./shared/parse-ast-index-CBA_AByf.cjs');
|
|
3
3
|
require('./shared/misc-DksvspN4.cjs');
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
4
|
+
const require_load_config = require('./shared/load-config-Dp-R8Iym.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = require_src.version;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-Drc5ua4y.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-DarysRyQ.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-CCU51T2Z.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-BBCw1iOI.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./shared/parse-ast-index-
|
|
2
|
-
import { defineConfig, version } from "./shared/src-
|
|
1
|
+
import "./shared/parse-ast-index-Cn1hXCrA.mjs";
|
|
2
|
+
import { defineConfig, version } from "./shared/src-D2xY0HpX.mjs";
|
|
3
3
|
import "./shared/misc-CQeo-AFx.mjs";
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
4
|
+
import { loadConfig } from "./shared/load-config-EbFxDNBo.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = version;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.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-CgDG0Z3M.cjs');
|
|
3
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-CBA_AByf.cjs');
|
|
4
4
|
require('./shared/misc-DksvspN4.cjs');
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-
|
|
2
|
-
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-Drc5ua4y.cjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-DarysRyQ.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-
|
|
2
|
-
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-CCU51T2Z.mjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-BBCw1iOI.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/parse-ast-index-
|
|
2
|
-
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-
|
|
1
|
+
import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/parse-ast-index-Cn1hXCrA.mjs";
|
|
2
|
+
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-D2xY0HpX.mjs";
|
|
3
3
|
import "./shared/misc-CQeo-AFx.mjs";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-Drc5ua4y.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-DarysRyQ.cjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-CCU51T2Z.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-BBCw1iOI.mjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
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-CgDG0Z3M.cjs');
|
|
2
|
+
require('./shared/parse-ast-index-CBA_AByf.cjs');
|
|
3
3
|
require('./shared/misc-DksvspN4.cjs');
|
|
4
4
|
|
|
5
5
|
exports.VERSION = require_src.VERSION;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, 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/define-config-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding-Drc5ua4y.cjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, 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/define-config-DarysRyQ.cjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, 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,3 +1,3 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, 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/define-config-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding-CCU51T2Z.mjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, 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/define-config-BBCw1iOI.mjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, 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,5 +1,5 @@
|
|
|
1
|
-
import "./shared/parse-ast-index-
|
|
2
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-
|
|
1
|
+
import "./shared/parse-ast-index-Cn1hXCrA.mjs";
|
|
2
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-D2xY0HpX.mjs";
|
|
3
3
|
import "./shared/misc-CQeo-AFx.mjs";
|
|
4
4
|
|
|
5
5
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.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-CgDG0Z3M.cjs');
|
|
3
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-CBA_AByf.cjs');
|
|
4
4
|
require('./shared/misc-DksvspN4.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerPlugins } from "./shared/parse-ast-index-
|
|
2
|
-
import { PluginContextData, bindingifyPlugin } from "./shared/src-
|
|
1
|
+
import { registerPlugins } from "./shared/parse-ast-index-Cn1hXCrA.mjs";
|
|
2
|
+
import { PluginContextData, bindingifyPlugin } from "./shared/src-D2xY0HpX.mjs";
|
|
3
3
|
import "./shared/misc-CQeo-AFx.mjs";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-Drc5ua4y.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-DarysRyQ.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-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-CCU51T2Z.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-BBCw1iOI.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-CBA_AByf.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
|
@@ -105,8 +105,8 @@ type ImportNameKind = /** `import { x } from "mod"` */
|
|
|
105
105
|
*/
|
|
106
106
|
|
|
107
107
|
interface ParserOptions {
|
|
108
|
-
/** Treat the source text as `js`, `jsx`, `ts`, or `
|
|
109
|
-
lang?: 'js' | 'jsx' | 'ts' | 'tsx';
|
|
108
|
+
/** Treat the source text as `js`, `jsx`, `ts`, `tsx` or `dts`. */
|
|
109
|
+
lang?: 'js' | 'jsx' | 'ts' | 'tsx' | 'dts';
|
|
110
110
|
/** Treat the source text as `script` or `module` code. */
|
|
111
111
|
sourceType?: 'script' | 'module' | 'unambiguous' | undefined;
|
|
112
112
|
/**
|
|
@@ -769,6 +769,9 @@ interface ModuleRunnerTransformResult {
|
|
|
769
769
|
*/
|
|
770
770
|
errors: Array<OxcError>;
|
|
771
771
|
}
|
|
772
|
+
interface PluginsOptions {
|
|
773
|
+
styledComponents?: StyledComponentsOptions;
|
|
774
|
+
}
|
|
772
775
|
interface ReactRefreshOptions {
|
|
773
776
|
/**
|
|
774
777
|
* Specify the identifier of the refresh registration variable.
|
|
@@ -785,6 +788,85 @@ interface ReactRefreshOptions {
|
|
|
785
788
|
emitFullSignatures?: boolean;
|
|
786
789
|
}
|
|
787
790
|
|
|
791
|
+
/**
|
|
792
|
+
* Configure how styled-components are transformed.
|
|
793
|
+
*
|
|
794
|
+
* @see {@link https://styled-components.com/docs/tooling#babel-plugin}
|
|
795
|
+
*/
|
|
796
|
+
interface StyledComponentsOptions {
|
|
797
|
+
/**
|
|
798
|
+
* Enhances the attached CSS class name on each component with richer output to help
|
|
799
|
+
* identify your components in the DOM without React DevTools.
|
|
800
|
+
*
|
|
801
|
+
* @default true
|
|
802
|
+
*/
|
|
803
|
+
displayName?: boolean;
|
|
804
|
+
/**
|
|
805
|
+
* Controls whether the `displayName` of a component will be prefixed with the filename
|
|
806
|
+
* to make the component name as unique as possible.
|
|
807
|
+
*
|
|
808
|
+
* @default true
|
|
809
|
+
*/
|
|
810
|
+
fileName?: boolean;
|
|
811
|
+
/**
|
|
812
|
+
* Adds a unique identifier to every styled component to avoid checksum mismatches
|
|
813
|
+
* due to different class generation on the client and server during server-side rendering.
|
|
814
|
+
*
|
|
815
|
+
* @default true
|
|
816
|
+
*/
|
|
817
|
+
ssr?: boolean;
|
|
818
|
+
/**
|
|
819
|
+
* Transpiles styled-components tagged template literals to a smaller representation
|
|
820
|
+
* than what Babel normally creates, helping to reduce bundle size.
|
|
821
|
+
*
|
|
822
|
+
* @default true
|
|
823
|
+
*/
|
|
824
|
+
transpileTemplateLiterals?: boolean;
|
|
825
|
+
/**
|
|
826
|
+
* Minifies CSS content by removing all whitespace and comments from your CSS,
|
|
827
|
+
* keeping valuable bytes out of your bundles.
|
|
828
|
+
*
|
|
829
|
+
* @default true
|
|
830
|
+
*/
|
|
831
|
+
minify?: boolean;
|
|
832
|
+
/**
|
|
833
|
+
* Enables transformation of JSX `css` prop when using styled-components.
|
|
834
|
+
*
|
|
835
|
+
* **Note: This feature is not yet implemented in oxc.**
|
|
836
|
+
*
|
|
837
|
+
* @default true
|
|
838
|
+
*/
|
|
839
|
+
cssProp?: boolean;
|
|
840
|
+
/**
|
|
841
|
+
* Enables "pure annotation" to aid dead code elimination by bundlers.
|
|
842
|
+
*
|
|
843
|
+
* @default false
|
|
844
|
+
*/
|
|
845
|
+
pure?: boolean;
|
|
846
|
+
/**
|
|
847
|
+
* Adds a namespace prefix to component identifiers to ensure class names are unique.
|
|
848
|
+
*
|
|
849
|
+
* Example: With `namespace: "my-app"`, generates `componentId: "my-app__sc-3rfj0a-1"`
|
|
850
|
+
*/
|
|
851
|
+
namespace?: string;
|
|
852
|
+
/**
|
|
853
|
+
* List of file names that are considered meaningless for component naming purposes.
|
|
854
|
+
*
|
|
855
|
+
* When the `fileName` option is enabled and a component is in a file with a name
|
|
856
|
+
* from this list, the directory name will be used instead of the file name for
|
|
857
|
+
* the component's display name.
|
|
858
|
+
*
|
|
859
|
+
* @default ["index"]
|
|
860
|
+
*/
|
|
861
|
+
meaninglessFileNames?: Array<string>;
|
|
862
|
+
/**
|
|
863
|
+
* Import paths to be considered as styled-components imports at the top level.
|
|
864
|
+
*
|
|
865
|
+
* **Note: This feature is not yet implemented in oxc.**
|
|
866
|
+
*/
|
|
867
|
+
topLevelImportPaths?: Array<string>;
|
|
868
|
+
}
|
|
869
|
+
|
|
788
870
|
/**
|
|
789
871
|
* Transpile a JavaScript or TypeScript into a target ECMAScript version.
|
|
790
872
|
*
|
|
@@ -805,8 +887,8 @@ declare function transform(filename: string, sourceText: string, options?: Trans
|
|
|
805
887
|
* @see {@link transform}
|
|
806
888
|
*/
|
|
807
889
|
interface TransformOptions {
|
|
808
|
-
/** Treat the source text as `js`, `jsx`, `ts`, or `
|
|
809
|
-
lang?: 'js' | 'jsx' | 'ts' | 'tsx';
|
|
890
|
+
/** Treat the source text as `js`, `jsx`, `ts`, `tsx`, or `dts`. */
|
|
891
|
+
lang?: 'js' | 'jsx' | 'ts' | 'tsx' | 'dts';
|
|
810
892
|
/** Treat the source text as `script` or `module` code. */
|
|
811
893
|
sourceType?: 'script' | 'module' | 'unambiguous' | undefined;
|
|
812
894
|
/**
|
|
@@ -853,6 +935,8 @@ interface TransformOptions {
|
|
|
853
935
|
inject?: Record<string, string | [string, string]>;
|
|
854
936
|
/** Decorator plugin */
|
|
855
937
|
decorator?: DecoratorOptions;
|
|
938
|
+
/** Third-party plugins to use. */
|
|
939
|
+
plugins?: PluginsOptions;
|
|
856
940
|
}
|
|
857
941
|
interface TransformResult {
|
|
858
942
|
/**
|
|
@@ -105,8 +105,8 @@ type ImportNameKind = /** `import { x } from "mod"` */
|
|
|
105
105
|
*/
|
|
106
106
|
|
|
107
107
|
interface ParserOptions {
|
|
108
|
-
/** Treat the source text as `js`, `jsx`, `ts`, or `
|
|
109
|
-
lang?: 'js' | 'jsx' | 'ts' | 'tsx';
|
|
108
|
+
/** Treat the source text as `js`, `jsx`, `ts`, `tsx` or `dts`. */
|
|
109
|
+
lang?: 'js' | 'jsx' | 'ts' | 'tsx' | 'dts';
|
|
110
110
|
/** Treat the source text as `script` or `module` code. */
|
|
111
111
|
sourceType?: 'script' | 'module' | 'unambiguous' | undefined;
|
|
112
112
|
/**
|
|
@@ -769,6 +769,9 @@ interface ModuleRunnerTransformResult {
|
|
|
769
769
|
*/
|
|
770
770
|
errors: Array<OxcError>;
|
|
771
771
|
}
|
|
772
|
+
interface PluginsOptions {
|
|
773
|
+
styledComponents?: StyledComponentsOptions;
|
|
774
|
+
}
|
|
772
775
|
interface ReactRefreshOptions {
|
|
773
776
|
/**
|
|
774
777
|
* Specify the identifier of the refresh registration variable.
|
|
@@ -785,6 +788,85 @@ interface ReactRefreshOptions {
|
|
|
785
788
|
emitFullSignatures?: boolean;
|
|
786
789
|
}
|
|
787
790
|
|
|
791
|
+
/**
|
|
792
|
+
* Configure how styled-components are transformed.
|
|
793
|
+
*
|
|
794
|
+
* @see {@link https://styled-components.com/docs/tooling#babel-plugin}
|
|
795
|
+
*/
|
|
796
|
+
interface StyledComponentsOptions {
|
|
797
|
+
/**
|
|
798
|
+
* Enhances the attached CSS class name on each component with richer output to help
|
|
799
|
+
* identify your components in the DOM without React DevTools.
|
|
800
|
+
*
|
|
801
|
+
* @default true
|
|
802
|
+
*/
|
|
803
|
+
displayName?: boolean;
|
|
804
|
+
/**
|
|
805
|
+
* Controls whether the `displayName` of a component will be prefixed with the filename
|
|
806
|
+
* to make the component name as unique as possible.
|
|
807
|
+
*
|
|
808
|
+
* @default true
|
|
809
|
+
*/
|
|
810
|
+
fileName?: boolean;
|
|
811
|
+
/**
|
|
812
|
+
* Adds a unique identifier to every styled component to avoid checksum mismatches
|
|
813
|
+
* due to different class generation on the client and server during server-side rendering.
|
|
814
|
+
*
|
|
815
|
+
* @default true
|
|
816
|
+
*/
|
|
817
|
+
ssr?: boolean;
|
|
818
|
+
/**
|
|
819
|
+
* Transpiles styled-components tagged template literals to a smaller representation
|
|
820
|
+
* than what Babel normally creates, helping to reduce bundle size.
|
|
821
|
+
*
|
|
822
|
+
* @default true
|
|
823
|
+
*/
|
|
824
|
+
transpileTemplateLiterals?: boolean;
|
|
825
|
+
/**
|
|
826
|
+
* Minifies CSS content by removing all whitespace and comments from your CSS,
|
|
827
|
+
* keeping valuable bytes out of your bundles.
|
|
828
|
+
*
|
|
829
|
+
* @default true
|
|
830
|
+
*/
|
|
831
|
+
minify?: boolean;
|
|
832
|
+
/**
|
|
833
|
+
* Enables transformation of JSX `css` prop when using styled-components.
|
|
834
|
+
*
|
|
835
|
+
* **Note: This feature is not yet implemented in oxc.**
|
|
836
|
+
*
|
|
837
|
+
* @default true
|
|
838
|
+
*/
|
|
839
|
+
cssProp?: boolean;
|
|
840
|
+
/**
|
|
841
|
+
* Enables "pure annotation" to aid dead code elimination by bundlers.
|
|
842
|
+
*
|
|
843
|
+
* @default false
|
|
844
|
+
*/
|
|
845
|
+
pure?: boolean;
|
|
846
|
+
/**
|
|
847
|
+
* Adds a namespace prefix to component identifiers to ensure class names are unique.
|
|
848
|
+
*
|
|
849
|
+
* Example: With `namespace: "my-app"`, generates `componentId: "my-app__sc-3rfj0a-1"`
|
|
850
|
+
*/
|
|
851
|
+
namespace?: string;
|
|
852
|
+
/**
|
|
853
|
+
* List of file names that are considered meaningless for component naming purposes.
|
|
854
|
+
*
|
|
855
|
+
* When the `fileName` option is enabled and a component is in a file with a name
|
|
856
|
+
* from this list, the directory name will be used instead of the file name for
|
|
857
|
+
* the component's display name.
|
|
858
|
+
*
|
|
859
|
+
* @default ["index"]
|
|
860
|
+
*/
|
|
861
|
+
meaninglessFileNames?: Array<string>;
|
|
862
|
+
/**
|
|
863
|
+
* Import paths to be considered as styled-components imports at the top level.
|
|
864
|
+
*
|
|
865
|
+
* **Note: This feature is not yet implemented in oxc.**
|
|
866
|
+
*/
|
|
867
|
+
topLevelImportPaths?: Array<string>;
|
|
868
|
+
}
|
|
869
|
+
|
|
788
870
|
/**
|
|
789
871
|
* Transpile a JavaScript or TypeScript into a target ECMAScript version.
|
|
790
872
|
*
|
|
@@ -805,8 +887,8 @@ declare function transform(filename: string, sourceText: string, options?: Trans
|
|
|
805
887
|
* @see {@link transform}
|
|
806
888
|
*/
|
|
807
889
|
interface TransformOptions {
|
|
808
|
-
/** Treat the source text as `js`, `jsx`, `ts`, or `
|
|
809
|
-
lang?: 'js' | 'jsx' | 'ts' | 'tsx';
|
|
890
|
+
/** Treat the source text as `js`, `jsx`, `ts`, `tsx`, or `dts`. */
|
|
891
|
+
lang?: 'js' | 'jsx' | 'ts' | 'tsx' | 'dts';
|
|
810
892
|
/** Treat the source text as `script` or `module` code. */
|
|
811
893
|
sourceType?: 'script' | 'module' | 'unambiguous' | undefined;
|
|
812
894
|
/**
|
|
@@ -853,6 +935,8 @@ interface TransformOptions {
|
|
|
853
935
|
inject?: Record<string, string | [string, string]>;
|
|
854
936
|
/** Decorator plugin */
|
|
855
937
|
decorator?: DecoratorOptions;
|
|
938
|
+
/** Third-party plugins to use. */
|
|
939
|
+
plugins?: PluginsOptions;
|
|
856
940
|
}
|
|
857
941
|
interface TransformResult {
|
|
858
942
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-CCU51T2Z.mjs";
|
|
2
2
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
3
3
|
import { Program } from "@oxc-project/types";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-Drc5ua4y.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-CgDG0Z3M.cjs');
|
|
3
3
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -39,6 +39,7 @@ const isMusl = () => {
|
|
|
39
39
|
}
|
|
40
40
|
return musl;
|
|
41
41
|
};
|
|
42
|
+
const isOpenHarmony = process.platform === "openharmony";
|
|
42
43
|
const isFileMusl = (f) => f.includes("libc.musl-") || f.includes("ld-musl-");
|
|
43
44
|
const isMuslFromFilesystem = () => {
|
|
44
45
|
try {
|
|
@@ -198,6 +199,17 @@ function requireNative() {
|
|
|
198
199
|
} catch (e) {
|
|
199
200
|
loadErrors.push(e);
|
|
200
201
|
}
|
|
202
|
+
} else if (isOpenHarmony) {
|
|
203
|
+
try {
|
|
204
|
+
return require("../rolldown-binding.linux-x64-ohos.node");
|
|
205
|
+
} catch (e) {
|
|
206
|
+
loadErrors.push(e);
|
|
207
|
+
}
|
|
208
|
+
try {
|
|
209
|
+
return require("@rolldown/binding-linux-x64-ohos");
|
|
210
|
+
} catch (e) {
|
|
211
|
+
loadErrors.push(e);
|
|
212
|
+
}
|
|
201
213
|
} else {
|
|
202
214
|
try {
|
|
203
215
|
return require("../rolldown-binding.linux-x64-gnu.node");
|
|
@@ -221,6 +233,17 @@ function requireNative() {
|
|
|
221
233
|
} catch (e) {
|
|
222
234
|
loadErrors.push(e);
|
|
223
235
|
}
|
|
236
|
+
} else if (isOpenHarmony) {
|
|
237
|
+
try {
|
|
238
|
+
return require("../rolldown-binding.linux-arm64-ohos.node");
|
|
239
|
+
} catch (e) {
|
|
240
|
+
loadErrors.push(e);
|
|
241
|
+
}
|
|
242
|
+
try {
|
|
243
|
+
return require("@rolldown/binding-linux-arm64-ohos");
|
|
244
|
+
} catch (e) {
|
|
245
|
+
loadErrors.push(e);
|
|
246
|
+
}
|
|
224
247
|
} else {
|
|
225
248
|
try {
|
|
226
249
|
return require("../rolldown-binding.linux-arm64-gnu.node");
|
|
@@ -244,6 +267,17 @@ function requireNative() {
|
|
|
244
267
|
} catch (e) {
|
|
245
268
|
loadErrors.push(e);
|
|
246
269
|
}
|
|
270
|
+
} else if (isOpenHarmony) {
|
|
271
|
+
try {
|
|
272
|
+
return require("../rolldown-binding.linux-arm-ohos.node");
|
|
273
|
+
} catch (e) {
|
|
274
|
+
loadErrors.push(e);
|
|
275
|
+
}
|
|
276
|
+
try {
|
|
277
|
+
return require("@rolldown/binding-linux-arm-ohos");
|
|
278
|
+
} catch (e) {
|
|
279
|
+
loadErrors.push(e);
|
|
280
|
+
}
|
|
247
281
|
} else {
|
|
248
282
|
try {
|
|
249
283
|
return require("../rolldown-binding.linux-arm-gnueabihf.node");
|
|
@@ -515,7 +549,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
515
549
|
}
|
|
516
550
|
|
|
517
551
|
//#endregion
|
|
518
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
552
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.77.0/node_modules/oxc-parser/wrap.mjs
|
|
519
553
|
function wrap$1(result) {
|
|
520
554
|
let program, module$1, comments, errors;
|
|
521
555
|
return {
|
|
@@ -66,6 +66,7 @@ const isMusl = () => {
|
|
|
66
66
|
}
|
|
67
67
|
return musl;
|
|
68
68
|
};
|
|
69
|
+
const isOpenHarmony = process.platform === "openharmony";
|
|
69
70
|
const isFileMusl = (f) => f.includes("libc.musl-") || f.includes("ld-musl-");
|
|
70
71
|
const isMuslFromFilesystem = () => {
|
|
71
72
|
try {
|
|
@@ -225,6 +226,17 @@ function requireNative() {
|
|
|
225
226
|
} catch (e) {
|
|
226
227
|
loadErrors.push(e);
|
|
227
228
|
}
|
|
229
|
+
} else if (isOpenHarmony) {
|
|
230
|
+
try {
|
|
231
|
+
return __require("../rolldown-binding.linux-x64-ohos.node");
|
|
232
|
+
} catch (e) {
|
|
233
|
+
loadErrors.push(e);
|
|
234
|
+
}
|
|
235
|
+
try {
|
|
236
|
+
return __require("@rolldown/binding-linux-x64-ohos");
|
|
237
|
+
} catch (e) {
|
|
238
|
+
loadErrors.push(e);
|
|
239
|
+
}
|
|
228
240
|
} else {
|
|
229
241
|
try {
|
|
230
242
|
return __require("../rolldown-binding.linux-x64-gnu.node");
|
|
@@ -248,6 +260,17 @@ function requireNative() {
|
|
|
248
260
|
} catch (e) {
|
|
249
261
|
loadErrors.push(e);
|
|
250
262
|
}
|
|
263
|
+
} else if (isOpenHarmony) {
|
|
264
|
+
try {
|
|
265
|
+
return __require("../rolldown-binding.linux-arm64-ohos.node");
|
|
266
|
+
} catch (e) {
|
|
267
|
+
loadErrors.push(e);
|
|
268
|
+
}
|
|
269
|
+
try {
|
|
270
|
+
return __require("@rolldown/binding-linux-arm64-ohos");
|
|
271
|
+
} catch (e) {
|
|
272
|
+
loadErrors.push(e);
|
|
273
|
+
}
|
|
251
274
|
} else {
|
|
252
275
|
try {
|
|
253
276
|
return __require("../rolldown-binding.linux-arm64-gnu.node");
|
|
@@ -271,6 +294,17 @@ function requireNative() {
|
|
|
271
294
|
} catch (e) {
|
|
272
295
|
loadErrors.push(e);
|
|
273
296
|
}
|
|
297
|
+
} else if (isOpenHarmony) {
|
|
298
|
+
try {
|
|
299
|
+
return __require("../rolldown-binding.linux-arm-ohos.node");
|
|
300
|
+
} catch (e) {
|
|
301
|
+
loadErrors.push(e);
|
|
302
|
+
}
|
|
303
|
+
try {
|
|
304
|
+
return __require("@rolldown/binding-linux-arm-ohos");
|
|
305
|
+
} catch (e) {
|
|
306
|
+
loadErrors.push(e);
|
|
307
|
+
}
|
|
274
308
|
} else {
|
|
275
309
|
try {
|
|
276
310
|
return __require("../rolldown-binding.linux-arm-gnueabihf.node");
|
|
@@ -542,7 +576,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
542
576
|
}
|
|
543
577
|
|
|
544
578
|
//#endregion
|
|
545
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
579
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.77.0/node_modules/oxc-parser/wrap.mjs
|
|
546
580
|
function wrap$1(result) {
|
|
547
581
|
let program, module$1, comments, errors;
|
|
548
582
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
2
|
+
const require_parse_ast_index = require('./parse-ast-index-CBA_AByf.cjs');
|
|
3
3
|
const require_misc = require('./misc-DksvspN4.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -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.26-commit.
|
|
12
|
+
var version = "1.0.0-beta.26-commit.e5d5666";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, ParallelJsPluginRegistry, augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, shutdownAsyncRuntime, startAsyncRuntime } from "./parse-ast-index-
|
|
1
|
+
import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, ParallelJsPluginRegistry, augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, shutdownAsyncRuntime, startAsyncRuntime } from "./parse-ast-index-Cn1hXCrA.mjs";
|
|
2
2
|
import { arraify, noop, unimplemented, unreachable, unsupported } from "./misc-CQeo-AFx.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
@@ -8,7 +8,7 @@ import os 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.26-commit.
|
|
11
|
+
var version = "1.0.0-beta.26-commit.e5d5666";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.26-commit.
|
|
3
|
+
"version": "1.0.0-beta.26-commit.e5d5666",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"aarch64-unknown-linux-gnu",
|
|
78
78
|
"aarch64-apple-darwin",
|
|
79
79
|
"aarch64-unknown-linux-musl",
|
|
80
|
+
"aarch64-unknown-linux-ohos",
|
|
80
81
|
"aarch64-pc-windows-msvc",
|
|
81
82
|
"aarch64-linux-android",
|
|
82
83
|
"wasm32-wasip1-threads"
|
|
@@ -91,13 +92,13 @@
|
|
|
91
92
|
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n"
|
|
92
93
|
},
|
|
93
94
|
"dependencies": {
|
|
94
|
-
"@oxc-project/runtime": "=0.
|
|
95
|
-
"@oxc-project/types": "=0.
|
|
95
|
+
"@oxc-project/runtime": "=0.77.0",
|
|
96
|
+
"@oxc-project/types": "=0.77.0",
|
|
96
97
|
"ansis": "^4.0.0",
|
|
97
|
-
"@rolldown/pluginutils": "1.0.0-beta.26-commit.
|
|
98
|
+
"@rolldown/pluginutils": "1.0.0-beta.26-commit.e5d5666"
|
|
98
99
|
},
|
|
99
100
|
"devDependencies": {
|
|
100
|
-
"@napi-rs/cli": "^3.0.0-alpha.
|
|
101
|
+
"@napi-rs/cli": "^3.0.0-alpha.97",
|
|
101
102
|
"@napi-rs/wasm-runtime": "^0.2.10",
|
|
102
103
|
"@oxc-node/cli": "^0.0.29",
|
|
103
104
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -107,7 +108,7 @@
|
|
|
107
108
|
"emnapi": "^1.2.0",
|
|
108
109
|
"execa": "^9.2.0",
|
|
109
110
|
"glob": "^11.0.0",
|
|
110
|
-
"oxc-parser": "=0.
|
|
111
|
+
"oxc-parser": "=0.77.0",
|
|
111
112
|
"pathe": "^2.0.3",
|
|
112
113
|
"remeda": "^2.10.0",
|
|
113
114
|
"rolldown-plugin-dts": "^0.13.6",
|
|
@@ -119,22 +120,23 @@
|
|
|
119
120
|
"typescript": "^5.7.3",
|
|
120
121
|
"valibot": "1.1.0",
|
|
121
122
|
"@rolldown/testing": "0.0.1",
|
|
122
|
-
"rolldown": "1.0.0-beta.26-commit.
|
|
123
|
+
"rolldown": "1.0.0-beta.26-commit.e5d5666"
|
|
123
124
|
},
|
|
124
125
|
"optionalDependencies": {
|
|
125
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.26-commit.
|
|
126
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.26-commit.
|
|
127
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.26-commit.
|
|
128
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.26-commit.
|
|
129
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.26-commit.
|
|
130
|
-
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.26-commit.
|
|
131
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.26-commit.
|
|
132
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.26-commit.
|
|
133
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.26-commit.
|
|
134
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.26-commit.
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-
|
|
126
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.26-commit.e5d5666",
|
|
127
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.26-commit.e5d5666",
|
|
128
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.26-commit.e5d5666",
|
|
129
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.26-commit.e5d5666",
|
|
130
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.26-commit.e5d5666",
|
|
131
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.26-commit.e5d5666",
|
|
132
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.26-commit.e5d5666",
|
|
133
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.26-commit.e5d5666",
|
|
134
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.26-commit.e5d5666",
|
|
135
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.26-commit.e5d5666",
|
|
136
|
+
"@rolldown/binding-linux-arm64-ohos": "1.0.0-beta.26-commit.e5d5666",
|
|
137
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.26-commit.e5d5666",
|
|
138
|
+
"@rolldown/binding-android-arm64": "1.0.0-beta.26-commit.e5d5666",
|
|
139
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.26-commit.e5d5666"
|
|
138
140
|
},
|
|
139
141
|
"scripts": {
|
|
140
142
|
"# Scrips for binding #": "_",
|