@rollipop/rolldown 1.0.0-rc.3 → 1.0.0-rc.5
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/bin/cli.mjs +0 -1
- package/dist/cli.mjs +11 -22
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +10 -11
- package/dist/experimental-index.d.mts +26 -6
- package/dist/experimental-index.mjs +39 -22
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +2 -8
- package/dist/get-log-filter.mjs +1 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +10 -13
- package/dist/parallel-plugin-worker.mjs +7 -9
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parallel-plugin.mjs +1 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +4 -6
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +4 -6
- package/dist/shared/{binding-D25Pz9Tj.mjs → binding-BpAdsRMp.mjs} +33 -42
- package/dist/shared/{binding-C4ZlFAt6.d.mts → binding-MOe7QjvW.d.mts} +22 -6
- package/dist/shared/{bindingify-input-options-D6jfpJ6l.mjs → bindingify-input-options-DlgCN9zc.mjs} +36 -58
- package/dist/shared/{constructors-C-tyKVjw.d.mts → constructors-BVMsBEI4.d.mts} +2 -2
- package/dist/shared/{constructors-BAGdj697.mjs → constructors-ByA8Vmcs.mjs} +2 -4
- package/dist/shared/{define-config-BKLqq_zt.d.mts → define-config-D2erlXSV.d.mts} +75 -30
- package/dist/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
- package/dist/shared/{error-BoaGIj5N.mjs → error-Rnftw-T1.mjs} +3 -8
- package/dist/shared/{load-config-CV5K8wKJ.mjs → load-config-C1TxsD8r.mjs} +2 -4
- package/dist/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
- package/dist/shared/{misc-Xty885dB.mjs → misc-DJYbNKZX.mjs} +1 -2
- package/dist/shared/{normalize-string-or-regex-tBSnk6HY.mjs → normalize-string-or-regex-BFIgWR19.mjs} +3 -6
- package/dist/shared/{parse-DWZRPGsB.mjs → parse-BuECM1WH.mjs} +2 -5
- package/dist/shared/{prompt-B56gTa4S.mjs → prompt-BYQIwEjg.mjs} +1 -3
- package/dist/shared/{rolldown-CZ1SIh-x.mjs → rolldown-BpbRpba4.mjs} +2 -4
- package/dist/shared/{rolldown-build-BYA-VVk0.mjs → rolldown-build-Cc7GWaEw.mjs} +427 -473
- package/dist/shared/{transform-CIcvJTbn.mjs → transform-CFiExOzd.mjs} +3 -6
- package/dist/shared/{transform-DoG7c5_r.d.mts → transform-DKslvixZ.d.mts} +1 -1
- package/dist/shared/{watch-DV7vV2OV.mjs → watch-BBA-reCD.mjs} +71 -77
- package/dist/utils-index.d.mts +2 -2
- package/dist/utils-index.mjs +9 -18
- package/package.json +12 -12
- package/dist/cli-setup.d.mts +0 -1
- package/dist/cli-setup.mjs +0 -17
package/bin/cli.mjs
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import "./shared/normalize-string-or-regex-
|
|
4
|
-
import { S as version, x as description } from "./shared/bindingify-input-options-
|
|
5
|
-
import { t as arraify } from "./shared/misc-
|
|
6
|
-
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText$1, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-
|
|
7
|
-
import "./shared/error-
|
|
8
|
-
import "./shared/parse-
|
|
9
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
10
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
1
|
+
import "./shared/binding-BpAdsRMp.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-BBA-reCD.mjs";
|
|
3
|
+
import "./shared/normalize-string-or-regex-BFIgWR19.mjs";
|
|
4
|
+
import { S as version, x as description } from "./shared/bindingify-input-options-DlgCN9zc.mjs";
|
|
5
|
+
import { t as arraify } from "./shared/misc-DJYbNKZX.mjs";
|
|
6
|
+
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText$1, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-Cc7GWaEw.mjs";
|
|
7
|
+
import "./shared/error-Rnftw-T1.mjs";
|
|
8
|
+
import "./shared/parse-BuECM1WH.mjs";
|
|
9
|
+
import { t as rolldown } from "./shared/rolldown-BpbRpba4.mjs";
|
|
10
|
+
import { t as loadConfig } from "./shared/load-config-C1TxsD8r.mjs";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import { parseArgs } from "node:util";
|
|
13
13
|
import process$1 from "node:process";
|
|
14
14
|
import { performance } from "node:perf_hooks";
|
|
15
|
-
|
|
16
15
|
//#region src/cli/arguments/alias.ts
|
|
17
16
|
const alias = {
|
|
18
17
|
config: {
|
|
@@ -57,7 +56,6 @@ const alias = {
|
|
|
57
56
|
},
|
|
58
57
|
moduleTypes: { hint: "types" }
|
|
59
58
|
};
|
|
60
|
-
|
|
61
59
|
//#endregion
|
|
62
60
|
//#region src/cli/arguments/utils.ts
|
|
63
61
|
function setNestedProperty(obj, path, value) {
|
|
@@ -81,7 +79,6 @@ function camelCaseToKebabCase(str) {
|
|
|
81
79
|
function kebabCaseToCamelCase(str) {
|
|
82
80
|
return str.replace(/-./g, (match) => match[1].toUpperCase());
|
|
83
81
|
}
|
|
84
|
-
|
|
85
82
|
//#endregion
|
|
86
83
|
//#region src/cli/arguments/normalize.ts
|
|
87
84
|
function normalizeCliOptions(cliOptions, positionals) {
|
|
@@ -135,7 +132,6 @@ function normalizeCliOptions(cliOptions, positionals) {
|
|
|
135
132
|
else result.input.input = positionals;
|
|
136
133
|
return result;
|
|
137
134
|
}
|
|
138
|
-
|
|
139
135
|
//#endregion
|
|
140
136
|
//#region src/cli/arguments/index.ts
|
|
141
137
|
const schemaInfo = getCliSchemaInfo();
|
|
@@ -256,7 +252,6 @@ function parseCliArguments() {
|
|
|
256
252
|
rawArgs
|
|
257
253
|
};
|
|
258
254
|
}
|
|
259
|
-
|
|
260
255
|
//#endregion
|
|
261
256
|
//#region src/utils/clear-screen.ts
|
|
262
257
|
const CLEAR_SCREEN = "\x1Bc";
|
|
@@ -267,7 +262,6 @@ function getClearScreenFunction(options) {
|
|
|
267
262
|
process.stdout.write(CLEAR_SCREEN);
|
|
268
263
|
};
|
|
269
264
|
}
|
|
270
|
-
|
|
271
265
|
//#endregion
|
|
272
266
|
//#region \0@oxc-project+runtime@0.115.0/helpers/usingCtx.js
|
|
273
267
|
function _usingCtx() {
|
|
@@ -324,7 +318,6 @@ function _usingCtx() {
|
|
|
324
318
|
}
|
|
325
319
|
};
|
|
326
320
|
}
|
|
327
|
-
|
|
328
321
|
//#endregion
|
|
329
322
|
//#region src/cli/commands/bundle.ts
|
|
330
323
|
async function bundleWithConfig(configPath, cliOptions, rawArgs = {}) {
|
|
@@ -501,7 +494,6 @@ function relativeId(id) {
|
|
|
501
494
|
if (!path.isAbsolute(id)) return id;
|
|
502
495
|
return path.relative(path.resolve(), id);
|
|
503
496
|
}
|
|
504
|
-
|
|
505
497
|
//#endregion
|
|
506
498
|
//#region src/cli/commands/help.ts
|
|
507
499
|
const examples = [
|
|
@@ -574,7 +566,6 @@ function generateHelpText() {
|
|
|
574
566
|
function showHelp() {
|
|
575
567
|
logger.log(generateHelpText());
|
|
576
568
|
}
|
|
577
|
-
|
|
578
569
|
//#endregion
|
|
579
570
|
//#region src/cli/version-check.ts
|
|
580
571
|
function checkNodeVersion(nodeVersion) {
|
|
@@ -583,7 +574,6 @@ function checkNodeVersion(nodeVersion) {
|
|
|
583
574
|
const minor = parseInt(currentVersion[1], 10);
|
|
584
575
|
return major === 20 && minor >= 19 || major === 22 && minor >= 12 || major > 22;
|
|
585
576
|
}
|
|
586
|
-
|
|
587
577
|
//#endregion
|
|
588
578
|
//#region src/cli/index.ts
|
|
589
579
|
if (!checkNodeVersion(process$1.versions.node)) logger.warn(`You are using Node.js ${process$1.versions.node}. Rolldown requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.`);
|
|
@@ -614,6 +604,5 @@ main().catch((err) => {
|
|
|
614
604
|
logger.error(err);
|
|
615
605
|
process$1.exit(1);
|
|
616
606
|
});
|
|
617
|
-
|
|
618
607
|
//#endregion
|
|
619
|
-
export {
|
|
608
|
+
export {};
|
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import {
|
|
1
|
+
import "./shared/binding-MOe7QjvW.mjs";
|
|
2
|
+
import { F as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-D2erlXSV.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
/**
|
package/dist/config.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import "./shared/normalize-string-or-regex-
|
|
3
|
-
import { b as VERSION } from "./shared/bindingify-input-options-
|
|
4
|
-
import "./shared/rolldown-build-
|
|
5
|
-
import "./shared/error-
|
|
6
|
-
import "./shared/parse-
|
|
7
|
-
import "./shared/rolldown-
|
|
8
|
-
import { t as defineConfig } from "./shared/define-config-
|
|
9
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
10
|
-
|
|
11
|
-
export { VERSION, defineConfig, loadConfig };
|
|
1
|
+
import "./shared/binding-BpAdsRMp.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-BFIgWR19.mjs";
|
|
3
|
+
import { b as VERSION } from "./shared/bindingify-input-options-DlgCN9zc.mjs";
|
|
4
|
+
import "./shared/rolldown-build-Cc7GWaEw.mjs";
|
|
5
|
+
import "./shared/error-Rnftw-T1.mjs";
|
|
6
|
+
import "./shared/parse-BuECM1WH.mjs";
|
|
7
|
+
import "./shared/rolldown-BpbRpba4.mjs";
|
|
8
|
+
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
9
|
+
import { t as loadConfig } from "./shared/load-config-C1TxsD8r.mjs";
|
|
10
|
+
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Gt as
|
|
3
|
-
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-
|
|
4
|
-
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, n as TransformResult$1, o as MinifyResult$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-
|
|
1
|
+
import { G as TsconfigCache$1, H as ResolverFactory, J as moduleRunnerTransform, K as isolatedDeclaration, L as NapiResolveOptions, M as IsolatedDeclarationsOptions, N as IsolatedDeclarationsResult, V as ResolveResult, Y as resolveTsconfig, f as BindingRebuildStrategy, g as BindingRollipopWorkletsPluginConfig, h as BindingRollipopReactRefreshWrapperPluginConfig, i as BindingClientHmrUpdate, k as BindingViteTransformPluginConfig, n as BindingBundleAnalyzerPluginConfig, q as isolatedDeclarationSync, r as BindingBundleState, v as BindingTsconfigCompilerOptions, w as BindingViteManifestPluginConfig, y as BindingTsconfigRawOptions } from "./shared/binding-MOe7QjvW.mjs";
|
|
2
|
+
import { Gt as RolldownOutput, It as OutputOptions, N as BuiltinPlugin, X as defineParallelPlugin, c as InputOptions, qt as freeExternalMemory, st as NormalizedOutputOptions } from "./shared/define-config-D2erlXSV.mjs";
|
|
3
|
+
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-BVMsBEI4.mjs";
|
|
4
|
+
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, n as TransformResult$1, o as MinifyResult$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-DKslvixZ.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -124,7 +124,7 @@ declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
|
|
|
124
124
|
/**
|
|
125
125
|
* A plugin that analyzes bundle composition and generates detailed reports.
|
|
126
126
|
*
|
|
127
|
-
* The plugin outputs a
|
|
127
|
+
* The plugin outputs a file containing detailed information about:
|
|
128
128
|
* - All chunks and their relationships
|
|
129
129
|
* - Modules bundled in each chunk
|
|
130
130
|
* - Import dependencies between chunks
|
|
@@ -154,6 +154,20 @@ declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
|
|
|
154
154
|
* ]
|
|
155
155
|
* }
|
|
156
156
|
* ```
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* **LLM-friendly markdown output**
|
|
160
|
+
* ```js
|
|
161
|
+
* import { chunkVisualizePlugin } from 'rolldown/experimental';
|
|
162
|
+
*
|
|
163
|
+
* export default {
|
|
164
|
+
* plugins: [
|
|
165
|
+
* chunkVisualizePlugin({
|
|
166
|
+
* format: 'md'
|
|
167
|
+
* })
|
|
168
|
+
* ]
|
|
169
|
+
* }
|
|
170
|
+
* ```
|
|
157
171
|
*/
|
|
158
172
|
declare function bundleAnalyzerPlugin(config?: BindingBundleAnalyzerPluginConfig): BuiltinPlugin;
|
|
159
173
|
//#endregion
|
|
@@ -173,6 +187,12 @@ type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"
|
|
|
173
187
|
};
|
|
174
188
|
declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
|
|
175
189
|
//#endregion
|
|
190
|
+
//#region src/builtin-plugin/rollipop-react-refresh-wrapper-plugin.d.ts
|
|
191
|
+
declare function rollipopReactRefreshWrapperPlugin(config: BindingRollipopReactRefreshWrapperPluginConfig): BuiltinPlugin;
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/builtin-plugin/rollipop-worklets-plugin.d.ts
|
|
194
|
+
declare function rollipopWorkletsPlugin(config: BindingRollipopWorkletsPluginConfig): BuiltinPlugin;
|
|
195
|
+
//#endregion
|
|
176
196
|
//#region src/experimental-index.d.ts
|
|
177
197
|
/**
|
|
178
198
|
* In-memory file system for browser builds.
|
|
@@ -236,4 +256,4 @@ type TsconfigRawOptions = BindingTsconfigRawOptions;
|
|
|
236
256
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
237
257
|
type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
|
|
238
258
|
//#endregion
|
|
239
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin,
|
|
259
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type BindingRollipopReactRefreshWrapperPluginConfig as RollipopReactRefreshWrapperPluginConfig, type BindingRollipopWorkletsPluginConfig as RollipopWorkletsPluginConfig, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, rollipopReactRefreshWrapperPlugin, rollipopWorkletsPlugin, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,13 +1,12 @@
|
|
|
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 { a 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 viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-
|
|
8
|
-
import { a as minifySync$1, i as minify$1, n as transform$1, r as transformSync$1, t as import_binding$1 } from "./shared/transform-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BpAdsRMp.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BFIgWR19.mjs";
|
|
3
|
+
import { a as transformToRollupOutput } from "./shared/bindingify-input-options-DlgCN9zc.mjs";
|
|
4
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-Cc7GWaEw.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-Rnftw-T1.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-BuECM1WH.mjs";
|
|
7
|
+
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-ByA8Vmcs.mjs";
|
|
8
|
+
import { a as minifySync$1, i as minify$1, n as transform$1, r as transformSync$1, t as import_binding$1 } from "./shared/transform-CFiExOzd.mjs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
10
|
-
|
|
11
10
|
//#region src/api/dev/dev-engine.ts
|
|
12
11
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
13
12
|
var DevEngine = class DevEngine {
|
|
@@ -100,11 +99,9 @@ var DevEngine = class DevEngine {
|
|
|
100
99
|
return this.#inner.compileEntry(moduleId, clientId);
|
|
101
100
|
}
|
|
102
101
|
};
|
|
103
|
-
|
|
104
102
|
//#endregion
|
|
105
103
|
//#region src/api/dev/index.ts
|
|
106
104
|
const dev = (...args) => DevEngine.create(...args);
|
|
107
|
-
|
|
108
105
|
//#endregion
|
|
109
106
|
//#region src/types/external-memory-handle.ts
|
|
110
107
|
const symbolForExternalMemoryHandle = "__rolldown_external_memory_handle__";
|
|
@@ -145,7 +142,6 @@ const symbolForExternalMemoryHandle = "__rolldown_external_memory_handle__";
|
|
|
145
142
|
function freeExternalMemory(handle, keepDataAlive = false) {
|
|
146
143
|
return handle[symbolForExternalMemoryHandle](keepDataAlive);
|
|
147
144
|
}
|
|
148
|
-
|
|
149
145
|
//#endregion
|
|
150
146
|
//#region src/api/experimental.ts
|
|
151
147
|
/**
|
|
@@ -186,7 +182,6 @@ const scan = async (rawInputOptions, rawOutputOptions = {}) => {
|
|
|
186
182
|
}
|
|
187
183
|
return cleanupPromise;
|
|
188
184
|
};
|
|
189
|
-
|
|
190
185
|
//#endregion
|
|
191
186
|
//#region src/plugin/parallel-plugin.ts
|
|
192
187
|
function defineParallelPlugin(pluginPath) {
|
|
@@ -197,19 +192,17 @@ function defineParallelPlugin(pluginPath) {
|
|
|
197
192
|
} };
|
|
198
193
|
};
|
|
199
194
|
}
|
|
200
|
-
|
|
201
195
|
//#endregion
|
|
202
196
|
//#region src/builtin-plugin/alias-plugin.ts
|
|
203
197
|
function viteAliasPlugin(config) {
|
|
204
198
|
return new BuiltinPlugin("builtin:vite-alias", config);
|
|
205
199
|
}
|
|
206
|
-
|
|
207
200
|
//#endregion
|
|
208
201
|
//#region src/builtin-plugin/bundle-analyzer-plugin.ts
|
|
209
202
|
/**
|
|
210
203
|
* A plugin that analyzes bundle composition and generates detailed reports.
|
|
211
204
|
*
|
|
212
|
-
* The plugin outputs a
|
|
205
|
+
* The plugin outputs a file containing detailed information about:
|
|
213
206
|
* - All chunks and their relationships
|
|
214
207
|
* - Modules bundled in each chunk
|
|
215
208
|
* - Import dependencies between chunks
|
|
@@ -239,11 +232,24 @@ function viteAliasPlugin(config) {
|
|
|
239
232
|
* ]
|
|
240
233
|
* }
|
|
241
234
|
* ```
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* **LLM-friendly markdown output**
|
|
238
|
+
* ```js
|
|
239
|
+
* import { chunkVisualizePlugin } from 'rolldown/experimental';
|
|
240
|
+
*
|
|
241
|
+
* export default {
|
|
242
|
+
* plugins: [
|
|
243
|
+
* chunkVisualizePlugin({
|
|
244
|
+
* format: 'md'
|
|
245
|
+
* })
|
|
246
|
+
* ]
|
|
247
|
+
* }
|
|
248
|
+
* ```
|
|
242
249
|
*/
|
|
243
250
|
function bundleAnalyzerPlugin(config) {
|
|
244
251
|
return new BuiltinPlugin("builtin:bundle-analyzer", config);
|
|
245
252
|
}
|
|
246
|
-
|
|
247
253
|
//#endregion
|
|
248
254
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
249
255
|
function viteTransformPlugin(config) {
|
|
@@ -256,13 +262,26 @@ function viteTransformPlugin(config) {
|
|
|
256
262
|
yarnPnp: typeof process === "object" && !!process.versions?.pnp
|
|
257
263
|
});
|
|
258
264
|
}
|
|
259
|
-
|
|
260
265
|
//#endregion
|
|
261
266
|
//#region src/builtin-plugin/vite-manifest-plugin.ts
|
|
262
267
|
function viteManifestPlugin(config) {
|
|
263
268
|
return new BuiltinPlugin("builtin:vite-manifest", config);
|
|
264
269
|
}
|
|
265
|
-
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region src/builtin-plugin/rollipop-react-refresh-wrapper-plugin.ts
|
|
272
|
+
function rollipopReactRefreshWrapperPlugin(config) {
|
|
273
|
+
return new BuiltinPlugin("builtin:rollipop-react-refresh-wrapper", {
|
|
274
|
+
cwd: config.cwd,
|
|
275
|
+
include: normalizedStringOrRegex(config.include),
|
|
276
|
+
exclude: normalizedStringOrRegex(config.exclude),
|
|
277
|
+
jsxImportSource: config.jsxImportSource
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
//#endregion
|
|
281
|
+
//#region src/builtin-plugin/rollipop-worklets-plugin.ts
|
|
282
|
+
function rollipopWorkletsPlugin(config) {
|
|
283
|
+
return new BuiltinPlugin("builtin:rollipop-worklets", config);
|
|
284
|
+
}
|
|
266
285
|
//#endregion
|
|
267
286
|
//#region src/experimental-index.ts
|
|
268
287
|
/**
|
|
@@ -307,13 +326,11 @@ const transform = transform$1;
|
|
|
307
326
|
const transformSync = transformSync$1;
|
|
308
327
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
309
328
|
const TsconfigCache = import_binding$1.TsconfigCache;
|
|
310
|
-
|
|
311
329
|
//#endregion
|
|
312
330
|
var BindingRebuildStrategy = import_binding.BindingRebuildStrategy;
|
|
313
331
|
var ResolverFactory = import_binding.ResolverFactory;
|
|
314
|
-
var createTokioRuntime = import_binding.createTokioRuntime;
|
|
315
332
|
var isolatedDeclaration = import_binding.isolatedDeclaration;
|
|
316
333
|
var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
|
|
317
334
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
318
335
|
var resolveTsconfig = import_binding.resolveTsconfig;
|
|
319
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin,
|
|
336
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, rollipopReactRefreshWrapperPlugin, rollipopWorkletsPlugin, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import {
|
|
1
|
+
import "./shared/binding-MOe7QjvW.mjs";
|
|
2
|
+
import { M as withFilter } from "./shared/define-config-D2erlXSV.mjs";
|
|
3
3
|
|
|
4
4
|
//#region ../pluginutils/dist/filter/composable-filters.d.ts
|
|
5
5
|
type StringOrRegExp = string | RegExp;
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as isPromiseLike, t as arraify } from "./shared/misc-
|
|
2
|
-
|
|
1
|
+
import { n as isPromiseLike, t as arraify } from "./shared/misc-DJYbNKZX.mjs";
|
|
3
2
|
//#region ../pluginutils/dist/utils.js
|
|
4
3
|
const postfixRE = /[?#].*$/;
|
|
5
4
|
function cleanUrl(url) {
|
|
@@ -12,7 +11,6 @@ function extractQueryWithoutFragment(url) {
|
|
|
12
11
|
if (fragmentIndex === -1) return url.substring(questionMarkIndex);
|
|
13
12
|
else return url.substring(questionMarkIndex, fragmentIndex);
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
//#endregion
|
|
17
15
|
//#region ../pluginutils/dist/filter/composable-filters.js
|
|
18
16
|
var And = class {
|
|
@@ -203,7 +201,6 @@ function exprInterpreter(expr, code, id, moduleType, importerId, ctx = {}) {
|
|
|
203
201
|
default: throw new Error(`Expression ${JSON.stringify(expr)} is not expected.`);
|
|
204
202
|
}
|
|
205
203
|
}
|
|
206
|
-
|
|
207
204
|
//#endregion
|
|
208
205
|
//#region ../pluginutils/dist/filter/filter-vite-plugins.js
|
|
209
206
|
/**
|
|
@@ -260,7 +257,6 @@ function filterVitePlugins(plugins) {
|
|
|
260
257
|
}
|
|
261
258
|
return result;
|
|
262
259
|
}
|
|
263
|
-
|
|
264
260
|
//#endregion
|
|
265
261
|
//#region ../pluginutils/dist/filter/simple-filters.js
|
|
266
262
|
/**
|
|
@@ -324,7 +320,6 @@ function makeIdFilterToMatchWithQuery(input) {
|
|
|
324
320
|
function makeRegexIdFilterToMatchWithQuery(input) {
|
|
325
321
|
return new RegExp(input.source.replace(/(?<!\\)\$/g, "(?:\\?.*)?$"), input.flags);
|
|
326
322
|
}
|
|
327
|
-
|
|
328
323
|
//#endregion
|
|
329
324
|
//#region src/plugin/with-filter.ts
|
|
330
325
|
function withFilterImpl(pluginOption, filterObjectList) {
|
|
@@ -387,6 +382,5 @@ function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
|
|
|
387
382
|
}
|
|
388
383
|
return -1;
|
|
389
384
|
}
|
|
390
|
-
|
|
391
385
|
//#endregion
|
|
392
|
-
export { and, code, exactRegex, exclude, exprInterpreter, filterVitePlugins, id, importerId, include, interpreter, interpreterImpl, makeIdFiltersToMatchWithQuery, moduleType, not, or, prefixRegex, queries, query, withFilter };
|
|
386
|
+
export { and, code, exactRegex, exclude, exprInterpreter, filterVitePlugins, id, importerId, include, interpreter, interpreterImpl, makeIdFiltersToMatchWithQuery, moduleType, not, or, prefixRegex, queries, query, withFilter };
|
package/dist/get-log-filter.mjs
CHANGED
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-C6h4g8dA.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as
|
|
4
|
-
export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChecksOptions, ChunkFileNamesFunction, ChunkingContext, CodeSplittingGroup, CodeSplittingNameFunction, CodeSplittingOptions, CommentsOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedChunk, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, ExternalOptionFunction, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, 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, PluginContextResolveOptions, PreRenderedAsset, PreRenderedChunk, RUNTIME_MODULE_ID, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownError, RolldownError as RollupError, RolldownFileStats, RolldownFsModule, RolldownLog, RolldownLog as RollupLog, RolldownLogWithString, RolldownLogWithString as RollupLogWithString, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RolldownWatcherWatcherEventMap, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformOptions, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
|
2
|
+
import { B as PreRenderedChunk, u as BindingMagicString } from "./shared/binding-MOe7QjvW.mjs";
|
|
3
|
+
import { $ as GeneralHookFilter, A as SourceDescription, At as CommentsOptions, B as TreeshakingOptions, C as PartialResolvedId, Ct as AdvancedChunksGroup, D as ResolvedId, Dt as CodeSplittingGroup, E as ResolveIdResult, Et as ChunkingContext, F as VERSION, Ft as ModuleFormat, G as EmittedPrebuiltChunk, Gt as RolldownOutput, H as EmittedAsset, Ht as OutputChunk, I as BundleError, It as OutputOptions, J as PluginContextResolveOptions, Jt as ModuleInfo, K as GetModuleInfo, Kt as SourceMap, L as ExistingRawSourceMap, Lt as PreRenderedAsset, Mt as GeneratedCodePreset, Nt as GlobalsFunction, O as RolldownPlugin, Ot as CodeSplittingNameFunction, P as RUNTIME_MODULE_ID, Pt as MinifyOptions, Q as PluginContextMeta, R as SourceMapInput, S as ParallelPluginHooks, St as AddonFunction, T as ResolveIdExtraOptions, Tt as ChunkFileNamesFunction, U as EmittedChunk, Ut as RenderedChunk, V as TransformPluginContext, Vt as OutputAsset, W as EmittedFile, Wt as RenderedModule, Y as DefineParallelPluginResult, Yt as SourcemapIgnoreListOption, Z as MinimalPluginContext, _ as ImportKind, _t as WatchOptions, a as ExternalOption, at as RolldownFsModule, b as ModuleType, bt as BuildOptions, c as InputOptions, ct as NormalizedInputOptions, d as WatcherFileWatcherOptions, dt as LoggingFunction, et as HookFilter, f as WatcherOptions, ft as WarningHandlerWithDefault, g as HookFilterExtension, gt as RolldownWatcherWatcherEventMap, h as FunctionPluginHooks, ht as RolldownWatcherEvent, i as RolldownOptions, it as RolldownFileStats, j as TransformResult, jt as GeneratedCodeOptions, k as RolldownPluginOption, kt as CodeSplittingOptions, l as ModuleTypes, lt as TransformOptions, m as CustomPluginOptions, mt as RolldownWatcher, n as RolldownOptionsFunction, nt as BufferEncoding, o as ExternalOptionFunction, ot as InternalModuleFormat, p as AsyncPluginHooks, pt as watch, q as PluginContext, r as defineConfig, rt as RolldownDirectoryEntry, s as InputOption, st as NormalizedOutputOptions, t as ConfigExport, tt as ModuleTypeFilter, u as OptimizationOptions, ut as ChecksOptions, v as LoadResult, vt as rolldown, w as Plugin, wt as AdvancedChunksOptions, x as ObjectHook, xt as build, y as ModuleOptions, yt as RolldownBuild, z as OutputBundle, zt as PartialNull } from "./shared/define-config-D2erlXSV.mjs";
|
|
4
|
+
export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, BundleError, ChecksOptions, ChunkFileNamesFunction, ChunkingContext, CodeSplittingGroup, CodeSplittingNameFunction, CodeSplittingOptions, CommentsOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedChunk, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, ExternalOptionFunction, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, 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, PluginContextResolveOptions, PreRenderedAsset, PreRenderedChunk, RUNTIME_MODULE_ID, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownError, RolldownError as RollupError, RolldownFileStats, RolldownFsModule, RolldownLog, RolldownLog as RollupLog, RolldownLogWithString, RolldownLogWithString as RollupLogWithString, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RolldownWatcherWatcherEventMap, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformOptions, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherFileWatcherOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
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 "./shared/normalize-string-or-regex-
|
|
4
|
-
import { b as VERSION, y as RUNTIME_MODULE_ID } from "./shared/bindingify-input-options-
|
|
5
|
-
import "./shared/rolldown-build-
|
|
6
|
-
import "./shared/error-
|
|
7
|
-
import "./shared/parse-
|
|
8
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
9
|
-
import { t as defineConfig } from "./shared/define-config-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BpAdsRMp.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-BBA-reCD.mjs";
|
|
3
|
+
import "./shared/normalize-string-or-regex-BFIgWR19.mjs";
|
|
4
|
+
import { b as VERSION, y as RUNTIME_MODULE_ID } from "./shared/bindingify-input-options-DlgCN9zc.mjs";
|
|
5
|
+
import "./shared/rolldown-build-Cc7GWaEw.mjs";
|
|
6
|
+
import "./shared/error-Rnftw-T1.mjs";
|
|
7
|
+
import "./shared/parse-BuECM1WH.mjs";
|
|
8
|
+
import { t as rolldown } from "./shared/rolldown-BpbRpba4.mjs";
|
|
9
|
+
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
10
10
|
import { isMainThread } from "node:worker_threads";
|
|
11
|
-
|
|
12
11
|
//#region src/setup.ts
|
|
13
12
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
14
13
|
if (isMainThread) {
|
|
@@ -17,7 +16,6 @@ if (isMainThread) {
|
|
|
17
16
|
subscriberGuard?.close();
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
|
-
|
|
21
19
|
//#endregion
|
|
22
20
|
//#region src/api/build.ts
|
|
23
21
|
/**
|
|
@@ -52,7 +50,6 @@ async function build(options) {
|
|
|
52
50
|
}
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
|
-
|
|
56
53
|
//#endregion
|
|
57
54
|
var BindingMagicString = import_binding.BindingMagicString;
|
|
58
|
-
export { BindingMagicString, RUNTIME_MODULE_ID, VERSION, build, defineConfig, rolldown, watch };
|
|
55
|
+
export { BindingMagicString, RUNTIME_MODULE_ID, VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import "./shared/normalize-string-or-regex-
|
|
3
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
4
|
-
import "./shared/error-
|
|
5
|
-
import "./shared/parse-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BpAdsRMp.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-BFIgWR19.mjs";
|
|
3
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-DlgCN9zc.mjs";
|
|
4
|
+
import "./shared/error-Rnftw-T1.mjs";
|
|
5
|
+
import "./shared/parse-BuECM1WH.mjs";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
|
-
|
|
8
7
|
//#region src/parallel-plugin-worker.ts
|
|
9
8
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
10
9
|
const { registryId, pluginInfos, threadNumber } = workerData;
|
|
@@ -15,7 +14,7 @@ const { registryId, pluginInfos, threadNumber } = workerData;
|
|
|
15
14
|
const plugin = await definePluginImpl(pluginInfo.options, { threadNumber });
|
|
16
15
|
return {
|
|
17
16
|
index: pluginInfo.index,
|
|
18
|
-
plugin: bindingifyPlugin(plugin, {}, {}, new PluginContextData(() => {}, {}, []), [], () => {}, "info", false)
|
|
17
|
+
plugin: bindingifyPlugin(plugin, {}, {}, new PluginContextData(() => {}, {}, [], []), [], () => {}, "info", false)
|
|
19
18
|
};
|
|
20
19
|
})));
|
|
21
20
|
parentPort.postMessage({ type: "success" });
|
|
@@ -28,6 +27,5 @@ const { registryId, pluginInfos, threadNumber } = workerData;
|
|
|
28
27
|
parentPort.unref();
|
|
29
28
|
}
|
|
30
29
|
})();
|
|
31
|
-
|
|
32
30
|
//#endregion
|
|
33
|
-
export {
|
|
31
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import {
|
|
1
|
+
import "./shared/binding-MOe7QjvW.mjs";
|
|
2
|
+
import { Rt as MaybePromise, w as Plugin } from "./shared/define-config-D2erlXSV.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parallel-plugin.mjs
CHANGED
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-
|
|
3
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
4
|
-
|
|
1
|
+
import "./shared/binding-BpAdsRMp.mjs";
|
|
2
|
+
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
|
|
3
|
+
import { n as parseSync, t as parse } from "./shared/parse-BuECM1WH.mjs";
|
|
5
4
|
//#region src/parse-ast-index.ts
|
|
6
5
|
function wrap(result, filename, sourceText) {
|
|
7
6
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
|
@@ -58,6 +57,5 @@ async function parseAstAsync(sourceText, options, filename) {
|
|
|
58
57
|
...options
|
|
59
58
|
}), filename, sourceText);
|
|
60
59
|
}
|
|
61
|
-
|
|
62
60
|
//#endregion
|
|
63
|
-
export { parseAst, parseAstAsync };
|
|
61
|
+
export { parseAst, parseAstAsync };
|
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-MOe7QjvW.mjs";
|
|
2
|
+
import { N as BuiltinPlugin } from "./shared/define-config-D2erlXSV.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-BVMsBEI4.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
/**
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
4
|
-
|
|
1
|
+
import "./shared/binding-BpAdsRMp.mjs";
|
|
2
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-BFIgWR19.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-ByA8Vmcs.mjs";
|
|
5
4
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
6
5
|
/**
|
|
7
6
|
* Replaces targeted strings in files while bundling.
|
|
@@ -38,6 +37,5 @@ function replacePlugin(values = {}, options = {}) {
|
|
|
38
37
|
values
|
|
39
38
|
}));
|
|
40
39
|
}
|
|
41
|
-
|
|
42
40
|
//#endregion
|
|
43
|
-
export { esmExternalRequirePlugin, replacePlugin };
|
|
41
|
+
export { esmExternalRequirePlugin, replacePlugin };
|