@rollipop/rolldown 1.0.21 → 1.0.23
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.mjs +11 -8
- package/dist/config.d.mts +15 -2
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.d.mts +4 -4
- package/dist/experimental-index.mjs +10 -9
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +10 -4
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/shared/{binding-xKFuQo-G.mjs → binding-BeFnGbcC.mjs} +26 -26
- package/dist/shared/{binding-Cu-ojBng.d.mts → binding-FraDreAW.d.mts} +51 -3
- package/dist/shared/{bindingify-input-options-BYPi8wdW.mjs → bindingify-input-options-Bn4KwwnQ.mjs} +31 -34
- package/dist/shared/{constructors-B1hVHeCp.mjs → constructors-BtPvcMnV.mjs} +1 -1
- package/dist/shared/{constructors-Cv3icXH8.d.mts → constructors-CXtPAgZN.d.mts} +2 -2
- package/dist/shared/{define-config-QGeJq1RS.d.mts → define-config-oNOGrLUX.d.mts} +83 -3
- package/dist/shared/dist-DKbukT1H.mjs +154 -0
- package/dist/shared/{error-xIBfzJhs.mjs → error-ByvXiVA5.mjs} +1 -1
- package/dist/shared/{load-config-BigBhTqf.mjs → load-config-Bq5f70mp.mjs} +19 -2
- package/dist/shared/{logs-aMKUxRpj.mjs → logs-ZGEh6uhb.mjs} +6 -1
- package/dist/shared/{normalize-string-or-regex-CxZ_9Mip.mjs → normalize-string-or-regex-BP4QDm1i.mjs} +2 -2
- package/dist/shared/{parse-BeUE8K-J.mjs → parse-fKhlPUp2.mjs} +2 -2
- package/dist/shared/{prompt-B1Yc1NPt.mjs → prompt--dNycKSZ.mjs} +59 -17
- package/dist/shared/{resolve-tsconfig-lsIXlxa6.mjs → resolve-tsconfig-bMlSU2mx.mjs} +2 -2
- package/dist/shared/{rolldown-lvkmL-oD.mjs → rolldown-B8ugj8Jp.mjs} +1 -1
- package/dist/shared/{rolldown-build-CJYbdPdc.mjs → rolldown-build-2x6VVmNU.mjs} +36 -16
- package/dist/shared/{transform-C91OGt-e.d.mts → transform-DmrnpNrQ.d.mts} +1 -1
- package/dist/shared/{watch-BomkWqGX.mjs → watch-Dyck2DYi.mjs} +5 -5
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +8 -6
- package/package.json +14 -13
package/dist/cli.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import {
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-Dyck2DYi.mjs";
|
|
2
|
+
import { S as version, x as description } from "./shared/bindingify-input-options-Bn4KwwnQ.mjs";
|
|
3
3
|
import { t as arraify } from "./shared/misc-CoQm4NHO.mjs";
|
|
4
|
-
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-
|
|
5
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
6
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
4
|
+
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-2x6VVmNU.mjs";
|
|
5
|
+
import { t as rolldown } from "./shared/rolldown-B8ugj8Jp.mjs";
|
|
6
|
+
import { t as loadConfig } from "./shared/load-config-Bq5f70mp.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import g$1 from "node:process";
|
|
9
9
|
import { performance } from "node:perf_hooks";
|
|
@@ -631,6 +631,7 @@ const alias = {
|
|
|
631
631
|
abbreviation: "c",
|
|
632
632
|
hint: "filename"
|
|
633
633
|
},
|
|
634
|
+
configLoader: { hint: "loader" },
|
|
634
635
|
help: { abbreviation: "h" },
|
|
635
636
|
version: { abbreviation: "v" },
|
|
636
637
|
watch: { abbreviation: "w" },
|
|
@@ -684,7 +685,8 @@ const reservedKeys = /* @__PURE__ */ new Set([
|
|
|
684
685
|
"version",
|
|
685
686
|
"config",
|
|
686
687
|
"watch",
|
|
687
|
-
"environment"
|
|
688
|
+
"environment",
|
|
689
|
+
"configLoader"
|
|
688
690
|
]);
|
|
689
691
|
function normalizeCliOptions(cliOptions, positionals) {
|
|
690
692
|
const [data, errors] = validateCliOptions(cliOptions);
|
|
@@ -705,6 +707,7 @@ function normalizeCliOptions(cliOptions, positionals) {
|
|
|
705
707
|
if (typeof options.config === "string") result.config = options.config;
|
|
706
708
|
else if (options.config === true) result.config = "";
|
|
707
709
|
if (options.environment !== void 0) result.environment = options.environment;
|
|
710
|
+
if (options.configLoader !== void 0) result.configLoader = options.configLoader;
|
|
708
711
|
const keysOfInput = new Set(getInputCliKeys());
|
|
709
712
|
const keysOfOutput = new Set(getOutputCliKeys());
|
|
710
713
|
for (let [key, value] of Object.entries(options)) {
|
|
@@ -859,7 +862,7 @@ function getClearScreenFunction(options) {
|
|
|
859
862
|
};
|
|
860
863
|
}
|
|
861
864
|
//#endregion
|
|
862
|
-
//#region \0@oxc-project+runtime@0.
|
|
865
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/usingCtx.js
|
|
863
866
|
function _usingCtx() {
|
|
864
867
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
865
868
|
var n = Error();
|
|
@@ -921,7 +924,7 @@ async function bundleWithConfig(configPath, cliOptions, rawArgs = {}) {
|
|
|
921
924
|
process.env.ROLLUP_WATCH = "true";
|
|
922
925
|
process.env.ROLLDOWN_WATCH = "true";
|
|
923
926
|
}
|
|
924
|
-
const config = await loadConfig(configPath);
|
|
927
|
+
const config = await loadConfig(configPath, { configLoader: cliOptions.configLoader });
|
|
925
928
|
const resolvedConfig = typeof config === "function" ? await config(rawArgs) : config;
|
|
926
929
|
if (typeof resolvedConfig !== "object" || resolvedConfig === null) {
|
|
927
930
|
logger.error(`Invalid configuration from ${configPath}: expected object or array, got ${resolvedConfig}`);
|
package/dist/config.d.mts
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-oNOGrLUX.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/load-config.d.ts
|
|
4
|
+
type ConfigLoader = "bundle" | "native";
|
|
5
|
+
interface LoadConfigOptions {
|
|
6
|
+
/**
|
|
7
|
+
* How to load the config file.
|
|
8
|
+
* - `'bundle'` (default): bundle the config with Rolldown, then import it.
|
|
9
|
+
* - `'native'`: import the config directly, delegating TypeScript/loader
|
|
10
|
+
* handling to the runtime. Faster, but requires runtime support.
|
|
11
|
+
*
|
|
12
|
+
* @default 'bundle'
|
|
13
|
+
*/
|
|
14
|
+
configLoader?: ConfigLoader;
|
|
15
|
+
}
|
|
4
16
|
/**
|
|
5
17
|
* Load config from a file in a way that Rolldown does.
|
|
6
18
|
*
|
|
7
19
|
* @param configPath The path to the config file. If empty, it will look for `rolldown.config` with supported extensions in the current working directory.
|
|
20
|
+
* @param options Loading options. `configLoader` selects `'bundle'` (default) or `'native'`.
|
|
8
21
|
* @returns The loaded config export
|
|
9
22
|
*
|
|
10
23
|
* @category Config
|
|
11
24
|
*/
|
|
12
|
-
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
|
25
|
+
declare function loadConfig(configPath: string, options?: LoadConfigOptions): Promise<ConfigExport>;
|
|
13
26
|
//#endregion
|
|
14
27
|
export { VERSION, defineConfig, loadConfig };
|
package/dist/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as VERSION } from "./shared/bindingify-input-options-Bn4KwwnQ.mjs";
|
|
2
2
|
import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
|
|
3
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
3
|
+
import { t as loadConfig } from "./shared/load-config-Bq5f70mp.mjs";
|
|
4
4
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as moduleRunnerTransform, A as BindingViteTransformPluginConfig, G as ResolverFactory, N as IsolatedDeclarationsOptions, P as IsolatedDeclarationsResult, Q as isolatedDeclarationSync, R as NapiResolveOptions, T as BindingViteManifestPluginConfig, W as ResolveResult, X as clearCacheById, Y as clearCache, Z as isolatedDeclaration, f as BindingRebuildStrategy, g as BindingRollipopReactRefreshWrapperPluginConfig, h as BindingRollipopReactNativeTransformResult, i as BindingClientHmrUpdate, n as BindingBundleAnalyzerPluginConfig, r as BindingBundleState, v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-
|
|
2
|
-
import {
|
|
3
|
-
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-
|
|
4
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-
|
|
1
|
+
import { $ as moduleRunnerTransform, A as BindingViteTransformPluginConfig, G as ResolverFactory, N as IsolatedDeclarationsOptions, P as IsolatedDeclarationsResult, Q as isolatedDeclarationSync, R as NapiResolveOptions, T as BindingViteManifestPluginConfig, W as ResolveResult, X as clearCacheById, Y as clearCache, Z as isolatedDeclaration, f as BindingRebuildStrategy, g as BindingRollipopReactRefreshWrapperPluginConfig, h as BindingRollipopReactNativeTransformResult, i as BindingClientHmrUpdate, n as BindingBundleAnalyzerPluginConfig, r as BindingBundleState, v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-FraDreAW.mjs";
|
|
2
|
+
import { Bt as OutputOptions, F as BuiltinPlugin, Q as defineParallelPlugin, Wt as StringOrRegExp, Yt as RolldownOutput, Zt as freeExternalMemory, l as InputOptions, lt as NormalizedOutputOptions } from "./shared/define-config-oNOGrLUX.mjs";
|
|
3
|
+
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-DmrnpNrQ.mjs";
|
|
4
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-CXtPAgZN.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-
|
|
4
|
-
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-
|
|
5
|
-
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-
|
|
6
|
-
import { n as parseSync$1, t as parse$1 } from "./shared/parse-
|
|
7
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-
|
|
8
|
-
import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BeFnGbcC.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BP4QDm1i.mjs";
|
|
3
|
+
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-Bn4KwwnQ.mjs";
|
|
4
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-2x6VVmNU.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-ByvXiVA5.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-fKhlPUp2.mjs";
|
|
7
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-BtPvcMnV.mjs";
|
|
8
|
+
import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-bMlSU2mx.mjs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
10
10
|
//#region src/api/dev/dev-engine.ts
|
|
11
11
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -285,7 +285,8 @@ function rollipopReactRefreshWrapperPlugin(config) {
|
|
|
285
285
|
cwd: config.cwd,
|
|
286
286
|
include: normalizedStringOrRegex(config.include),
|
|
287
287
|
exclude: normalizedStringOrRegex(config.exclude),
|
|
288
|
-
jsxImportSource: config.jsxImportSource
|
|
288
|
+
jsxImportSource: config.jsxImportSource,
|
|
289
|
+
id: config.id
|
|
289
290
|
});
|
|
290
291
|
}
|
|
291
292
|
//#endregion
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as withFilter } from "./shared/define-config-oNOGrLUX.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.1/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts
|
|
4
4
|
//#region src/filter/composable-filters.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-BSNejiLS.mjs";
|
|
2
|
-
import { H as PreRenderedChunk } from "./shared/binding-
|
|
3
|
-
import { $ as
|
|
4
|
-
export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, type BuiltinModuleTag, type BundleError, type ChecksOptions, type ChunkFileNamesFunction, type ChunkOptimizationOptions, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PluginContextResolveOptions, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, RolldownMagicString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherFileWatcherOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
|
|
2
|
+
import { H as PreRenderedChunk } from "./shared/binding-FraDreAW.mjs";
|
|
3
|
+
import { $ as MinimalPluginContext, $t as SourcemapIgnoreListOption, A as RolldownPlugin, At as ChunkingContext, B as SourceMapInput, Bt as OutputOptions, C as ParallelPluginHooks, Ct as BuildOptions, D as ResolveIdExtraOptions, Dt as AdvancedChunksOptions, E as PluginMeta, Et as AdvancedChunksGroup, Ft as GeneratedCodeOptions, G as EmittedChunk, Gt as OutputAsset, H as TreeshakingOptions, I as RUNTIME_MODULE_ID, It as GeneratedCodePreset, J as GetModuleInfo, Jt as RenderedModule, K as EmittedFile, Kt as OutputChunk, L as VERSION, Lt as GlobalsFunction, M as SourceDescription, Mt as CodeSplittingNameFunction, N as TransformResult, Nt as CodeSplittingOptions, O as ResolveIdResult, Ot as BuiltinModuleTag, Pt as CommentsOptions, Qt as ModuleInfo, R as BundleError, Rt as MinifyOptions, S as ObjectHook, St as RolldownBuild, T as Plugin, Tt as AddonFunction, U as TransformPluginContext, Ut as PartialNull, V as OutputBundle, Vt as PreRenderedAsset, W as EmittedAsset, X as PluginContextResolveOptions, Xt as SourceMap, Y as PluginContext, Yt as RolldownOutput, Z as DefineParallelPluginResult, _ as HookFilterExtension, _t as RolldownWatcher, a as ChunkOptimizationOptions, at as RolldownDirectoryEntry, b as ModuleOptions, bt as WatchOptions, c as InputOption, ct as InternalModuleFormat, d as OptimizationOptions, dt as TransformOptions, et as PluginContextMeta, f as WatcherFileWatcherOptions, ft as ChecksOptions, g as FunctionPluginHooks, gt as watch, h as CustomPluginOptions, ht as RolldownMagicString, i as RolldownOptions, it as BufferEncoding, j as RolldownPluginOption, jt as CodeSplittingGroup, k as ResolvedId, kt as ChunkFileNamesFunction, l as InputOptions, lt as NormalizedOutputOptions, m as AsyncPluginHooks, mt as WarningHandlerWithDefault, n as RolldownOptionsFunction, nt as HookFilter, o as ExternalOption, ot as RolldownFileStats, p as WatcherOptions, pt as LoggingFunction, q as EmittedPrebuiltChunk, qt as RenderedChunk, r as defineConfig, rt as ModuleTypeFilter, s as ExternalOptionFunction, st as RolldownFsModule, t as ConfigExport, tt as GeneralHookFilter, u as ModuleTypes, ut as NormalizedInputOptions, v as ImportKind, vt as RolldownWatcherEvent, w as PartialResolvedId, wt as build, x as ModuleType, xt as rolldown, y as LoadResult, yt as RolldownWatcherWatcherEventMap, z as ExistingRawSourceMap, zt as ModuleFormat } from "./shared/define-config-oNOGrLUX.mjs";
|
|
4
|
+
export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, type BuiltinModuleTag, type BundleError, type ChecksOptions, type ChunkFileNamesFunction, type ChunkOptimizationOptions, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PluginContextResolveOptions, type PluginMeta, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, RolldownMagicString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherFileWatcherOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import { b as
|
|
4
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BeFnGbcC.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-Dyck2DYi.mjs";
|
|
3
|
+
import { b as VERSION, r as RolldownMagicString } from "./shared/bindingify-input-options-Bn4KwwnQ.mjs";
|
|
4
|
+
import { t as rolldown } from "./shared/rolldown-B8ugj8Jp.mjs";
|
|
5
5
|
import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
|
|
6
6
|
import { isMainThread } from "node:worker_threads";
|
|
7
7
|
//#region src/setup.ts
|
|
@@ -13,6 +13,12 @@ if (isMainThread) {
|
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
|
+
//#region src/constants/index.ts
|
|
17
|
+
/**
|
|
18
|
+
* Runtime helper module ID
|
|
19
|
+
*/
|
|
20
|
+
const RUNTIME_MODULE_ID = "\0rolldown/runtime.js";
|
|
21
|
+
//#endregion
|
|
16
22
|
//#region src/api/build.ts
|
|
17
23
|
/**
|
|
18
24
|
* The API similar to esbuild's `build` function.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { i as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BeFnGbcC.mjs";
|
|
2
|
+
import { i as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-Bn4KwwnQ.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
//#region src/parallel-plugin-worker.ts
|
|
5
5
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ht as MaybePromise, T as Plugin } from "./shared/define-config-oNOGrLUX.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
4
4
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-
|
|
2
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
1
|
+
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-ZGEh6uhb.mjs";
|
|
2
|
+
import { n as parseSync, t as parse } from "./shared/parse-fKhlPUp2.mjs";
|
|
3
3
|
//#region src/parse-ast-index.ts
|
|
4
4
|
function wrap(result, filename, sourceText) {
|
|
5
5
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as BindingReplacePluginConfig } from "./shared/binding-
|
|
2
|
-
import {
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { m as BindingReplacePluginConfig } from "./shared/binding-FraDreAW.mjs";
|
|
2
|
+
import { F as BuiltinPlugin } from "./shared/define-config-oNOGrLUX.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-CXtPAgZN.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
/**
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-BP4QDm1i.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-BtPvcMnV.mjs";
|
|
3
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
4
4
|
/**
|
|
5
5
|
* Replaces targeted strings in files while bundling.
|
|
@@ -103,7 +103,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
103
103
|
try {
|
|
104
104
|
const binding = __require("@rollipop/rolldown-binding-android-arm64");
|
|
105
105
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm64/package.json").version;
|
|
106
|
-
if (bindingPackageVersion !== "1.0.
|
|
106
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
107
107
|
return binding;
|
|
108
108
|
} catch (e) {
|
|
109
109
|
loadErrors.push(e);
|
|
@@ -117,7 +117,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
117
117
|
try {
|
|
118
118
|
const binding = __require("@rollipop/rolldown-binding-android-arm-eabi");
|
|
119
119
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm-eabi/package.json").version;
|
|
120
|
-
if (bindingPackageVersion !== "1.0.
|
|
120
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
121
121
|
return binding;
|
|
122
122
|
} catch (e) {
|
|
123
123
|
loadErrors.push(e);
|
|
@@ -132,7 +132,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
132
132
|
try {
|
|
133
133
|
const binding = __require("@rollipop/rolldown-binding-win32-x64-gnu");
|
|
134
134
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-gnu/package.json").version;
|
|
135
|
-
if (bindingPackageVersion !== "1.0.
|
|
135
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
136
136
|
return binding;
|
|
137
137
|
} catch (e) {
|
|
138
138
|
loadErrors.push(e);
|
|
@@ -146,7 +146,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
146
146
|
try {
|
|
147
147
|
const binding = __require("@rollipop/rolldown-binding-win32-x64-msvc");
|
|
148
148
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-msvc/package.json").version;
|
|
149
|
-
if (bindingPackageVersion !== "1.0.
|
|
149
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
150
150
|
return binding;
|
|
151
151
|
} catch (e) {
|
|
152
152
|
loadErrors.push(e);
|
|
@@ -161,7 +161,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
161
161
|
try {
|
|
162
162
|
const binding = __require("@rollipop/rolldown-binding-win32-ia32-msvc");
|
|
163
163
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-ia32-msvc/package.json").version;
|
|
164
|
-
if (bindingPackageVersion !== "1.0.
|
|
164
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
165
165
|
return binding;
|
|
166
166
|
} catch (e) {
|
|
167
167
|
loadErrors.push(e);
|
|
@@ -175,7 +175,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
175
175
|
try {
|
|
176
176
|
const binding = __require("@rollipop/rolldown-binding-win32-arm64-msvc");
|
|
177
177
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-arm64-msvc/package.json").version;
|
|
178
|
-
if (bindingPackageVersion !== "1.0.
|
|
178
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
179
179
|
return binding;
|
|
180
180
|
} catch (e) {
|
|
181
181
|
loadErrors.push(e);
|
|
@@ -190,7 +190,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
190
190
|
try {
|
|
191
191
|
const binding = __require("@rollipop/rolldown-binding-darwin-universal");
|
|
192
192
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-universal/package.json").version;
|
|
193
|
-
if (bindingPackageVersion !== "1.0.
|
|
193
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
194
194
|
return binding;
|
|
195
195
|
} catch (e) {
|
|
196
196
|
loadErrors.push(e);
|
|
@@ -204,7 +204,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
204
204
|
try {
|
|
205
205
|
const binding = __require("@rollipop/rolldown-binding-darwin-x64");
|
|
206
206
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-x64/package.json").version;
|
|
207
|
-
if (bindingPackageVersion !== "1.0.
|
|
207
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
208
208
|
return binding;
|
|
209
209
|
} catch (e) {
|
|
210
210
|
loadErrors.push(e);
|
|
@@ -218,7 +218,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
218
218
|
try {
|
|
219
219
|
const binding = __require("@rollipop/rolldown-binding-darwin-arm64");
|
|
220
220
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-arm64/package.json").version;
|
|
221
|
-
if (bindingPackageVersion !== "1.0.
|
|
221
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
222
222
|
return binding;
|
|
223
223
|
} catch (e) {
|
|
224
224
|
loadErrors.push(e);
|
|
@@ -233,7 +233,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
233
233
|
try {
|
|
234
234
|
const binding = __require("@rollipop/rolldown-binding-freebsd-x64");
|
|
235
235
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-x64/package.json").version;
|
|
236
|
-
if (bindingPackageVersion !== "1.0.
|
|
236
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
237
237
|
return binding;
|
|
238
238
|
} catch (e) {
|
|
239
239
|
loadErrors.push(e);
|
|
@@ -247,7 +247,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
247
247
|
try {
|
|
248
248
|
const binding = __require("@rollipop/rolldown-binding-freebsd-arm64");
|
|
249
249
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-arm64/package.json").version;
|
|
250
|
-
if (bindingPackageVersion !== "1.0.
|
|
250
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
251
251
|
return binding;
|
|
252
252
|
} catch (e) {
|
|
253
253
|
loadErrors.push(e);
|
|
@@ -262,7 +262,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
262
262
|
try {
|
|
263
263
|
const binding = __require("@rollipop/rolldown-binding-linux-x64-musl");
|
|
264
264
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-musl/package.json").version;
|
|
265
|
-
if (bindingPackageVersion !== "1.0.
|
|
265
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
266
266
|
return binding;
|
|
267
267
|
} catch (e) {
|
|
268
268
|
loadErrors.push(e);
|
|
@@ -276,7 +276,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
276
276
|
try {
|
|
277
277
|
const binding = __require("@rollipop/rolldown-binding-linux-x64-gnu");
|
|
278
278
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-gnu/package.json").version;
|
|
279
|
-
if (bindingPackageVersion !== "1.0.
|
|
279
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
280
280
|
return binding;
|
|
281
281
|
} catch (e) {
|
|
282
282
|
loadErrors.push(e);
|
|
@@ -291,7 +291,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
291
291
|
try {
|
|
292
292
|
const binding = __require("@rollipop/rolldown-binding-linux-arm64-musl");
|
|
293
293
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-musl/package.json").version;
|
|
294
|
-
if (bindingPackageVersion !== "1.0.
|
|
294
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
295
295
|
return binding;
|
|
296
296
|
} catch (e) {
|
|
297
297
|
loadErrors.push(e);
|
|
@@ -305,7 +305,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
305
305
|
try {
|
|
306
306
|
const binding = __require("@rollipop/rolldown-binding-linux-arm64-gnu");
|
|
307
307
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-gnu/package.json").version;
|
|
308
|
-
if (bindingPackageVersion !== "1.0.
|
|
308
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
309
309
|
return binding;
|
|
310
310
|
} catch (e) {
|
|
311
311
|
loadErrors.push(e);
|
|
@@ -320,7 +320,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
320
320
|
try {
|
|
321
321
|
const binding = __require("@rollipop/rolldown-binding-linux-arm-musleabihf");
|
|
322
322
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-musleabihf/package.json").version;
|
|
323
|
-
if (bindingPackageVersion !== "1.0.
|
|
323
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
324
324
|
return binding;
|
|
325
325
|
} catch (e) {
|
|
326
326
|
loadErrors.push(e);
|
|
@@ -334,7 +334,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
334
334
|
try {
|
|
335
335
|
const binding = __require("@rollipop/rolldown-binding-linux-arm-gnueabihf");
|
|
336
336
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-gnueabihf/package.json").version;
|
|
337
|
-
if (bindingPackageVersion !== "1.0.
|
|
337
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
338
338
|
return binding;
|
|
339
339
|
} catch (e) {
|
|
340
340
|
loadErrors.push(e);
|
|
@@ -349,7 +349,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
349
349
|
try {
|
|
350
350
|
const binding = __require("@rollipop/rolldown-binding-linux-loong64-musl");
|
|
351
351
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-musl/package.json").version;
|
|
352
|
-
if (bindingPackageVersion !== "1.0.
|
|
352
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
353
353
|
return binding;
|
|
354
354
|
} catch (e) {
|
|
355
355
|
loadErrors.push(e);
|
|
@@ -363,7 +363,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
363
363
|
try {
|
|
364
364
|
const binding = __require("@rollipop/rolldown-binding-linux-loong64-gnu");
|
|
365
365
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-gnu/package.json").version;
|
|
366
|
-
if (bindingPackageVersion !== "1.0.
|
|
366
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
367
367
|
return binding;
|
|
368
368
|
} catch (e) {
|
|
369
369
|
loadErrors.push(e);
|
|
@@ -378,7 +378,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
378
378
|
try {
|
|
379
379
|
const binding = __require("@rollipop/rolldown-binding-linux-riscv64-musl");
|
|
380
380
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-musl/package.json").version;
|
|
381
|
-
if (bindingPackageVersion !== "1.0.
|
|
381
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
382
382
|
return binding;
|
|
383
383
|
} catch (e) {
|
|
384
384
|
loadErrors.push(e);
|
|
@@ -392,7 +392,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
392
392
|
try {
|
|
393
393
|
const binding = __require("@rollipop/rolldown-binding-linux-riscv64-gnu");
|
|
394
394
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-gnu/package.json").version;
|
|
395
|
-
if (bindingPackageVersion !== "1.0.
|
|
395
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
396
396
|
return binding;
|
|
397
397
|
} catch (e) {
|
|
398
398
|
loadErrors.push(e);
|
|
@@ -407,7 +407,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
407
407
|
try {
|
|
408
408
|
const binding = __require("@rollipop/rolldown-binding-linux-ppc64-gnu");
|
|
409
409
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-ppc64-gnu/package.json").version;
|
|
410
|
-
if (bindingPackageVersion !== "1.0.
|
|
410
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
411
411
|
return binding;
|
|
412
412
|
} catch (e) {
|
|
413
413
|
loadErrors.push(e);
|
|
@@ -421,7 +421,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
421
421
|
try {
|
|
422
422
|
const binding = __require("@rollipop/rolldown-binding-linux-s390x-gnu");
|
|
423
423
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-s390x-gnu/package.json").version;
|
|
424
|
-
if (bindingPackageVersion !== "1.0.
|
|
424
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
425
425
|
return binding;
|
|
426
426
|
} catch (e) {
|
|
427
427
|
loadErrors.push(e);
|
|
@@ -436,7 +436,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
436
436
|
try {
|
|
437
437
|
const binding = __require("@rollipop/rolldown-binding-openharmony-arm64");
|
|
438
438
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm64/package.json").version;
|
|
439
|
-
if (bindingPackageVersion !== "1.0.
|
|
439
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
440
440
|
return binding;
|
|
441
441
|
} catch (e) {
|
|
442
442
|
loadErrors.push(e);
|
|
@@ -450,7 +450,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
450
450
|
try {
|
|
451
451
|
const binding = __require("@rollipop/rolldown-binding-openharmony-x64");
|
|
452
452
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-x64/package.json").version;
|
|
453
|
-
if (bindingPackageVersion !== "1.0.
|
|
453
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
454
454
|
return binding;
|
|
455
455
|
} catch (e) {
|
|
456
456
|
loadErrors.push(e);
|
|
@@ -464,7 +464,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
464
464
|
try {
|
|
465
465
|
const binding = __require("@rollipop/rolldown-binding-openharmony-arm");
|
|
466
466
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm/package.json").version;
|
|
467
|
-
if (bindingPackageVersion !== "1.0.
|
|
467
|
+
if (bindingPackageVersion !== "1.0.23" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.23 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
468
468
|
return binding;
|
|
469
469
|
} catch (e) {
|
|
470
470
|
loadErrors.push(e);
|
|
@@ -119,6 +119,17 @@ interface MangleOptions {
|
|
|
119
119
|
* @default false
|
|
120
120
|
*/
|
|
121
121
|
keepNames?: boolean | MangleOptionsKeepNames;
|
|
122
|
+
/**
|
|
123
|
+
* Names that bindings must not be renamed to, and that bindings already
|
|
124
|
+
* carrying them keep. Equivalent to terser's `mangle.reserved`.
|
|
125
|
+
*
|
|
126
|
+
* Pass `['exports', 'module']` when minifying prebuilt CommonJS / UMD files
|
|
127
|
+
* that Node consumers `import` directly, so Node's cjs-module-lexer can still
|
|
128
|
+
* detect the mangled module's named exports.
|
|
129
|
+
*
|
|
130
|
+
* @default []
|
|
131
|
+
*/
|
|
132
|
+
reserved?: Array<string>;
|
|
122
133
|
/** Debug mangled names. */
|
|
123
134
|
debug?: boolean;
|
|
124
135
|
}
|
|
@@ -1369,6 +1380,7 @@ declare class BindingNormalizedOptions {
|
|
|
1369
1380
|
get name(): string | null;
|
|
1370
1381
|
get entryFilenames(): string | undefined;
|
|
1371
1382
|
get chunkFilenames(): string | undefined;
|
|
1383
|
+
get sourcemapFilenames(): string | undefined;
|
|
1372
1384
|
get assetFilenames(): string | undefined;
|
|
1373
1385
|
get dir(): string | null;
|
|
1374
1386
|
get file(): string | null;
|
|
@@ -1536,7 +1548,7 @@ interface BindingEnhancedTransformOptions {
|
|
|
1536
1548
|
* Configure how TSX and JSX are transformed.
|
|
1537
1549
|
* @see {@link https://oxc.rs/docs/guide/usage/transformer/jsx}
|
|
1538
1550
|
*/
|
|
1539
|
-
jsx?: 'preserve' |
|
|
1551
|
+
jsx?: 'preserve' | BindingJsxOptions;
|
|
1540
1552
|
/**
|
|
1541
1553
|
* Sets the target environment for the generated JavaScript.
|
|
1542
1554
|
*
|
|
@@ -1579,8 +1591,6 @@ interface BindingEnhancedTransformOptions {
|
|
|
1579
1591
|
tsconfig?: boolean | BindingTsconfigRawOptions;
|
|
1580
1592
|
/** An input source map to collapse with the output source map. */
|
|
1581
1593
|
inputMap?: SourceMap;
|
|
1582
|
-
/** Experimental React Compiler transform. */
|
|
1583
|
-
reactCompiler?: OxcReactCompilerOptions;
|
|
1584
1594
|
}
|
|
1585
1595
|
/** Result of the enhanced transform API. */
|
|
1586
1596
|
interface BindingEnhancedTransformResult {
|
|
@@ -1690,6 +1700,31 @@ interface BindingIndentOptions {
|
|
|
1690
1700
|
interface BindingIsolatedDeclarationPluginConfig {
|
|
1691
1701
|
stripInternal?: boolean;
|
|
1692
1702
|
}
|
|
1703
|
+
/**
|
|
1704
|
+
* Configure how TSX and JSX are transformed.
|
|
1705
|
+
*
|
|
1706
|
+
* Mirrors Oxc's JSX options with Rollipop-only React Compiler and refresh filters.
|
|
1707
|
+
*/
|
|
1708
|
+
interface BindingJsxOptions {
|
|
1709
|
+
/** Decides which runtime to use. */
|
|
1710
|
+
runtime?: 'classic' | 'automatic';
|
|
1711
|
+
/** Emit development-specific information, such as `__source` and `__self`. */
|
|
1712
|
+
development?: boolean;
|
|
1713
|
+
/** Toggles whether or not to throw an error if an XML namespaced tag name is used. */
|
|
1714
|
+
throwIfNamespace?: boolean;
|
|
1715
|
+
/** Mark JSX elements and top-level React method calls as pure for tree shaking. */
|
|
1716
|
+
pure?: boolean;
|
|
1717
|
+
/** Replaces the import source when importing functions. */
|
|
1718
|
+
importSource?: string;
|
|
1719
|
+
/** Replace the function used when compiling JSX expressions. */
|
|
1720
|
+
pragma?: string;
|
|
1721
|
+
/** Replace the component used when compiling JSX fragments. */
|
|
1722
|
+
pragmaFrag?: string;
|
|
1723
|
+
/** Enable React Fast Refresh. */
|
|
1724
|
+
refresh?: boolean | BindingReactRefreshOptions;
|
|
1725
|
+
/** Enable React Compiler. */
|
|
1726
|
+
compiler?: OxcReactCompilerOptions;
|
|
1727
|
+
}
|
|
1693
1728
|
interface BindingLogLocation {
|
|
1694
1729
|
/** 1-based */
|
|
1695
1730
|
line: number;
|
|
@@ -1726,6 +1761,18 @@ interface BindingPluginContextResolveOptions {
|
|
|
1726
1761
|
custom?: number;
|
|
1727
1762
|
vitePluginCustom?: BindingVitePluginCustom;
|
|
1728
1763
|
}
|
|
1764
|
+
/** React Fast Refresh options. */
|
|
1765
|
+
interface BindingReactRefreshOptions {
|
|
1766
|
+
/** File patterns to transform. Empty means all files that enter the transform pipeline. */
|
|
1767
|
+
include?: Array<BindingStringOrRegex>;
|
|
1768
|
+
/** File patterns to skip. */
|
|
1769
|
+
exclude?: Array<BindingStringOrRegex>;
|
|
1770
|
+
/** Specify the identifier of the refresh registration variable. */
|
|
1771
|
+
refreshReg?: string;
|
|
1772
|
+
/** Specify the identifier of the refresh signature variable. */
|
|
1773
|
+
refreshSig?: string;
|
|
1774
|
+
emitFullSignatures?: boolean;
|
|
1775
|
+
}
|
|
1729
1776
|
declare enum BindingRebuildStrategy {
|
|
1730
1777
|
Always = 0,
|
|
1731
1778
|
Auto = 1,
|
|
@@ -1751,6 +1798,7 @@ interface BindingRollipopReactRefreshWrapperPluginConfig {
|
|
|
1751
1798
|
include?: Array<BindingStringOrRegex>;
|
|
1752
1799
|
exclude?: Array<BindingStringOrRegex>;
|
|
1753
1800
|
jsxImportSource?: string;
|
|
1801
|
+
id?: string;
|
|
1754
1802
|
}
|
|
1755
1803
|
interface BindingSourceMapOptions {
|
|
1756
1804
|
/** The filename for the generated file (goes into `map.file`) */
|