@rolldown/browser 1.0.0-beta.52 → 1.0.0-beta.54
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 +10 -12
- package/dist/config.d.mts +1 -3
- package/dist/config.mjs +6 -9
- package/dist/{constructors-DW3R_Jog.js → constructors-CPxFX1pF.js} +9 -10
- package/dist/experimental-index.browser.mjs +25 -13
- package/dist/experimental-index.d.mts +24 -12
- package/dist/experimental-index.mjs +27 -18
- package/dist/filter-index.d.mts +1 -3
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +6 -9
- package/dist/{normalize-string-or-regex-BcbPUrYo.js → normalize-string-or-regex-Crhxh-US.js} +43 -4
- package/dist/parallel-plugin-worker.mjs +3 -6
- package/dist/parallel-plugin.d.mts +2 -3
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -2
- package/dist/plugins-index.browser.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -4
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-CUYnBV3u.js → rolldown-build-BEfycLl9.js} +348 -188
- package/dist/shared/{binding-BKL2JHoJ.d.mts → binding-yIBVkeOE.d.mts} +107 -21
- package/dist/shared/{bindingify-input-options-D4i1DYzt.mjs → bindingify-input-options-CxbvPG4D.mjs} +21 -8
- package/dist/shared/{constructors-XFp0WhK3.mjs → constructors-C4qFjfHR.mjs} +9 -10
- package/dist/shared/constructors-D9uR3o6d.d.mts +30 -0
- package/dist/shared/{define-config-Buedmg9e.d.mts → define-config-DkpMlrZ3.d.mts} +18 -5
- package/dist/shared/{load-config-C9CjEv2m.mjs → load-config-BqTtlue1.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-D1mB67Iy.mjs → normalize-string-or-regex-B8NuOx7w.mjs} +43 -4
- package/dist/shared/{parse-ast-index-BSDTTjWT.mjs → parse-ast-index-C0k-VwRM.mjs} +1 -1
- package/dist/shared/{rolldown-0ID0Q4xL.mjs → rolldown-BeAWDsL_.mjs} +1 -1
- package/dist/shared/{rolldown-build-BWJGpMD0.mjs → rolldown-build-yjeMNdrl.mjs} +336 -189
- package/dist/shared/{utils-DKydZ4iH.d.mts → utils-mjPIk7Yj.d.mts} +3 -1
- package/dist/shared/{watch-CwnSQOS4.mjs → watch-C7zN9oTc.mjs} +16 -4
- package/package.json +1 -1
- package/dist/shared/constructors-BvaMwihu.d.mts +0 -32
package/dist/cli.mjs
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import "./shared/logs-CPsamAuj.mjs";
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-C7zN9oTc.mjs";
|
|
3
2
|
import { t as arraify } from "./shared/misc-5GYLGQ20.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-
|
|
6
|
-
import "./shared/bindingify-input-options-
|
|
7
|
-
import "./shared/parse-ast-index-
|
|
8
|
-
import "./shared/
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as loadConfig } from "./shared/load-config-C9CjEv2m.mjs";
|
|
3
|
+
import { b as description, x as version } from "./shared/normalize-string-or-regex-B8NuOx7w.mjs";
|
|
4
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-yjeMNdrl.mjs";
|
|
5
|
+
import "./shared/bindingify-input-options-CxbvPG4D.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-C0k-VwRM.mjs";
|
|
7
|
+
import { t as rolldown } from "./shared/rolldown-BeAWDsL_.mjs";
|
|
8
|
+
import { t as loadConfig } from "./shared/load-config-BqTtlue1.mjs";
|
|
11
9
|
import path, { sep } from "node:path";
|
|
12
10
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
13
11
|
import process$1 from "node:process";
|
|
@@ -1163,14 +1161,14 @@ function parseCliArguments() {
|
|
|
1163
1161
|
writable: true
|
|
1164
1162
|
});
|
|
1165
1163
|
} else if (type === "object" && typeof option.value === "string") {
|
|
1166
|
-
const
|
|
1164
|
+
const pairs = option.value.split(",").map((x) => x.split("="));
|
|
1167
1165
|
if (!values[option.name]) Object.defineProperty(values, option.name, {
|
|
1168
1166
|
value: {},
|
|
1169
1167
|
enumerable: true,
|
|
1170
1168
|
configurable: true,
|
|
1171
1169
|
writable: true
|
|
1172
1170
|
});
|
|
1173
|
-
if (key && value) Object.defineProperty(values[option.name], key, {
|
|
1171
|
+
for (const [key, value] of pairs) if (key && value) Object.defineProperty(values[option.name], key, {
|
|
1174
1172
|
value,
|
|
1175
1173
|
enumerable: true,
|
|
1176
1174
|
configurable: true,
|
|
@@ -1239,7 +1237,7 @@ function getClearScreenFunction(options$1) {
|
|
|
1239
1237
|
}
|
|
1240
1238
|
|
|
1241
1239
|
//#endregion
|
|
1242
|
-
//#region \0@oxc-project+runtime@0.
|
|
1240
|
+
//#region \0@oxc-project+runtime@0.102.0/helpers/usingCtx.js
|
|
1243
1241
|
function _usingCtx() {
|
|
1244
1242
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1245
1243
|
var n$2 = Error();
|
package/dist/config.d.mts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
-
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-Buedmg9e.mjs";
|
|
1
|
+
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-DkpMlrZ3.mjs";
|
|
4
2
|
|
|
5
3
|
//#region src/utils/load-config.d.ts
|
|
6
4
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import "./shared/
|
|
3
|
-
import
|
|
4
|
-
import "./shared/
|
|
5
|
-
import "./shared/
|
|
6
|
-
import "./shared/parse-ast-index-BSDTTjWT.mjs";
|
|
7
|
-
import "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
8
|
-
import "./shared/rolldown-0ID0Q4xL.mjs";
|
|
1
|
+
import { x as version } from "./shared/normalize-string-or-regex-B8NuOx7w.mjs";
|
|
2
|
+
import "./shared/rolldown-build-yjeMNdrl.mjs";
|
|
3
|
+
import "./shared/bindingify-input-options-CxbvPG4D.mjs";
|
|
4
|
+
import "./shared/parse-ast-index-C0k-VwRM.mjs";
|
|
5
|
+
import "./shared/rolldown-BeAWDsL_.mjs";
|
|
9
6
|
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
10
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
7
|
+
import { t as loadConfig } from "./shared/load-config-BqTtlue1.mjs";
|
|
11
8
|
|
|
12
9
|
//#region src/config.ts
|
|
13
10
|
const VERSION = version;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-Crhxh-US.js";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -17,9 +17,6 @@ function viteImportGlobPlugin(config) {
|
|
|
17
17
|
function viteReporterPlugin(config) {
|
|
18
18
|
return new BuiltinPlugin("builtin:vite-reporter", config);
|
|
19
19
|
}
|
|
20
|
-
function viteManifestPlugin(config) {
|
|
21
|
-
return new BuiltinPlugin("builtin:vite-manifest", config);
|
|
22
|
-
}
|
|
23
20
|
function viteWasmHelperPlugin(config) {
|
|
24
21
|
return new BuiltinPlugin("builtin:vite-wasm-helper", config);
|
|
25
22
|
}
|
|
@@ -36,7 +33,10 @@ function viteBuildImportAnalysisPlugin(config) {
|
|
|
36
33
|
return new BuiltinPlugin("builtin:vite-build-import-analysis", config);
|
|
37
34
|
}
|
|
38
35
|
function viteResolvePlugin(config) {
|
|
39
|
-
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-resolve",
|
|
36
|
+
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-resolve", {
|
|
37
|
+
...config,
|
|
38
|
+
yarnPnp: typeof process === "object" && !!process.versions?.pnp
|
|
39
|
+
}));
|
|
40
40
|
}
|
|
41
41
|
function isolatedDeclarationPlugin(config) {
|
|
42
42
|
return new BuiltinPlugin("builtin:isolated-declaration", config);
|
|
@@ -45,7 +45,9 @@ function viteWebWorkerPostPlugin() {
|
|
|
45
45
|
return new BuiltinPlugin("builtin:vite-web-worker-post");
|
|
46
46
|
}
|
|
47
47
|
function esmExternalRequirePlugin(config) {
|
|
48
|
-
|
|
48
|
+
const plugin = new BuiltinPlugin("builtin:esm-external-require", config);
|
|
49
|
+
plugin.enforce = "pre";
|
|
50
|
+
return plugin;
|
|
49
51
|
}
|
|
50
52
|
function viteReactRefreshWrapperPlugin(config) {
|
|
51
53
|
if (config) {
|
|
@@ -54,9 +56,6 @@ function viteReactRefreshWrapperPlugin(config) {
|
|
|
54
56
|
}
|
|
55
57
|
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-react-refresh-wrapper", config));
|
|
56
58
|
}
|
|
57
|
-
function viteCSSPostPlugin(config) {
|
|
58
|
-
return new BuiltinPlugin("builtin:vite-css-post", config);
|
|
59
|
-
}
|
|
60
59
|
function viteHtmlInlineProxyPlugin(config) {
|
|
61
60
|
return new BuiltinPlugin("builtin:vite-html-inline-proxy", config);
|
|
62
61
|
}
|
|
@@ -65,4 +64,4 @@ function viteAssetImportMetaUrlPlugin(config) {
|
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
//#endregion
|
|
68
|
-
export {
|
|
67
|
+
export { viteDynamicImportVarsPlugin as a, viteJsonPlugin as c, viteReactRefreshWrapperPlugin as d, viteReporterPlugin as f, viteWebWorkerPostPlugin as g, viteWasmHelperPlugin as h, viteBuildImportAnalysisPlugin as i, viteLoadFallbackPlugin as l, viteWasmFallbackPlugin as m, isolatedDeclarationPlugin as n, viteHtmlInlineProxyPlugin as o, viteResolvePlugin as p, viteAssetImportMetaUrlPlugin as r, viteImportGlobPlugin as s, esmExternalRequirePlugin as t, viteModulePreloadPolyfillPlugin as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as unwrapBindingResult, c as validateOption, i as normalizeBindingResult, l as PluginDriver, n as createBundlerOptions, o as parse, s as parseSync, t as RolldownBuild } from "./rolldown-build-
|
|
3
|
-
import {
|
|
4
|
-
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime, transform, transformSync } from "./rolldown-binding.wasi-browser.js";
|
|
1
|
+
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./normalize-string-or-regex-Crhxh-US.js";
|
|
2
|
+
import { a as unwrapBindingResult, c as validateOption, i as normalizeBindingResult, l as PluginDriver, n as createBundlerOptions, o as parse, s as parseSync, t as RolldownBuild } from "./rolldown-build-BEfycLl9.js";
|
|
3
|
+
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./constructors-CPxFX1pF.js";
|
|
4
|
+
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, createTokioRuntime, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime, transform, transformSync } from "./rolldown-binding.wasi-browser.js";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-engine.ts
|
|
7
7
|
var DevEngine = class DevEngine {
|
|
@@ -70,11 +70,11 @@ var DevEngine = class DevEngine {
|
|
|
70
70
|
async invalidate(file, firstInvalidatedBy) {
|
|
71
71
|
return this.#inner.invalidate(file, firstInvalidatedBy);
|
|
72
72
|
}
|
|
73
|
-
registerModules(clientId, modules) {
|
|
74
|
-
this.#inner.registerModules(clientId, modules);
|
|
73
|
+
async registerModules(clientId, modules) {
|
|
74
|
+
await this.#inner.registerModules(clientId, modules);
|
|
75
75
|
}
|
|
76
|
-
removeClient(clientId) {
|
|
77
|
-
this.#inner.removeClient(clientId);
|
|
76
|
+
async removeClient(clientId) {
|
|
77
|
+
await this.#inner.removeClient(clientId);
|
|
78
78
|
}
|
|
79
79
|
async close() {
|
|
80
80
|
await this.#inner.close();
|
|
@@ -188,14 +188,14 @@ function viteAssetPlugin(config) {
|
|
|
188
188
|
//#endregion
|
|
189
189
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
190
190
|
function viteTransformPlugin(config) {
|
|
191
|
-
|
|
191
|
+
return new BuiltinPlugin("builtin:vite-transform", {
|
|
192
192
|
...config,
|
|
193
193
|
include: normalizedStringOrRegex(config.include),
|
|
194
194
|
exclude: normalizedStringOrRegex(config.exclude),
|
|
195
195
|
jsxRefreshInclude: normalizedStringOrRegex(config.jsxRefreshInclude),
|
|
196
|
-
jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude)
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude),
|
|
197
|
+
yarnPnp: typeof process === "object" && !!process.versions?.pnp
|
|
198
|
+
});
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
//#endregion
|
|
@@ -213,6 +213,12 @@ function viteCSSPlugin(config) {
|
|
|
213
213
|
} : void 0);
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region src/builtin-plugin/vite-css-post-plugin.ts
|
|
218
|
+
function viteCSSPostPlugin(config) {
|
|
219
|
+
return new BuiltinPlugin("builtin:vite-css-post", config);
|
|
220
|
+
}
|
|
221
|
+
|
|
216
222
|
//#endregion
|
|
217
223
|
//#region src/builtin-plugin/vite-html-plugin.ts
|
|
218
224
|
function viteHtmlPlugin(config) {
|
|
@@ -220,4 +226,10 @@ function viteHtmlPlugin(config) {
|
|
|
220
226
|
}
|
|
221
227
|
|
|
222
228
|
//#endregion
|
|
223
|
-
|
|
229
|
+
//#region src/builtin-plugin/vite-manifest-plugin.ts
|
|
230
|
+
function viteManifestPlugin(config) {
|
|
231
|
+
return new BuiltinPlugin("builtin:vite-manifest", config);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
//#endregion
|
|
235
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as BuiltinPlugin } from "./shared/utils-
|
|
2
|
-
import { B as ParserOptions, G as TransformResult, H as ResolveResult, I as MinifyOptions, J as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { t as BuiltinPlugin } from "./shared/utils-mjPIk7Yj.mjs";
|
|
2
|
+
import { $ as transformSync, B as ParserOptions, C as BindingViteManifestPluginConfig, G as TransformResult, H as ResolveResult, I as MinifyOptions, J as isolatedDeclarationSync, K as createTokioRuntime, L as MinifyResult, N as IsolatedDeclarationsOptions, O as BindingViteTransformPluginConfig, P as IsolatedDeclarationsResult, Q as transform, R as NapiResolveOptions, U as ResolverFactory, W as TransformOptions, X as minifySync, Y as minify, Z as moduleRunnerTransform, _ as BindingViteCssPostPluginConfig, b as BindingViteHtmlPluginConfig, c as BindingRebuildStrategy, f as BindingUrlResolver, g as BindingViteCssPluginConfig, m as BindingViteAssetPluginConfig, n as BindingBundleState, q as isolatedDeclaration, r as BindingClientHmrUpdate, z as ParseResult } from "./shared/binding-yIBVkeOE.mjs";
|
|
3
|
+
import { Et as freeExternalMemory, M as SourceMapInput, P as OutputBundle, U as defineParallelPlugin, W as MinimalPluginContext, et as NormalizedOutputOptions, o as InputOptions, vt as OutputOptions, wt as RolldownOutput, xt as OutputChunk } from "./shared/define-config-DkpMlrZ3.mjs";
|
|
4
|
+
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-D9uR3o6d.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -73,8 +73,8 @@ declare class DevEngine {
|
|
|
73
73
|
getBundleState(): Promise<BindingBundleState>;
|
|
74
74
|
ensureLatestBuildOutput(): Promise<void>;
|
|
75
75
|
invalidate(file: string, firstInvalidatedBy?: string): Promise<BindingClientHmrUpdate[]>;
|
|
76
|
-
registerModules(clientId: string, modules: string[]): void
|
|
77
|
-
removeClient(clientId: string): void
|
|
76
|
+
registerModules(clientId: string, modules: string[]): Promise<void>;
|
|
77
|
+
removeClient(clientId: string): Promise<void>;
|
|
78
78
|
close(): Promise<void>;
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
@@ -123,13 +123,13 @@ declare function viteAssetPlugin(config: BindingViteAssetPluginConfig): BuiltinP
|
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region src/builtin-plugin/transform-plugin.d.ts
|
|
125
125
|
type TransformPattern = string | RegExp | readonly (RegExp | string)[];
|
|
126
|
-
type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude"> & {
|
|
126
|
+
type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude" | "yarnPnp"> & {
|
|
127
127
|
include?: TransformPattern;
|
|
128
128
|
exclude?: TransformPattern;
|
|
129
129
|
jsxRefreshInclude?: TransformPattern;
|
|
130
130
|
jsxRefreshExclude?: TransformPattern;
|
|
131
131
|
};
|
|
132
|
-
declare function viteTransformPlugin(config
|
|
132
|
+
declare function viteTransformPlugin(config: TransformPluginConfig): BuiltinPlugin;
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/builtin-plugin/vite-css-plugin.d.ts
|
|
135
135
|
type ViteCssPluginConfig = Omit<BindingViteCssPluginConfig, "compileCSS"> & {
|
|
@@ -140,7 +140,13 @@ type ViteCssPluginConfig = Omit<BindingViteCssPluginConfig, "compileCSS"> & {
|
|
|
140
140
|
deps?: Set<string>;
|
|
141
141
|
}>;
|
|
142
142
|
};
|
|
143
|
-
declare function viteCSSPlugin(config
|
|
143
|
+
declare function viteCSSPlugin(config: ViteCssPluginConfig): BuiltinPlugin;
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/builtin-plugin/vite-css-post-plugin.d.ts
|
|
146
|
+
type ViteCssPostPluginConfig = Omit<BindingViteCssPostPluginConfig, "cssScopeTo" | "isLegacy"> & {
|
|
147
|
+
isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
|
|
148
|
+
};
|
|
149
|
+
declare function viteCSSPostPlugin(config: ViteCssPostPluginConfig): BuiltinPlugin;
|
|
144
150
|
//#endregion
|
|
145
151
|
//#region src/builtin-plugin/vite-html-plugin.d.ts
|
|
146
152
|
interface HtmlTagDescriptor {
|
|
@@ -172,12 +178,18 @@ interface IndexHtmlTransformContext {
|
|
|
172
178
|
bundle?: OutputBundle;
|
|
173
179
|
chunk?: OutputChunk;
|
|
174
180
|
}
|
|
175
|
-
interface ViteHtmlPluginOptions extends Omit<BindingViteHtmlPluginConfig, "transformIndexHtml"> {
|
|
181
|
+
interface ViteHtmlPluginOptions extends Omit<BindingViteHtmlPluginConfig, "transformIndexHtml" | "setModuleSideEffects"> {
|
|
176
182
|
preHooks: IndexHtmlTransformHook[];
|
|
177
183
|
normalHooks: IndexHtmlTransformHook[];
|
|
178
184
|
postHooks: IndexHtmlTransformHook[];
|
|
179
185
|
applyHtmlTransforms: (html: string, hooks: IndexHtmlTransformHook[], pluginContext: MinimalPluginContext, ctx: IndexHtmlTransformContext) => Promise<string>;
|
|
180
186
|
}
|
|
181
|
-
declare function viteHtmlPlugin(config
|
|
187
|
+
declare function viteHtmlPlugin(config: ViteHtmlPluginOptions): BuiltinPlugin;
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/builtin-plugin/vite-manifest-plugin.d.ts
|
|
190
|
+
type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"> & {
|
|
191
|
+
isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
|
|
192
|
+
};
|
|
193
|
+
declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
|
|
182
194
|
//#endregion
|
|
183
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, type ViteHtmlPluginOptions, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
195
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, type ViteHtmlPluginOptions, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import "./shared/
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { o as
|
|
6
|
-
import {
|
|
7
|
-
import "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
8
|
-
import { _ as viteWasmHelperPlugin, a as viteCSSPostPlugin, c as viteImportGlobPlugin, d as viteManifestPlugin, f as viteModulePreloadPolyfillPlugin, g as viteWasmFallbackPlugin, h as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteJsonPlugin, m as viteReporterPlugin, n as isolatedDeclarationPlugin, o as viteDynamicImportVarsPlugin, p as viteReactRefreshWrapperPlugin, r as viteAssetImportMetaUrlPlugin, s as viteHtmlInlineProxyPlugin, u as viteLoadFallbackPlugin, v as viteWebWorkerPostPlugin } from "./shared/constructors-XFp0WhK3.mjs";
|
|
9
|
-
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime, transform, transformSync } from "./rolldown-binding.wasi.cjs";
|
|
1
|
+
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-B8NuOx7w.mjs";
|
|
2
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-yjeMNdrl.mjs";
|
|
3
|
+
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-CxbvPG4D.mjs";
|
|
4
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-C0k-VwRM.mjs";
|
|
5
|
+
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-C4qFjfHR.mjs";
|
|
6
|
+
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, createTokioRuntime, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime, transform, transformSync } from "./rolldown-binding.wasi.cjs";
|
|
10
7
|
import { pathToFileURL } from "node:url";
|
|
11
8
|
|
|
12
9
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -76,11 +73,11 @@ var DevEngine = class DevEngine {
|
|
|
76
73
|
async invalidate(file, firstInvalidatedBy) {
|
|
77
74
|
return this.#inner.invalidate(file, firstInvalidatedBy);
|
|
78
75
|
}
|
|
79
|
-
registerModules(clientId, modules) {
|
|
80
|
-
this.#inner.registerModules(clientId, modules);
|
|
76
|
+
async registerModules(clientId, modules) {
|
|
77
|
+
await this.#inner.registerModules(clientId, modules);
|
|
81
78
|
}
|
|
82
|
-
removeClient(clientId) {
|
|
83
|
-
this.#inner.removeClient(clientId);
|
|
79
|
+
async removeClient(clientId) {
|
|
80
|
+
await this.#inner.removeClient(clientId);
|
|
84
81
|
}
|
|
85
82
|
async close() {
|
|
86
83
|
await this.#inner.close();
|
|
@@ -199,14 +196,14 @@ function viteAssetPlugin(config) {
|
|
|
199
196
|
//#endregion
|
|
200
197
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
201
198
|
function viteTransformPlugin(config) {
|
|
202
|
-
|
|
199
|
+
return new BuiltinPlugin("builtin:vite-transform", {
|
|
203
200
|
...config,
|
|
204
201
|
include: normalizedStringOrRegex(config.include),
|
|
205
202
|
exclude: normalizedStringOrRegex(config.exclude),
|
|
206
203
|
jsxRefreshInclude: normalizedStringOrRegex(config.jsxRefreshInclude),
|
|
207
|
-
jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude)
|
|
208
|
-
|
|
209
|
-
|
|
204
|
+
jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude),
|
|
205
|
+
yarnPnp: typeof process === "object" && !!process.versions?.pnp
|
|
206
|
+
});
|
|
210
207
|
}
|
|
211
208
|
|
|
212
209
|
//#endregion
|
|
@@ -224,6 +221,12 @@ function viteCSSPlugin(config) {
|
|
|
224
221
|
} : void 0);
|
|
225
222
|
}
|
|
226
223
|
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region src/builtin-plugin/vite-css-post-plugin.ts
|
|
226
|
+
function viteCSSPostPlugin(config) {
|
|
227
|
+
return new BuiltinPlugin("builtin:vite-css-post", config);
|
|
228
|
+
}
|
|
229
|
+
|
|
227
230
|
//#endregion
|
|
228
231
|
//#region src/builtin-plugin/vite-html-plugin.ts
|
|
229
232
|
function viteHtmlPlugin(config) {
|
|
@@ -231,4 +234,10 @@ function viteHtmlPlugin(config) {
|
|
|
231
234
|
}
|
|
232
235
|
|
|
233
236
|
//#endregion
|
|
234
|
-
|
|
237
|
+
//#region src/builtin-plugin/vite-manifest-plugin.ts
|
|
238
|
+
function viteManifestPlugin(config) {
|
|
239
|
+
return new BuiltinPlugin("builtin:vite-manifest", config);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
//#endregion
|
|
243
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
-
import { k as withFilter } from "./shared/define-config-Buedmg9e.mjs";
|
|
1
|
+
import { k as withFilter } from "./shared/define-config-DkpMlrZ3.mjs";
|
|
4
2
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
5
3
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as validateOption, l as PluginDriver, n as createBundlerOptions, r as aggregateBindingErrorsIntoJsError, t as RolldownBuild } from "./rolldown-build-
|
|
1
|
+
import { E as arraify, P as logMultiplyNotifyOption, w as LOG_LEVEL_WARN, y as VERSION } from "./normalize-string-or-regex-Crhxh-US.js";
|
|
2
|
+
import { c as validateOption, l as PluginDriver, n as createBundlerOptions, r as aggregateBindingErrorsIntoJsError, t as RolldownBuild } from "./rolldown-build-BEfycLl9.js";
|
|
3
3
|
import { BindingMagicString, BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
4
4
|
|
|
5
5
|
//#region src/api/rolldown/index.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, i as WarningHandlerWithDefault, l as PartialNull, m as RollupError, n as LoggingFunction, p as LogOrStringHandler } from "./shared/utils-
|
|
2
|
-
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-
|
|
3
|
-
import { $ as
|
|
4
|
-
export { AddonFunction, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, 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, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
|
1
|
+
import { d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, i as WarningHandlerWithDefault, l as PartialNull, m as RollupError, n as LoggingFunction, p as LogOrStringHandler } from "./shared/utils-mjPIk7Yj.mjs";
|
|
2
|
+
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-yIBVkeOE.mjs";
|
|
3
|
+
import { $ as InternalModuleFormat, A as VERSION, B as GetModuleInfo, C as ResolveIdResult, Ct as RenderedModule, D as SourceDescription, Dt as ModuleInfo, E as RolldownPluginOption, F as TreeshakingOptions, G as PluginContextMeta, H as DefineParallelPluginResult, I as TransformPluginContext, J as ModuleTypeFilter, K as GeneralHookFilter, L as EmittedAsset, M as SourceMapInput, N as RolldownOptionsFunction, O as TransformResult, Ot as SourcemapIgnoreListOption, P as OutputBundle, Q as RolldownFsModule, R as EmittedFile, S as ResolveIdExtraOptions, St as RenderedChunk, T as RolldownPlugin, Tt as SourceMap, V as PluginContext, W as MinimalPluginContext, X as RolldownDirectoryEntry, Y as BufferEncoding, Z as RolldownFileStats, _ as ModuleType, _t as ModuleFormat, a as InputOption, at as WatchOptions, b as PartialResolvedId, bt as OutputAsset, c as OptimizationOptions, ct as BuildOptions, d as CustomPluginOptions, dt as ChunkFileNamesFunction, et as NormalizedOutputOptions, f as FunctionPluginHooks, ft as ChunkingContext, g as ModuleOptions, gt as MinifyOptions, h as LoadResult, ht as GlobalsFunction, i as ExternalOption, it as RolldownWatcherEvent, j as ExistingRawSourceMap, l as WatcherOptions, lt as build, m as ImportKind, mt as GeneratedCodePreset, n as ConfigExport, nt as watch, o as InputOptions, ot as rolldown, p as HookFilterExtension, pt as GeneratedCodeOptions, q as HookFilter, r as RolldownOptions, rt as RolldownWatcher, s as ModuleTypes, st as RolldownBuild, t as defineConfig, tt as NormalizedInputOptions, u as AsyncPluginHooks, ut as AddonFunction, v as ObjectHook, vt as OutputOptions, w as ResolvedId, wt as RolldownOutput, x as Plugin, xt as OutputChunk, y as ParallelPluginHooks, yt as PreRenderedAsset, z as EmittedPrebuiltChunk } from "./shared/define-config-DkpMlrZ3.mjs";
|
|
4
|
+
export { AddonFunction, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, 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, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import "./shared/
|
|
3
|
-
import "./shared/
|
|
4
|
-
import
|
|
5
|
-
import "./shared/
|
|
6
|
-
import "./shared/
|
|
7
|
-
import "./shared/parse-ast-index-BSDTTjWT.mjs";
|
|
8
|
-
import "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
9
|
-
import { t as rolldown } from "./shared/rolldown-0ID0Q4xL.mjs";
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-C7zN9oTc.mjs";
|
|
2
|
+
import { y as VERSION } from "./shared/normalize-string-or-regex-B8NuOx7w.mjs";
|
|
3
|
+
import "./shared/rolldown-build-yjeMNdrl.mjs";
|
|
4
|
+
import "./shared/bindingify-input-options-CxbvPG4D.mjs";
|
|
5
|
+
import "./shared/parse-ast-index-C0k-VwRM.mjs";
|
|
6
|
+
import { t as rolldown } from "./shared/rolldown-BeAWDsL_.mjs";
|
|
10
7
|
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
11
8
|
import { isMainThread } from "node:worker_threads";
|
|
12
9
|
import { BindingMagicString, initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
|
package/dist/{normalize-string-or-regex-BcbPUrYo.js → normalize-string-or-regex-Crhxh-US.js}
RENAMED
|
@@ -234,7 +234,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
234
234
|
|
|
235
235
|
//#endregion
|
|
236
236
|
//#region package.json
|
|
237
|
-
var version = "1.0.0-beta.
|
|
237
|
+
var version = "1.0.0-beta.54";
|
|
238
238
|
|
|
239
239
|
//#endregion
|
|
240
240
|
//#region src/version.ts
|
|
@@ -391,7 +391,7 @@ function bindingAssetSource(source) {
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
//#endregion
|
|
394
|
-
//#region \0@oxc-project+runtime@0.
|
|
394
|
+
//#region \0@oxc-project+runtime@0.102.0/helpers/decorate.js
|
|
395
395
|
function __decorate(decorators, target, key, desc) {
|
|
396
396
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
397
397
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -758,6 +758,8 @@ function collectChangedBundle(changed, bundle) {
|
|
|
758
758
|
//#endregion
|
|
759
759
|
//#region src/builtin-plugin/utils.ts
|
|
760
760
|
var BuiltinPlugin = class {
|
|
761
|
+
/** Vite-specific option to control plugin ordering */
|
|
762
|
+
enforce;
|
|
761
763
|
constructor(name, _options) {
|
|
762
764
|
this.name = name;
|
|
763
765
|
this._options = _options;
|
|
@@ -785,7 +787,36 @@ function bindingifyBuiltInPlugin(plugin) {
|
|
|
785
787
|
options: plugin._options
|
|
786
788
|
};
|
|
787
789
|
}
|
|
788
|
-
function
|
|
790
|
+
function bindingifyManifestPlugin(plugin, pluginContextData) {
|
|
791
|
+
const { isOutputOptionsForLegacyChunks, ...options } = plugin._options;
|
|
792
|
+
return {
|
|
793
|
+
__name: plugin.name,
|
|
794
|
+
options: {
|
|
795
|
+
...options,
|
|
796
|
+
isLegacy: isOutputOptionsForLegacyChunks ? (opts) => {
|
|
797
|
+
return isOutputOptionsForLegacyChunks(pluginContextData.getOutputOptions(opts));
|
|
798
|
+
} : void 0
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
function bindingifyCSSPostPlugin(plugin, pluginContextData) {
|
|
803
|
+
const { isOutputOptionsForLegacyChunks, ...options } = plugin._options;
|
|
804
|
+
return {
|
|
805
|
+
__name: plugin.name,
|
|
806
|
+
options: {
|
|
807
|
+
...options,
|
|
808
|
+
isLegacy: isOutputOptionsForLegacyChunks ? (opts) => {
|
|
809
|
+
return isOutputOptionsForLegacyChunks(pluginContextData.getOutputOptions(opts));
|
|
810
|
+
} : void 0,
|
|
811
|
+
cssScopeTo() {
|
|
812
|
+
const cssScopeTo = {};
|
|
813
|
+
for (const [id, opts] of pluginContextData.moduleOptionMap.entries()) if (opts?.meta.vite?.cssScopeTo) cssScopeTo[id] = opts.meta.vite.cssScopeTo;
|
|
814
|
+
return cssScopeTo;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
function bindingifyViteHtmlPlugin(plugin, onLog, logLevel, watchMode, pluginContextData) {
|
|
789
820
|
const { preHooks, normalHooks, postHooks, applyHtmlTransforms, ...options } = plugin._options;
|
|
790
821
|
if (preHooks.length + normalHooks.length + postHooks.length > 0) return {
|
|
791
822
|
__name: plugin.name,
|
|
@@ -806,6 +837,14 @@ function bindingifyViteHtmlPlugin(plugin, onLog, logLevel, watchMode) {
|
|
|
806
837
|
case "transform": return await applyHtmlTransforms(html, preHooks, pluginContext, context);
|
|
807
838
|
case "generateBundle": return await applyHtmlTransforms(html, [...normalHooks, ...postHooks], pluginContext, context);
|
|
808
839
|
}
|
|
840
|
+
},
|
|
841
|
+
setModuleSideEffects(id) {
|
|
842
|
+
let opts = pluginContextData.getModuleOption(id);
|
|
843
|
+
pluginContextData.updateModuleOption(id, {
|
|
844
|
+
moduleSideEffects: true,
|
|
845
|
+
meta: opts.meta,
|
|
846
|
+
invalidate: true
|
|
847
|
+
});
|
|
809
848
|
}
|
|
810
849
|
}
|
|
811
850
|
};
|
|
@@ -827,4 +866,4 @@ function isReadonlyArray(input) {
|
|
|
827
866
|
}
|
|
828
867
|
|
|
829
868
|
//#endregion
|
|
830
|
-
export {
|
|
869
|
+
export { augmentCodeLocation as A, LOG_LEVEL_INFO as C, unimplemented as D, arraify as E, logNoFileSystemInBrowser as F, logParseError as I, logPluginError as L, logCycleLoading as M, logInputHookInOutputPlugin as N, unreachable as O, logMultiplyNotifyOption as P, locate as R, LOG_LEVEL_ERROR as S, logLevelPriority as T, PlainObjectLike as _, bindingifyManifestPlugin as a, normalizeLog as b, collectChangedBundle as c, bindingifySourcemap as d, transformRenderedChunk as f, lazyProp as g, transformAssetSource as h, bindingifyCSSPostPlugin as i, error as j, unsupported as k, transformToOutputBundle as l, bindingAssetSource as m, BuiltinPlugin as n, bindingifyViteHtmlPlugin as o, __decorate as p, bindingifyBuiltInPlugin as r, makeBuiltinPluginCallable as s, normalizedStringOrRegex as t, transformToRollupOutput as u, MinimalPluginContextImpl as v, LOG_LEVEL_WARN as w, LOG_LEVEL_DEBUG as x, VERSION as y, getCodeFrame as z };
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import "./shared/
|
|
3
|
-
import "./shared/
|
|
4
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-D4i1DYzt.mjs";
|
|
5
|
-
import "./shared/parse-ast-index-BSDTTjWT.mjs";
|
|
6
|
-
import "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
1
|
+
import "./shared/normalize-string-or-regex-B8NuOx7w.mjs";
|
|
2
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-CxbvPG4D.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-C0k-VwRM.mjs";
|
|
7
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
8
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
9
6
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { s as MaybePromise } from "./shared/utils-
|
|
2
|
-
import "./shared/
|
|
3
|
-
import { x as Plugin } from "./shared/define-config-Buedmg9e.mjs";
|
|
1
|
+
import { s as MaybePromise } from "./shared/utils-mjPIk7Yj.mjs";
|
|
2
|
+
import { x as Plugin } from "./shared/define-config-DkpMlrZ3.mjs";
|
|
4
3
|
|
|
5
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
6
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./constructors-
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./normalize-string-or-regex-Crhxh-US.js";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./constructors-CPxFX1pF.js";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
5
5
|
/**
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as BuiltinPlugin } from "./shared/utils-
|
|
2
|
-
import { u as BindingReplacePluginConfig } from "./shared/binding-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { t as BuiltinPlugin } from "./shared/utils-mjPIk7Yj.mjs";
|
|
2
|
+
import { u as BindingReplacePluginConfig } from "./shared/binding-yIBVkeOE.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-D9uR3o6d.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import "./shared/
|
|
3
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-D1mB67Iy.mjs";
|
|
4
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-XFp0WhK3.mjs";
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-B8NuOx7w.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-C4qFjfHR.mjs";
|
|
5
3
|
|
|
6
4
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
7
5
|
/**
|
|
Binary file
|