@rollipop/rolldown 1.0.18 → 1.0.20
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 +19 -8
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.d.mts +14 -4
- package/dist/experimental-index.mjs +20 -15
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -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 +1 -1
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/shared/{binding-Cyz1BOPl.d.mts → binding-DE7ERejD.d.mts} +88 -27
- package/dist/shared/{binding-BkgahC-_.mjs → binding-DamCAbY6.mjs} +26 -26
- package/dist/shared/{bindingify-input-options-B5F7R19R.mjs → bindingify-input-options-SGSGV3Kn.mjs} +1350 -1348
- package/dist/shared/{constructors-BP8dSdw2.mjs → constructors-CTfc5fh7.mjs} +1 -1
- package/dist/shared/{constructors-C2RnsuK3.d.mts → constructors-CqnDcrIL.d.mts} +2 -2
- package/dist/shared/{define-config-oEABMwkg.d.mts → define-config-xmEHQczI.d.mts} +2 -7
- package/dist/shared/{error-DW8gB2Qq.mjs → error-BmTEI0xY.mjs} +1 -1
- package/dist/shared/{load-config-Bh2RCL5t.mjs → load-config-DY5kAiwf.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-C3Aaex0G.mjs → normalize-string-or-regex-Ddbkskw6.mjs} +1 -1
- package/dist/shared/{parse-DodhQ1O5.mjs → parse-CNsctGYH.mjs} +1 -1
- package/dist/shared/{resolve-tsconfig-BGfz0QPf.mjs → resolve-tsconfig-B6udNjE_.mjs} +2 -2
- package/dist/shared/{rolldown-Yo0wlwlh.mjs → rolldown-C6DTtWMe.mjs} +1 -1
- package/dist/shared/{rolldown-build-CA7mRy17.mjs → rolldown-build-BCVOvLca.mjs} +20 -21
- package/dist/shared/{transform-BpkSLs0Y.d.mts → transform-DiNoOk6R.d.mts} +1 -1
- package/dist/shared/{watch-Bo2HC6b0.mjs → watch-BqeQlZnt.mjs} +4 -4
- package/dist/utils-index.d.mts +2 -2
- package/dist/utils-index.mjs +2 -2
- package/package.json +12 -12
package/dist/cli.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { C as version, S as description } from "./shared/bindingify-input-options-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-BqeQlZnt.mjs";
|
|
2
|
+
import { C as version, S as description } from "./shared/bindingify-input-options-SGSGV3Kn.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-BCVOvLca.mjs";
|
|
5
|
+
import { t as rolldown } from "./shared/rolldown-C6DTtWMe.mjs";
|
|
6
|
+
import { t as loadConfig } from "./shared/load-config-DY5kAiwf.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import g$1 from "node:process";
|
|
9
9
|
import { performance } from "node:perf_hooks";
|
|
@@ -736,8 +736,7 @@ const options = Object.fromEntries(Object.entries(schemaInfo).filter(([_key, inf
|
|
|
736
736
|
};
|
|
737
737
|
if (config?.abbreviation) result.short = config.abbreviation;
|
|
738
738
|
if (config?.hint) result.hint = config.hint;
|
|
739
|
-
|
|
740
|
-
return [config?.reverse ? `no-${kebabKey}` : kebabKey, result];
|
|
739
|
+
return [config?.reverse ? `no-${key}` : key, result];
|
|
741
740
|
}));
|
|
742
741
|
const knownKeys = new Set(Object.keys(schemaInfo));
|
|
743
742
|
for (const key of Object.keys(schemaInfo)) {
|
|
@@ -746,6 +745,18 @@ for (const key of Object.keys(schemaInfo)) {
|
|
|
746
745
|
}
|
|
747
746
|
const shortAliases = /* @__PURE__ */ new Set();
|
|
748
747
|
for (const config of Object.values(alias)) if (config?.abbreviation) shortAliases.add(config.abbreviation);
|
|
748
|
+
function kebabToCamelCase(input) {
|
|
749
|
+
return input.replaceAll(/([a-z])-([a-z])/g, (_, p1, p2) => {
|
|
750
|
+
return p1 + p2.toUpperCase();
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
function camelizeNestedKeys(value) {
|
|
754
|
+
const result = {};
|
|
755
|
+
for (const [key, nestedValue] of Object.entries(value)) if (Array.isArray(nestedValue)) result[kebabToCamelCase(key)] = nestedValue;
|
|
756
|
+
else if (nestedValue && typeof nestedValue === "object") result[kebabToCamelCase(key)] = camelizeNestedKeys(nestedValue);
|
|
757
|
+
else result[kebabToCamelCase(key)] = nestedValue;
|
|
758
|
+
return result;
|
|
759
|
+
}
|
|
749
760
|
function parseCliArguments() {
|
|
750
761
|
const cli = cac("rolldown");
|
|
751
762
|
for (const [key, info] of Object.entries(schemaInfo)) {
|
|
@@ -790,6 +801,7 @@ function parseCliArguments() {
|
|
|
790
801
|
const single = unknownKeys.length === 1;
|
|
791
802
|
logger.warn(`Option \`${unknownKeys.join(",")}\` ${single ? "is" : "are"} unrecognized. We will ignore ${single ? "this" : "those"} option${single ? "" : "s"}.`);
|
|
792
803
|
}
|
|
804
|
+
parsedOptions = camelizeNestedKeys(parsedOptions);
|
|
793
805
|
const rawArgs = { ...parsedOptions };
|
|
794
806
|
for (const key of unknownKeys) delete parsedOptions[key];
|
|
795
807
|
for (const [key, value] of Object.entries(parsedOptions)) {
|
|
@@ -1121,7 +1133,6 @@ function generateHelpText() {
|
|
|
1121
1133
|
return a.localeCompare(b);
|
|
1122
1134
|
}).map(([option, { type, short, hint, description }]) => {
|
|
1123
1135
|
let optionStr = ` --${option} `;
|
|
1124
|
-
option = camelCaseToKebabCase(option);
|
|
1125
1136
|
if (short) optionStr += `-${short}, `;
|
|
1126
1137
|
if (type === "string") optionStr += `<${hint ?? option}>`;
|
|
1127
1138
|
if (description && description.length > 0) description = description[0].toUpperCase() + description.slice(1);
|
package/dist/config.d.mts
CHANGED
package/dist/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as VERSION } from "./shared/bindingify-input-options-
|
|
1
|
+
import { x as VERSION } from "./shared/bindingify-input-options-SGSGV3Kn.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-DY5kAiwf.mjs";
|
|
4
4
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as BindingViteTransformPluginConfig,
|
|
2
|
-
import { Jt as RolldownOutput, P as BuiltinPlugin, Ut as StringOrRegExp, Xt as freeExternalMemory, Z as defineParallelPlugin, ct as NormalizedOutputOptions, l as InputOptions, zt as OutputOptions } from "./shared/define-config-
|
|
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 { A as BindingViteTransformPluginConfig, J as isolatedDeclaration, N as IsolatedDeclarationsOptions, P as IsolatedDeclarationsResult, R as NapiResolveOptions, T as BindingViteManifestPluginConfig, U as ResolveResult, W as ResolverFactory, X as moduleRunnerTransform, Y as isolatedDeclarationSync, 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-DE7ERejD.mjs";
|
|
2
|
+
import { Jt as RolldownOutput, P as BuiltinPlugin, Ut as StringOrRegExp, Xt as freeExternalMemory, Z as defineParallelPlugin, ct as NormalizedOutputOptions, l as InputOptions, zt as OutputOptions } from "./shared/define-config-xmEHQczI.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-DiNoOk6R.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-CqnDcrIL.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -9,6 +9,7 @@ type DevOnHmrUpdates = (result: Error | {
|
|
|
9
9
|
changedFiles: string[];
|
|
10
10
|
}) => void | Promise<void>;
|
|
11
11
|
type DevOnOutput = (result: Error | RolldownOutput) => void | Promise<void>;
|
|
12
|
+
type DevOnAdditionalAssets = (output: RolldownOutput) => void | Promise<void>;
|
|
12
13
|
interface DevWatchOptions {
|
|
13
14
|
/**
|
|
14
15
|
* If `true`, files are not written to disk.
|
|
@@ -69,6 +70,15 @@ interface DevOptions {
|
|
|
69
70
|
onHmrUpdates?: DevOnHmrUpdates;
|
|
70
71
|
onOutput?: DevOnOutput;
|
|
71
72
|
/**
|
|
73
|
+
* Called with assets emitted while generating an HMR patch or compiling a
|
|
74
|
+
* lazy entry (e.g. an image newly imported by the changed/lazy module).
|
|
75
|
+
*
|
|
76
|
+
* These never go through {@link onOutput}, so a consumer that serves built
|
|
77
|
+
* files (e.g. Vite's bundled dev server) must register this to receive them
|
|
78
|
+
* and write them to its in-memory file store before the client requests them.
|
|
79
|
+
*/
|
|
80
|
+
onAdditionalAssets?: DevOnAdditionalAssets;
|
|
81
|
+
/**
|
|
72
82
|
* Strategy for triggering rebuilds after HMR updates.
|
|
73
83
|
* - `'always'`: Always trigger a rebuild after HMR updates
|
|
74
84
|
* - `'auto'`: Trigger rebuild only if HMR updates contain full reload updates
|
|
@@ -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-DamCAbY6.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-Ddbkskw6.mjs";
|
|
3
|
+
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-SGSGV3Kn.mjs";
|
|
4
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-BCVOvLca.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-BmTEI0xY.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-CNsctGYH.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-CTfc5fh7.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-B6udNjE_.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);
|
|
@@ -29,15 +29,20 @@ var DevEngine = class DevEngine {
|
|
|
29
29
|
});
|
|
30
30
|
} : void 0;
|
|
31
31
|
const userOnOutput = devOptions.onOutput;
|
|
32
|
+
const bindingOnOutput = userOnOutput ? function(rawResult) {
|
|
33
|
+
const result = normalizeBindingResult(rawResult);
|
|
34
|
+
if (result instanceof Error) {
|
|
35
|
+
userOnOutput(result);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
userOnOutput(transformToRollupOutput(result));
|
|
39
|
+
} : void 0;
|
|
40
|
+
const userOnAdditionalAssets = devOptions.onAdditionalAssets;
|
|
32
41
|
const bindingDevOptions = {
|
|
33
42
|
onHmrUpdates: bindingOnHmrUpdates,
|
|
34
|
-
onOutput:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
userOnOutput(result);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
userOnOutput(transformToRollupOutput(result));
|
|
43
|
+
onOutput: bindingOnOutput,
|
|
44
|
+
onAdditionalAssets: userOnAdditionalAssets ? function(output) {
|
|
45
|
+
userOnAdditionalAssets(transformToRollupOutput(output));
|
|
41
46
|
} : void 0,
|
|
42
47
|
rebuildStrategy: devOptions.rebuildStrategy ? devOptions.rebuildStrategy === "always" ? import_binding.BindingRebuildStrategy.Always : devOptions.rebuildStrategy === "auto" ? import_binding.BindingRebuildStrategy.Auto : import_binding.BindingRebuildStrategy.Never : void 0,
|
|
43
48
|
watch: devOptions.watch && {
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as withFilter } from "./shared/define-config-
|
|
1
|
+
import { N as withFilter } from "./shared/define-config-xmEHQczI.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 {
|
|
3
|
-
import { $ as PluginContextMeta, A as RolldownPluginOption, At as CodeSplittingGroup, B as OutputBundle, Bt as PreRenderedAsset, C as ParallelPluginHooks, Ct as build, D as ResolveIdResult, Dt as BuiltinModuleTag, E as ResolveIdExtraOptions, Et as AdvancedChunksOptions, F as RUNTIME_MODULE_ID, Ft as GeneratedCodePreset, G as EmittedFile, Gt as OutputChunk, H as TransformPluginContext, Ht as PartialNull, I as VERSION, It as GlobalsFunction, J as PluginContext, Jt as RolldownOutput, K as EmittedPrebuiltChunk, Kt as RenderedChunk, L as BundleError, Lt as MinifyOptions, M as TransformResult, Mt as CodeSplittingOptions, Nt as CommentsOptions, O as ResolvedId, Ot as ChunkFileNamesFunction, Pt as GeneratedCodeOptions, Q as MinimalPluginContext, Qt as SourcemapIgnoreListOption, R as ExistingRawSourceMap, Rt as ModuleFormat, S as ObjectHook, St as BuildOptions, T as Plugin, Tt as AdvancedChunksGroup, U as EmittedAsset, V as TreeshakingOptions, W as EmittedChunk, Wt as OutputAsset, X as DefineParallelPluginResult, Y as PluginContextResolveOptions, Yt as SourceMap, Zt as ModuleInfo, _ as HookFilterExtension, _t as RolldownWatcherEvent, a as ChunkOptimizationOptions, at as RolldownFileStats, b as ModuleOptions, bt as rolldown, c as InputOption, ct as NormalizedOutputOptions, d as OptimizationOptions, dt as ChecksOptions, et as GeneralHookFilter, f as WatcherFileWatcherOptions, ft as LoggingFunction, g as FunctionPluginHooks, gt as RolldownWatcher, h as CustomPluginOptions, ht as watch, i as RolldownOptions, it as RolldownDirectoryEntry, j as SourceDescription, jt as CodeSplittingNameFunction, k as RolldownPlugin, kt as ChunkingContext, l as InputOptions, lt as NormalizedInputOptions, m as AsyncPluginHooks, mt as RolldownMagicString, n as RolldownOptionsFunction, nt as ModuleTypeFilter, o as ExternalOption, ot as RolldownFsModule, p as WatcherOptions, pt as WarningHandlerWithDefault, q as GetModuleInfo, qt as RenderedModule, r as defineConfig, rt as BufferEncoding, s as ExternalOptionFunction, st as InternalModuleFormat, t as ConfigExport, tt as HookFilter, u as ModuleTypes, ut as TransformOptions, v as ImportKind, vt as RolldownWatcherWatcherEventMap, w as PartialResolvedId, wt as AddonFunction, x as ModuleType, xt as RolldownBuild, y as LoadResult, yt as WatchOptions, z as SourceMapInput, zt as OutputOptions } from "./shared/define-config-
|
|
2
|
+
import { H as PreRenderedChunk } from "./shared/binding-DE7ERejD.mjs";
|
|
3
|
+
import { $ as PluginContextMeta, A as RolldownPluginOption, At as CodeSplittingGroup, B as OutputBundle, Bt as PreRenderedAsset, C as ParallelPluginHooks, Ct as build, D as ResolveIdResult, Dt as BuiltinModuleTag, E as ResolveIdExtraOptions, Et as AdvancedChunksOptions, F as RUNTIME_MODULE_ID, Ft as GeneratedCodePreset, G as EmittedFile, Gt as OutputChunk, H as TransformPluginContext, Ht as PartialNull, I as VERSION, It as GlobalsFunction, J as PluginContext, Jt as RolldownOutput, K as EmittedPrebuiltChunk, Kt as RenderedChunk, L as BundleError, Lt as MinifyOptions, M as TransformResult, Mt as CodeSplittingOptions, Nt as CommentsOptions, O as ResolvedId, Ot as ChunkFileNamesFunction, Pt as GeneratedCodeOptions, Q as MinimalPluginContext, Qt as SourcemapIgnoreListOption, R as ExistingRawSourceMap, Rt as ModuleFormat, S as ObjectHook, St as BuildOptions, T as Plugin, Tt as AdvancedChunksGroup, U as EmittedAsset, V as TreeshakingOptions, W as EmittedChunk, Wt as OutputAsset, X as DefineParallelPluginResult, Y as PluginContextResolveOptions, Yt as SourceMap, Zt as ModuleInfo, _ as HookFilterExtension, _t as RolldownWatcherEvent, a as ChunkOptimizationOptions, at as RolldownFileStats, b as ModuleOptions, bt as rolldown, c as InputOption, ct as NormalizedOutputOptions, d as OptimizationOptions, dt as ChecksOptions, et as GeneralHookFilter, f as WatcherFileWatcherOptions, ft as LoggingFunction, g as FunctionPluginHooks, gt as RolldownWatcher, h as CustomPluginOptions, ht as watch, i as RolldownOptions, it as RolldownDirectoryEntry, j as SourceDescription, jt as CodeSplittingNameFunction, k as RolldownPlugin, kt as ChunkingContext, l as InputOptions, lt as NormalizedInputOptions, m as AsyncPluginHooks, mt as RolldownMagicString, n as RolldownOptionsFunction, nt as ModuleTypeFilter, o as ExternalOption, ot as RolldownFsModule, p as WatcherOptions, pt as WarningHandlerWithDefault, q as GetModuleInfo, qt as RenderedModule, r as defineConfig, rt as BufferEncoding, s as ExternalOptionFunction, st as InternalModuleFormat, t as ConfigExport, tt as HookFilter, u as ModuleTypes, ut as TransformOptions, v as ImportKind, vt as RolldownWatcherWatcherEventMap, w as PartialResolvedId, wt as AddonFunction, x as ModuleType, xt as RolldownBuild, y as LoadResult, yt as WatchOptions, z as SourceMapInput, zt as OutputOptions } from "./shared/define-config-xmEHQczI.mjs";
|
|
4
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 };
|
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 {
|
|
4
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-DamCAbY6.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-BqeQlZnt.mjs";
|
|
3
|
+
import { b as RUNTIME_MODULE_ID, r as RolldownMagicString, x as VERSION } from "./shared/bindingify-input-options-SGSGV3Kn.mjs";
|
|
4
|
+
import { t as rolldown } from "./shared/rolldown-C6DTtWMe.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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import {
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-DamCAbY6.mjs";
|
|
2
|
+
import { i as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-SGSGV3Kn.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 { T as Plugin, Vt as MaybePromise } from "./shared/define-config-
|
|
1
|
+
import { T as Plugin, Vt as MaybePromise } from "./shared/define-config-xmEHQczI.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
1
|
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-aMKUxRpj.mjs";
|
|
2
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
+
import { n as parseSync, t as parse } from "./shared/parse-CNsctGYH.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 { P as BuiltinPlugin } from "./shared/define-config-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { m as BindingReplacePluginConfig } from "./shared/binding-DE7ERejD.mjs";
|
|
2
|
+
import { P as BuiltinPlugin } from "./shared/define-config-xmEHQczI.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-CqnDcrIL.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-Ddbkskw6.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-CTfc5fh7.mjs";
|
|
3
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
4
4
|
/**
|
|
5
5
|
* Replaces targeted strings in files while bundling.
|
|
@@ -1579,6 +1579,8 @@ interface BindingEnhancedTransformOptions {
|
|
|
1579
1579
|
tsconfig?: boolean | BindingTsconfigRawOptions;
|
|
1580
1580
|
/** An input source map to collapse with the output source map. */
|
|
1581
1581
|
inputMap?: SourceMap;
|
|
1582
|
+
/** Experimental React Compiler transform. */
|
|
1583
|
+
reactCompiler?: OxcReactCompilerOptions;
|
|
1582
1584
|
}
|
|
1583
1585
|
/** Result of the enhanced transform API. */
|
|
1584
1586
|
interface BindingEnhancedTransformResult {
|
|
@@ -1701,13 +1703,6 @@ interface BindingMagicStringOptions {
|
|
|
1701
1703
|
indentExclusionRanges?: Array<Array<number>> | Array<number>;
|
|
1702
1704
|
ignoreList?: boolean;
|
|
1703
1705
|
}
|
|
1704
|
-
interface BindingModulePreloadOptions {
|
|
1705
|
-
polyfill: boolean;
|
|
1706
|
-
resolveDependencies?: (filename: string, deps: string[], context: {
|
|
1707
|
-
hostId: string;
|
|
1708
|
-
hostType: 'html' | 'js';
|
|
1709
|
-
}) => string[];
|
|
1710
|
-
}
|
|
1711
1706
|
interface BindingModules {
|
|
1712
1707
|
values: Array<BindingRenderedModule>;
|
|
1713
1708
|
keys: Array<string>;
|
|
@@ -1736,16 +1731,6 @@ declare enum BindingRebuildStrategy {
|
|
|
1736
1731
|
Auto = 1,
|
|
1737
1732
|
Never = 2
|
|
1738
1733
|
}
|
|
1739
|
-
interface BindingRenderBuiltUrlConfig {
|
|
1740
|
-
ssr: boolean;
|
|
1741
|
-
type: 'asset' | 'public';
|
|
1742
|
-
hostId: string;
|
|
1743
|
-
hostType: 'js' | 'css' | 'html';
|
|
1744
|
-
}
|
|
1745
|
-
interface BindingRenderBuiltUrlRet {
|
|
1746
|
-
relative?: boolean;
|
|
1747
|
-
runtime?: string;
|
|
1748
|
-
}
|
|
1749
1734
|
interface BindingReplacePluginConfig {
|
|
1750
1735
|
values: Record<string, string>;
|
|
1751
1736
|
delimiters?: [string, string];
|
|
@@ -1848,14 +1833,6 @@ interface BindingViteBuildImportAnalysisPluginConfig {
|
|
|
1848
1833
|
optimizeModulePreloadRelativePaths: boolean;
|
|
1849
1834
|
renderBuiltUrl: boolean;
|
|
1850
1835
|
isRelativeBase: boolean;
|
|
1851
|
-
v2?: BindingViteBuildImportAnalysisPluginV2Config;
|
|
1852
|
-
}
|
|
1853
|
-
interface BindingViteBuildImportAnalysisPluginV2Config {
|
|
1854
|
-
isSsr: boolean;
|
|
1855
|
-
urlBase: string;
|
|
1856
|
-
decodedBase: string;
|
|
1857
|
-
modulePreload: false | BindingModulePreloadOptions;
|
|
1858
|
-
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1859
1836
|
}
|
|
1860
1837
|
interface BindingViteDynamicImportVarsPluginConfig {
|
|
1861
1838
|
sourcemap?: boolean;
|
|
@@ -1877,7 +1854,6 @@ type BindingViteJsonPluginStringify = boolean | string;
|
|
|
1877
1854
|
interface BindingViteManifestPluginConfig {
|
|
1878
1855
|
root: string;
|
|
1879
1856
|
outPath: string;
|
|
1880
|
-
isEnableV2?: boolean;
|
|
1881
1857
|
isLegacy?: (args: BindingNormalizedOptions) => boolean;
|
|
1882
1858
|
cssEntries: () => Record<string, string>;
|
|
1883
1859
|
}
|
|
@@ -1966,6 +1942,91 @@ interface NativeError {
|
|
|
1966
1942
|
/** Position in the source file in UTF-16 code units */
|
|
1967
1943
|
pos?: number;
|
|
1968
1944
|
}
|
|
1945
|
+
interface OxcReactCompilerDynamicGating {
|
|
1946
|
+
/** Module the gating import comes from. */
|
|
1947
|
+
source: string;
|
|
1948
|
+
}
|
|
1949
|
+
interface OxcReactCompilerGating {
|
|
1950
|
+
/** Module the gating import comes from. */
|
|
1951
|
+
source: string;
|
|
1952
|
+
/** Imported specifier used as the gate. */
|
|
1953
|
+
importSpecifierName: string;
|
|
1954
|
+
}
|
|
1955
|
+
/**
|
|
1956
|
+
* Options for the experimental React Compiler transform.
|
|
1957
|
+
*
|
|
1958
|
+
* @category Utilities
|
|
1959
|
+
*/
|
|
1960
|
+
interface OxcReactCompilerOptions {
|
|
1961
|
+
/** File patterns to compile. Empty means all files that enter the transform pipeline. */
|
|
1962
|
+
include?: Array<BindingStringOrRegex>;
|
|
1963
|
+
/** File patterns to skip. */
|
|
1964
|
+
exclude?: Array<BindingStringOrRegex>;
|
|
1965
|
+
/**
|
|
1966
|
+
* Which functions to compile.
|
|
1967
|
+
*
|
|
1968
|
+
* @default 'infer'
|
|
1969
|
+
*/
|
|
1970
|
+
compilationMode?: 'infer' | 'syntax' | 'annotation' | 'all';
|
|
1971
|
+
/**
|
|
1972
|
+
* What to do when a function cannot be compiled.
|
|
1973
|
+
*
|
|
1974
|
+
* @default 'none'
|
|
1975
|
+
*/
|
|
1976
|
+
panicThreshold?: 'none' | 'critical_errors' | 'all_errors';
|
|
1977
|
+
/**
|
|
1978
|
+
* React runtime version target.
|
|
1979
|
+
*
|
|
1980
|
+
* @default '19'
|
|
1981
|
+
*/
|
|
1982
|
+
target?: '17' | '18' | '19';
|
|
1983
|
+
/**
|
|
1984
|
+
* Analyze and report diagnostics only; emit no transformed code.
|
|
1985
|
+
*
|
|
1986
|
+
* @default false
|
|
1987
|
+
*/
|
|
1988
|
+
noEmit?: boolean;
|
|
1989
|
+
/**
|
|
1990
|
+
* Compiler output mode.
|
|
1991
|
+
*
|
|
1992
|
+
* @default undefined
|
|
1993
|
+
*/
|
|
1994
|
+
outputMode?: 'client' | 'ssr' | 'lint';
|
|
1995
|
+
/**
|
|
1996
|
+
* Compile even functions marked with opt-out directives.
|
|
1997
|
+
*
|
|
1998
|
+
* @default false
|
|
1999
|
+
*/
|
|
2000
|
+
ignoreUseNoForget?: boolean;
|
|
2001
|
+
/**
|
|
2002
|
+
* Treat Flow suppression comments as opt-outs.
|
|
2003
|
+
*
|
|
2004
|
+
* @default true
|
|
2005
|
+
*/
|
|
2006
|
+
flowSuppressions?: boolean;
|
|
2007
|
+
/**
|
|
2008
|
+
* Enable `react-native-reanimated` support.
|
|
2009
|
+
*
|
|
2010
|
+
* @default false
|
|
2011
|
+
*/
|
|
2012
|
+
enableReanimated?: boolean;
|
|
2013
|
+
/**
|
|
2014
|
+
* Development mode.
|
|
2015
|
+
*
|
|
2016
|
+
* @default false
|
|
2017
|
+
*/
|
|
2018
|
+
isDev?: boolean;
|
|
2019
|
+
/** Source file name, used for the fast-refresh hash and in diagnostics. */
|
|
2020
|
+
filename?: string;
|
|
2021
|
+
/** ESLint rules whose suppressions opt a function out of compilation. */
|
|
2022
|
+
eslintSuppressionRules?: Array<string>;
|
|
2023
|
+
/** Extra directives that opt a function out of compilation. */
|
|
2024
|
+
customOptOutDirectives?: Array<string>;
|
|
2025
|
+
/** Also emit a gated version of each compiled function. */
|
|
2026
|
+
gating?: OxcReactCompilerGating;
|
|
2027
|
+
/** Dynamically-gated compilation. */
|
|
2028
|
+
dynamicGating?: OxcReactCompilerDynamicGating;
|
|
2029
|
+
}
|
|
1969
2030
|
interface PreRenderedChunk {
|
|
1970
2031
|
/** The name of this chunk, which is used in naming patterns. */
|
|
1971
2032
|
name: string;
|
|
@@ -1984,4 +2045,4 @@ interface ViteImportGlobMeta {
|
|
|
1984
2045
|
isSubImportsPattern?: boolean;
|
|
1985
2046
|
}
|
|
1986
2047
|
//#endregion
|
|
1987
|
-
export { BindingViteTransformPluginConfig as A,
|
|
2048
|
+
export { BindingViteTransformPluginConfig as A, ParseResult as B, BindingViteImportGlobPluginConfig as C, BindingViteReactRefreshWrapperPluginConfig as D, BindingViteModulePreloadPolyfillPluginConfig as E, JsxOptions as F, SourceMap as G, PreRenderedChunk as H, MinifyOptions as I, isolatedDeclaration as J, TransformOptions as K, MinifyResult as L, ExternalMemoryStatus as M, IsolatedDeclarationsOptions as N, BindingViteReporterPluginConfig as O, IsolatedDeclarationsResult as P, NapiResolveOptions as R, BindingViteDynamicImportVarsPluginConfig as S, BindingViteManifestPluginConfig as T, ResolveResult as U, ParserOptions as V, ResolverFactory as W, moduleRunnerTransform as X, isolatedDeclarationSync as Y, BindingTransformHookExtraArgs as _, BindingEnhancedTransformOptions as a, BindingTsconfigResult as b, BindingHookResolveIdExtraArgs as c, BindingPluginContextResolveOptions as d, BindingRebuildStrategy as f, BindingRollipopReactRefreshWrapperPluginConfig as g, BindingRollipopReactNativeTransformResult as h, BindingClientHmrUpdate as i, BindingWatcherBundler as j, BindingViteResolvePluginConfig as k, BindingIsolatedDeclarationPluginConfig as l, BindingReplacePluginConfig as m, BindingBundleAnalyzerPluginConfig as n, BindingEnhancedTransformResult as o, BindingRenderedChunk as p, TsconfigCache as q, BindingBundleState as r, BindingEsmExternalRequirePluginConfig as s, BindingBuiltinPluginName as t, BindingMagicString as u, BindingTsconfigCompilerOptions as v, BindingViteJsonPluginConfig as w, BindingViteBuildImportAnalysisPluginConfig as x, BindingTsconfigRawOptions as y, OxcReactCompilerOptions as z };
|