@voidzero-dev/vite-plus-core 0.0.0-de8bd982.20260205-1433 → 0.0.0-e32b32e5.20260224-0706
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/rolldown/cli-setup.mjs +1 -1
- package/dist/rolldown/cli.mjs +10 -9
- package/dist/rolldown/config.d.mts +2 -2
- package/dist/rolldown/config.mjs +9 -8
- package/dist/rolldown/experimental-index.d.mts +72 -27
- package/dist/rolldown/experimental-index.mjs +64 -36
- package/dist/rolldown/filter-index.d.mts +2 -2
- package/dist/rolldown/get-log-filter.d.mts +3 -7
- package/dist/rolldown/index.d.mts +4 -4
- package/dist/rolldown/index.mjs +9 -8
- package/dist/rolldown/parallel-plugin-worker.mjs +5 -4
- package/dist/rolldown/parallel-plugin.d.mts +2 -2
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +3 -3
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +3 -3
- package/dist/rolldown/shared/{binding-D-XMzSaG.d.mts → binding-B4HaVp87.d.mts} +245 -93
- package/dist/rolldown/shared/{binding-DuOSzYPt.mjs → binding-eAM5CAoo.mjs} +4 -0
- package/dist/rolldown/shared/{bindingify-input-options-Bu6nUTgS.mjs → bindingify-input-options-B98M8Cgz.mjs} +17 -92
- package/dist/rolldown/shared/{constructors-KD7LvxpN.d.mts → constructors-BkfxO5px.d.mts} +3 -4
- package/dist/rolldown/shared/{constructors-DZVRHTli.mjs → constructors-DdT6KuVQ.mjs} +2 -5
- package/dist/rolldown/shared/{define-config-U4pj0ZDn.d.mts → define-config-RYvN7eA1.d.mts} +77 -5
- package/dist/rolldown/shared/error-CpxG7etL.mjs +90 -0
- package/dist/rolldown/shared/get-log-filter-D5_9u-u7.d.mts +7 -0
- package/dist/rolldown/shared/{load-config-O1K_tT_z.mjs → load-config-CQVZkjsL.mjs} +1 -1
- package/dist/rolldown/shared/{logs-NH298mHo.mjs → logs-COHDsWqD.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-DeZqg15i.mjs → normalize-string-or-regex-Dqznrk6L.mjs} +2 -2
- package/dist/rolldown/shared/{parse-DLraxqjd.mjs → parse-D9q1irbA.mjs} +22 -5
- package/dist/rolldown/shared/{rolldown-O0UKbTKf.mjs → rolldown-BTkXfjFD.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-BIs7C4B_.mjs → rolldown-build-C97gg8oe.mjs} +24 -9
- package/dist/rolldown/shared/transform-Beiln3kS.d.mts +92 -0
- package/dist/rolldown/shared/transform-C27ukHWs.mjs +91 -0
- package/dist/rolldown/shared/{watch-DQXGaDjx.mjs → watch-CIpF8Tjn.mjs} +5 -4
- package/dist/rolldown/utils-index.d.mts +352 -0
- package/dist/rolldown/utils-index.mjs +2408 -0
- package/dist/tsdown/build-C5RQkVSf-Sq8O6v2d.js +6 -0
- package/dist/tsdown/{build-l5WhXg4M-BBPqZr0m.js → build-C5RQkVSf-TFRE7tGr.js} +12 -16
- package/dist/tsdown/{debug-Cb_Nqpo4-BueIRvg1.js → debug-Cb_Nqpo4-Bp3Jla8o.js} +2 -2
- package/dist/tsdown/{detect-CCATtVj7-B86m8IqW.js → detect-CCATtVj7-CIEct60l.js} +1 -1
- package/dist/tsdown/{dist-dc0X0G6b.js → dist-DhHdxGfe.js} +0 -1
- package/dist/tsdown/{index-node-BjDys8jy--sqPE5mM.js → index-node-BjDys8jy-DouyYlgA.js} +1 -1
- package/dist/tsdown/index-types.d.ts +6 -6
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-d9yZSQqW.js → main-CL35d8F6.js} +3 -3
- package/dist/tsdown/run.js +4 -4
- package/dist/vite/client/client.mjs +4 -4
- package/dist/vite/node/chunks/build.js +4 -0
- package/dist/vite/node/chunks/build2.js +1 -1
- package/dist/vite/node/chunks/chunk.js +1 -14
- package/dist/vite/node/chunks/config.js +4 -0
- package/dist/vite/node/chunks/dist2.js +1 -1
- package/dist/vite/node/chunks/logger.js +5 -4
- package/dist/vite/node/chunks/{fetchableEnvironments.js → node.js} +315 -1774
- package/dist/vite/node/chunks/optimizer.js +4 -0
- package/dist/vite/node/chunks/postcss-import.js +1 -1
- package/dist/vite/node/chunks/preview.js +4 -0
- package/dist/vite/node/chunks/server.js +4 -0
- package/dist/vite/node/cli.js +14 -12
- package/dist/vite/node/index.d.ts +46 -6
- package/dist/vite/node/index.js +2 -13
- package/dist/vite/node/module-runner.js +64 -6
- package/package.json +20 -16
- /package/dist/rolldown/shared/{define-config-BVG4QvnP.mjs → define-config-B-Hn45NS.mjs} +0 -0
- /package/dist/rolldown/shared/{logging-CE90D8JR.d.mts → logging-CKYae7lu.d.mts} +0 -0
- /package/dist/rolldown/shared/{prompt-DeISmFRp.mjs → prompt-omTrgOHx.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-eAM5CAoo.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/cli/setup-index.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
package/dist/rolldown/cli.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import "./shared/normalize-string-or-regex-
|
|
4
|
-
import {
|
|
1
|
+
import "./shared/binding-eAM5CAoo.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-CIpF8Tjn.mjs";
|
|
3
|
+
import "./shared/normalize-string-or-regex-Dqznrk6L.mjs";
|
|
4
|
+
import { S as version, x as description } from "./shared/bindingify-input-options-B98M8Cgz.mjs";
|
|
5
5
|
import { t as arraify } from "./shared/misc-CCZIsXVO.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-
|
|
7
|
-
import "./shared/
|
|
8
|
-
import
|
|
9
|
-
import { t as
|
|
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-C97gg8oe.mjs";
|
|
7
|
+
import "./shared/error-CpxG7etL.mjs";
|
|
8
|
+
import "./shared/parse-D9q1irbA.mjs";
|
|
9
|
+
import { t as rolldown } from "./shared/rolldown-BTkXfjFD.mjs";
|
|
10
|
+
import { t as loadConfig } from "./shared/load-config-CQVZkjsL.mjs";
|
|
10
11
|
import path from "node:path";
|
|
11
12
|
import { parseArgs } from "node:util";
|
|
12
13
|
import process$1 from "node:process";
|
|
@@ -258,7 +259,7 @@ function getClearScreenFunction(options) {
|
|
|
258
259
|
}
|
|
259
260
|
|
|
260
261
|
//#endregion
|
|
261
|
-
//#region \0@oxc-project+runtime@0.
|
|
262
|
+
//#region \0@oxc-project+runtime@0.114.0/helpers/usingCtx.js
|
|
262
263
|
function _usingCtx() {
|
|
263
264
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
264
265
|
var n = Error();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { P as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-B4HaVp87.mjs";
|
|
2
|
+
import { P as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-RYvN7eA1.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/rolldown/config.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import "./shared/normalize-string-or-regex-
|
|
3
|
-
import {
|
|
4
|
-
import "./shared/rolldown-build-
|
|
5
|
-
import "./shared/
|
|
6
|
-
import "./shared/
|
|
7
|
-
import
|
|
8
|
-
import { t as
|
|
1
|
+
import "./shared/binding-eAM5CAoo.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-Dqznrk6L.mjs";
|
|
3
|
+
import { b as VERSION } from "./shared/bindingify-input-options-B98M8Cgz.mjs";
|
|
4
|
+
import "./shared/rolldown-build-C97gg8oe.mjs";
|
|
5
|
+
import "./shared/error-CpxG7etL.mjs";
|
|
6
|
+
import "./shared/parse-D9q1irbA.mjs";
|
|
7
|
+
import "./shared/rolldown-BTkXfjFD.mjs";
|
|
8
|
+
import { t as defineConfig } from "./shared/define-config-B-Hn45NS.mjs";
|
|
9
|
+
import { t as loadConfig } from "./shared/load-config-CQVZkjsL.mjs";
|
|
9
10
|
|
|
10
11
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
3
|
-
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin,
|
|
1
|
+
import { A as IsolatedDeclarationsOptions, B as ResolverFactory, D as BindingViteTransformPluginConfig, F as NapiResolveOptions, G as isolatedDeclaration, I as ParseResult$1, J as resolveTsconfig, K as isolatedDeclarationSync, L as ParserOptions$1, P as MinifyResult$1, S as BindingViteManifestPluginConfig, U as TsconfigCache$1, W as createTokioRuntime, _ as BindingTsconfigRawOptions, a as BindingEnhancedTransformOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsResult, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState, z as ResolveResult } from "./shared/binding-B4HaVp87.mjs";
|
|
2
|
+
import { Gt as freeExternalMemory, J as defineParallelPlugin, M as BuiltinPlugin, Pt as OutputOptions, Ut as RolldownOutput, at as NormalizedOutputOptions, c as InputOptions } from "./shared/define-config-RYvN7eA1.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-BkfxO5px.mjs";
|
|
4
|
+
import { a as minify$1, c as parseSync$1, i as MinifyOptions$1, n as transform$1, o as minifySync$1, r as transformSync$1, s as parse$1, t as TransformResult$1 } from "./shared/transform-Beiln3kS.mjs";
|
|
4
5
|
|
|
5
6
|
//#region src/api/dev/dev-options.d.ts
|
|
6
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -110,29 +111,6 @@ declare const dev: typeof DevEngine.create;
|
|
|
110
111
|
*/
|
|
111
112
|
declare const scan: (rawInputOptions: InputOptions, rawOutputOptions?: {}) => Promise<Promise<void>>;
|
|
112
113
|
//#endregion
|
|
113
|
-
//#region src/utils/parse.d.ts
|
|
114
|
-
/**
|
|
115
|
-
* Parse asynchronously.
|
|
116
|
-
*
|
|
117
|
-
* Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
|
|
118
|
-
*/
|
|
119
|
-
declare function parse(filename: string, sourceText: string, options?: ParserOptions | null): Promise<ParseResult>;
|
|
120
|
-
/** Parse synchronously. */
|
|
121
|
-
declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | null): ParseResult;
|
|
122
|
-
//#endregion
|
|
123
|
-
//#region src/utils/minify.d.ts
|
|
124
|
-
type MinifyOptions = MinifyOptions$1 & {
|
|
125
|
-
inputMap?: SourceMap;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Minify asynchronously.
|
|
129
|
-
*
|
|
130
|
-
* Note: This function can be slower than `minifySync` due to the overhead of spawning a thread.
|
|
131
|
-
*/
|
|
132
|
-
declare function minify(filename: string, sourceText: string, options?: MinifyOptions | null): Promise<MinifyResult>;
|
|
133
|
-
/** Minify synchronously. */
|
|
134
|
-
declare function minifySync(filename: string, sourceText: string, options?: MinifyOptions | null): MinifyResult;
|
|
135
|
-
//#endregion
|
|
136
114
|
//#region src/builtin-plugin/alias-plugin.d.ts
|
|
137
115
|
type ViteAliasPluginConfig = {
|
|
138
116
|
entries: {
|
|
@@ -142,6 +120,43 @@ type ViteAliasPluginConfig = {
|
|
|
142
120
|
};
|
|
143
121
|
declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
|
|
144
122
|
//#endregion
|
|
123
|
+
//#region src/builtin-plugin/bundle-analyzer-plugin.d.ts
|
|
124
|
+
/**
|
|
125
|
+
* A plugin that analyzes bundle composition and generates detailed reports.
|
|
126
|
+
*
|
|
127
|
+
* The plugin outputs a JSON file containing detailed information about:
|
|
128
|
+
* - All chunks and their relationships
|
|
129
|
+
* - Modules bundled in each chunk
|
|
130
|
+
* - Import dependencies between chunks
|
|
131
|
+
* - Reachable modules from each entry point
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```js
|
|
135
|
+
* import { bundleAnalyzerPlugin } from 'rolldown/experimental';
|
|
136
|
+
*
|
|
137
|
+
* export default {
|
|
138
|
+
* plugins: [
|
|
139
|
+
* bundleAnalyzerPlugin()
|
|
140
|
+
* ]
|
|
141
|
+
* }
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* **Custom filename**
|
|
146
|
+
* ```js
|
|
147
|
+
* import { bundleAnalyzerPlugin } from 'rolldown/experimental';
|
|
148
|
+
*
|
|
149
|
+
* export default {
|
|
150
|
+
* plugins: [
|
|
151
|
+
* bundleAnalyzerPlugin({
|
|
152
|
+
* fileName: 'bundle-analysis.json'
|
|
153
|
+
* })
|
|
154
|
+
* ]
|
|
155
|
+
* }
|
|
156
|
+
* ```
|
|
157
|
+
*/
|
|
158
|
+
declare function bundleAnalyzerPlugin(config?: BindingBundleAnalyzerPluginConfig): BuiltinPlugin;
|
|
159
|
+
//#endregion
|
|
145
160
|
//#region src/builtin-plugin/transform-plugin.d.ts
|
|
146
161
|
type TransformPattern = string | RegExp | readonly (RegExp | string)[];
|
|
147
162
|
type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude" | "yarnPnp"> & {
|
|
@@ -190,5 +205,35 @@ declare const memfs: {
|
|
|
190
205
|
fs: any;
|
|
191
206
|
volume: any;
|
|
192
207
|
} | undefined;
|
|
208
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
209
|
+
declare const parse: typeof parse$1;
|
|
210
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
211
|
+
declare const parseSync: typeof parseSync$1;
|
|
212
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
213
|
+
type ParseResult = ParseResult$1;
|
|
214
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
215
|
+
type ParserOptions = ParserOptions$1;
|
|
216
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
217
|
+
declare const minify: typeof minify$1;
|
|
218
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
219
|
+
declare const minifySync: typeof minifySync$1;
|
|
220
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
221
|
+
type MinifyOptions = MinifyOptions$1;
|
|
222
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
223
|
+
type MinifyResult = MinifyResult$1;
|
|
224
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
225
|
+
declare const transform: typeof transform$1;
|
|
226
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
227
|
+
declare const transformSync: typeof transformSync$1;
|
|
228
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
229
|
+
type TransformOptions = BindingEnhancedTransformOptions;
|
|
230
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
231
|
+
type TransformResult = TransformResult$1;
|
|
232
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
233
|
+
declare const TsconfigCache: typeof TsconfigCache$1;
|
|
234
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
235
|
+
type TsconfigRawOptions = BindingTsconfigRawOptions;
|
|
236
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
237
|
+
type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
|
|
193
238
|
//#endregion
|
|
194
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult,
|
|
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, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,9 +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 {
|
|
4
|
-
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-eAM5CAoo.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-Dqznrk6L.mjs";
|
|
3
|
+
import { a as transformToRollupOutput } from "./shared/bindingify-input-options-B98M8Cgz.mjs";
|
|
4
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-C97gg8oe.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-CpxG7etL.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-D9q1irbA.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-DdT6KuVQ.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-C27ukHWs.mjs";
|
|
7
9
|
import { pathToFileURL } from "node:url";
|
|
8
10
|
|
|
9
11
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -196,39 +198,52 @@ function defineParallelPlugin(pluginPath) {
|
|
|
196
198
|
};
|
|
197
199
|
}
|
|
198
200
|
|
|
199
|
-
//#endregion
|
|
200
|
-
//#region src/utils/minify.ts
|
|
201
|
-
/**
|
|
202
|
-
* Minify asynchronously.
|
|
203
|
-
*
|
|
204
|
-
* Note: This function can be slower than `minifySync` due to the overhead of spawning a thread.
|
|
205
|
-
*/
|
|
206
|
-
async function minify(filename, sourceText, options) {
|
|
207
|
-
const inputMap = bindingifySourcemap(options?.inputMap);
|
|
208
|
-
const result = await (0, import_binding.minify)(filename, sourceText, options);
|
|
209
|
-
if (result.map && inputMap) result.map = {
|
|
210
|
-
version: 3,
|
|
211
|
-
...(0, import_binding.collapseSourcemaps)([inputMap, bindingifySourcemap(result.map)])
|
|
212
|
-
};
|
|
213
|
-
return result;
|
|
214
|
-
}
|
|
215
|
-
/** Minify synchronously. */
|
|
216
|
-
function minifySync(filename, sourceText, options) {
|
|
217
|
-
const inputMap = bindingifySourcemap(options?.inputMap);
|
|
218
|
-
const result = (0, import_binding.minifySync)(filename, sourceText, options);
|
|
219
|
-
if (result.map && inputMap) result.map = {
|
|
220
|
-
version: 3,
|
|
221
|
-
...(0, import_binding.collapseSourcemaps)([inputMap, bindingifySourcemap(result.map)])
|
|
222
|
-
};
|
|
223
|
-
return result;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
201
|
//#endregion
|
|
227
202
|
//#region src/builtin-plugin/alias-plugin.ts
|
|
228
203
|
function viteAliasPlugin(config) {
|
|
229
204
|
return new BuiltinPlugin("builtin:vite-alias", config);
|
|
230
205
|
}
|
|
231
206
|
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region src/builtin-plugin/bundle-analyzer-plugin.ts
|
|
209
|
+
/**
|
|
210
|
+
* A plugin that analyzes bundle composition and generates detailed reports.
|
|
211
|
+
*
|
|
212
|
+
* The plugin outputs a JSON file containing detailed information about:
|
|
213
|
+
* - All chunks and their relationships
|
|
214
|
+
* - Modules bundled in each chunk
|
|
215
|
+
* - Import dependencies between chunks
|
|
216
|
+
* - Reachable modules from each entry point
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* ```js
|
|
220
|
+
* import { bundleAnalyzerPlugin } from 'rolldown/experimental';
|
|
221
|
+
*
|
|
222
|
+
* export default {
|
|
223
|
+
* plugins: [
|
|
224
|
+
* bundleAnalyzerPlugin()
|
|
225
|
+
* ]
|
|
226
|
+
* }
|
|
227
|
+
* ```
|
|
228
|
+
*
|
|
229
|
+
* @example
|
|
230
|
+
* **Custom filename**
|
|
231
|
+
* ```js
|
|
232
|
+
* import { bundleAnalyzerPlugin } from 'rolldown/experimental';
|
|
233
|
+
*
|
|
234
|
+
* export default {
|
|
235
|
+
* plugins: [
|
|
236
|
+
* bundleAnalyzerPlugin({
|
|
237
|
+
* fileName: 'bundle-analysis.json'
|
|
238
|
+
* })
|
|
239
|
+
* ]
|
|
240
|
+
* }
|
|
241
|
+
* ```
|
|
242
|
+
*/
|
|
243
|
+
function bundleAnalyzerPlugin(config) {
|
|
244
|
+
return new BuiltinPlugin("builtin:bundle-analyzer", config);
|
|
245
|
+
}
|
|
246
|
+
|
|
232
247
|
//#endregion
|
|
233
248
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
234
249
|
function viteTransformPlugin(config) {
|
|
@@ -278,6 +293,20 @@ function viteManifestPlugin(config) {
|
|
|
278
293
|
* @see {@link https://github.com/streamich/memfs} for more information on the memfs API.
|
|
279
294
|
*/
|
|
280
295
|
const memfs = void 0;
|
|
296
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
297
|
+
const parse = parse$1;
|
|
298
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
299
|
+
const parseSync = parseSync$1;
|
|
300
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
301
|
+
const minify = minify$1;
|
|
302
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
303
|
+
const minifySync = minifySync$1;
|
|
304
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
305
|
+
const transform = transform$1;
|
|
306
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
307
|
+
const transformSync = transformSync$1;
|
|
308
|
+
/** @deprecated Use from `rolldown/utils` instead. */
|
|
309
|
+
const TsconfigCache = import_binding$1.TsconfigCache;
|
|
281
310
|
|
|
282
311
|
//#endregion
|
|
283
312
|
var BindingRebuildStrategy = import_binding.BindingRebuildStrategy;
|
|
@@ -286,6 +315,5 @@ var createTokioRuntime = import_binding.createTokioRuntime;
|
|
|
286
315
|
var isolatedDeclaration = import_binding.isolatedDeclaration;
|
|
287
316
|
var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
|
|
288
317
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
289
|
-
var
|
|
290
|
-
|
|
291
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
318
|
+
var resolveTsconfig = import_binding.resolveTsconfig;
|
|
319
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { j as withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-B4HaVp87.mjs";
|
|
2
|
+
import { j as withFilter } from "./shared/define-config-RYvN7eA1.mjs";
|
|
3
3
|
|
|
4
4
|
//#region ../pluginutils/dist/filter/composable-filters.d.ts
|
|
5
5
|
type StringOrRegExp = string | RegExp;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { a as RolldownLog } from "./shared/logging-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type GetLogFilter = (filters: string[]) => (log: RolldownLog) => boolean;
|
|
5
|
-
declare const getLogFilter: GetLogFilter;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { GetLogFilter, type RolldownLog, type RolldownLog as RollupLog, getLogFilter as default };
|
|
1
|
+
import { a as RolldownLog } from "./shared/logging-CKYae7lu.mjs";
|
|
2
|
+
import { n as getLogFilter, t as GetLogFilter } from "./shared/get-log-filter-D5_9u-u7.mjs";
|
|
3
|
+
export { GetLogFilter, RolldownLog, RolldownLog as RollupLog, getLogFilter as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-
|
|
2
|
-
import {
|
|
3
|
-
import { $ as ModuleTypeFilter, A as TransformResult, At as
|
|
4
|
-
export {
|
|
1
|
+
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-CKYae7lu.mjs";
|
|
2
|
+
import { R as PreRenderedChunk, u as BindingMagicString } from "./shared/binding-B4HaVp87.mjs";
|
|
3
|
+
import { $ as ModuleTypeFilter, A as TransformResult, At as GeneratedCodePreset, B as EmittedAsset, Bt as OutputChunk, C as Plugin, Ct as ChunkFileNamesFunction, D as RolldownPlugin, Dt as CodeSplittingOptions, E as ResolvedId, Et as CodeSplittingNameFunction, F as ExistingRawSourceMap, Ft as PreRenderedAsset, G as PluginContext, H as EmittedFile, Ht as RenderedModule, I as SourceMapInput, K as PluginContextResolveOptions, Kt as ModuleInfo, L as OutputBundle, Lt as PartialNull, Mt as MinifyOptions, N as RUNTIME_MODULE_ID, Nt as ModuleFormat, O as RolldownPluginOption, Ot as CommentsOptions, P as VERSION, Pt as OutputOptions, Q as HookFilter, R as TreeshakingOptions, S as PartialResolvedId, St as AdvancedChunksOptions, T as ResolveIdResult, Tt as CodeSplittingGroup, U as EmittedPrebuiltChunk, Ut as RolldownOutput, V as EmittedChunk, Vt as RenderedChunk, W as GetModuleInfo, Wt as SourceMap, X as PluginContextMeta, Y as MinimalPluginContext, Z as GeneralHookFilter, _ as LoadResult, _t as RolldownBuild, a as ExternalOption, at as NormalizedOutputOptions, b as ObjectHook, bt as AddonFunction, c as InputOptions, ct as ChecksOptions, d as WatcherOptions, dt as watch, et as BufferEncoding, f as AsyncPluginHooks, ft as RolldownWatcher, g as ImportKind, gt as rolldown, h as HookFilterExtension, ht as WatchOptions, i as RolldownOptions, it as InternalModuleFormat, jt as GlobalsFunction, k as SourceDescription, kt as GeneratedCodeOptions, l as ModuleTypes, lt as LoggingFunction, m as FunctionPluginHooks, mt as RolldownWatcherWatcherEventMap, n as RolldownOptionsFunction, nt as RolldownFileStats, o as ExternalOptionFunction, ot as NormalizedInputOptions, p as CustomPluginOptions, pt as RolldownWatcherEvent, q as DefineParallelPluginResult, qt as SourcemapIgnoreListOption, r as defineConfig, rt as RolldownFsModule, s as InputOption, st as TransformOptions, t as ConfigExport, tt as RolldownDirectoryEntry, u as OptimizationOptions, ut as WarningHandlerWithDefault, v as ModuleOptions, vt as BuildOptions, w as ResolveIdExtraOptions, wt as ChunkingContext, x as ParallelPluginHooks, xt as AdvancedChunksGroup, y as ModuleType, yt as build, z as TransformPluginContext, zt as OutputAsset } from "./shared/define-config-RYvN7eA1.mjs";
|
|
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 };
|
package/dist/rolldown/index.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
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 {
|
|
5
|
-
import "./shared/rolldown-build-
|
|
6
|
-
import "./shared/
|
|
7
|
-
import
|
|
8
|
-
import { t as
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-eAM5CAoo.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-CIpF8Tjn.mjs";
|
|
3
|
+
import "./shared/normalize-string-or-regex-Dqznrk6L.mjs";
|
|
4
|
+
import { b as VERSION, y as RUNTIME_MODULE_ID } from "./shared/bindingify-input-options-B98M8Cgz.mjs";
|
|
5
|
+
import "./shared/rolldown-build-C97gg8oe.mjs";
|
|
6
|
+
import "./shared/error-CpxG7etL.mjs";
|
|
7
|
+
import "./shared/parse-D9q1irbA.mjs";
|
|
8
|
+
import { t as rolldown } from "./shared/rolldown-BTkXfjFD.mjs";
|
|
9
|
+
import { t as defineConfig } from "./shared/define-config-B-Hn45NS.mjs";
|
|
9
10
|
import { isMainThread } from "node:worker_threads";
|
|
10
11
|
|
|
11
12
|
//#region src/setup.ts
|
|
@@ -1,7 +1,8 @@
|
|
|
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/
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-eAM5CAoo.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-Dqznrk6L.mjs";
|
|
3
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-B98M8Cgz.mjs";
|
|
4
|
+
import "./shared/error-CpxG7etL.mjs";
|
|
5
|
+
import "./shared/parse-D9q1irbA.mjs";
|
|
5
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
7
|
|
|
7
8
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { C as Plugin,
|
|
1
|
+
import "./shared/binding-B4HaVp87.mjs";
|
|
2
|
+
import { C as Plugin, It as MaybePromise } from "./shared/define-config-RYvN7eA1.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,6 +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-
|
|
1
|
+
import "./shared/binding-eAM5CAoo.mjs";
|
|
2
|
+
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-COHDsWqD.mjs";
|
|
3
|
+
import { n as parseSync, t as parse } from "./shared/parse-D9q1irbA.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/parse-ast-index.ts
|
|
6
6
|
function wrap(result, filename, sourceText) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { M as BuiltinPlugin } from "./shared/define-config-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { m as BindingReplacePluginConfig } from "./shared/binding-B4HaVp87.mjs";
|
|
2
|
+
import { M as BuiltinPlugin } from "./shared/define-config-RYvN7eA1.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-BkfxO5px.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +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-
|
|
1
|
+
import "./shared/binding-eAM5CAoo.mjs";
|
|
2
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-Dqznrk6L.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-DdT6KuVQ.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
6
6
|
/**
|