@rolldown/browser 1.0.0-beta.53 → 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 -10
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +6 -6
- package/dist/{constructors-YnYYKXAq.js → constructors-CPxFX1pF.js} +8 -3
- package/dist/experimental-index.browser.mjs +7 -7
- package/dist/experimental-index.d.mts +10 -10
- package/dist/experimental-index.mjs +9 -9
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +6 -6
- package/dist/{normalize-string-or-regex-BVvsez4S.js → normalize-string-or-regex-Crhxh-US.js} +4 -2
- package/dist/parallel-plugin-worker.mjs +3 -3
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.browser.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-DdLgyfGg.js → rolldown-build-BEfycLl9.js} +18 -6
- package/dist/shared/{binding-CY7Z709f.d.mts → binding-yIBVkeOE.d.mts} +63 -19
- package/dist/shared/{bindingify-input-options-DcGFRvkp.mjs → bindingify-input-options-CxbvPG4D.mjs} +16 -5
- package/dist/shared/{constructors-Bi2whoYR.mjs → constructors-C4qFjfHR.mjs} +8 -3
- package/dist/shared/{constructors-S9gqtBdT.d.mts → constructors-D9uR3o6d.d.mts} +6 -6
- package/dist/shared/{define-config-CPSppdHs.d.mts → define-config-DkpMlrZ3.d.mts} +18 -5
- package/dist/shared/{load-config-B09j7Dnd.mjs → load-config-BqTtlue1.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-Bsz_9HAl.mjs → normalize-string-or-regex-B8NuOx7w.mjs} +4 -2
- package/dist/shared/{parse-ast-index-BOAjpcDq.mjs → parse-ast-index-C0k-VwRM.mjs} +1 -1
- package/dist/shared/{rolldown-vJGs7rCs.mjs → rolldown-BeAWDsL_.mjs} +1 -1
- package/dist/shared/{rolldown-build-CyazSAHY.mjs → rolldown-build-yjeMNdrl.mjs} +5 -4
- package/dist/shared/{utils-m9n-gTFq.d.mts → utils-mjPIk7Yj.d.mts} +3 -1
- package/dist/shared/{watch-Abdexkk9.mjs → watch-C7zN9oTc.mjs} +16 -4
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-C7zN9oTc.mjs";
|
|
2
2
|
import { t as arraify } from "./shared/misc-5GYLGQ20.mjs";
|
|
3
|
-
import { b as description, x as version } from "./shared/normalize-string-or-regex-
|
|
4
|
-
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-
|
|
5
|
-
import "./shared/bindingify-input-options-
|
|
6
|
-
import "./shared/parse-ast-index-
|
|
7
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
8
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
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";
|
|
9
9
|
import path, { sep } from "node:path";
|
|
10
10
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
11
11
|
import process$1 from "node:process";
|
|
@@ -1161,14 +1161,14 @@ function parseCliArguments() {
|
|
|
1161
1161
|
writable: true
|
|
1162
1162
|
});
|
|
1163
1163
|
} else if (type === "object" && typeof option.value === "string") {
|
|
1164
|
-
const
|
|
1164
|
+
const pairs = option.value.split(",").map((x) => x.split("="));
|
|
1165
1165
|
if (!values[option.name]) Object.defineProperty(values, option.name, {
|
|
1166
1166
|
value: {},
|
|
1167
1167
|
enumerable: true,
|
|
1168
1168
|
configurable: true,
|
|
1169
1169
|
writable: true
|
|
1170
1170
|
});
|
|
1171
|
-
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, {
|
|
1172
1172
|
value,
|
|
1173
1173
|
enumerable: true,
|
|
1174
1174
|
configurable: true,
|
|
@@ -1237,7 +1237,7 @@ function getClearScreenFunction(options$1) {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
1239
|
//#endregion
|
|
1240
|
-
//#region \0@oxc-project+runtime@0.
|
|
1240
|
+
//#region \0@oxc-project+runtime@0.102.0/helpers/usingCtx.js
|
|
1241
1241
|
function _usingCtx() {
|
|
1242
1242
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1243
1243
|
var n$2 = Error();
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-
|
|
1
|
+
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-DkpMlrZ3.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/load-config.d.ts
|
|
4
4
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { x as version } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import "./shared/rolldown-build-
|
|
3
|
-
import "./shared/bindingify-input-options-
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
5
|
-
import "./shared/rolldown-
|
|
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";
|
|
6
6
|
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
7
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
7
|
+
import { t as loadConfig } from "./shared/load-config-BqTtlue1.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/config.ts
|
|
10
10
|
const VERSION = version;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
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) {
|
|
@@ -33,7 +33,10 @@ function viteBuildImportAnalysisPlugin(config) {
|
|
|
33
33
|
return new BuiltinPlugin("builtin:vite-build-import-analysis", config);
|
|
34
34
|
}
|
|
35
35
|
function viteResolvePlugin(config) {
|
|
36
|
-
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
|
+
}));
|
|
37
40
|
}
|
|
38
41
|
function isolatedDeclarationPlugin(config) {
|
|
39
42
|
return new BuiltinPlugin("builtin:isolated-declaration", config);
|
|
@@ -42,7 +45,9 @@ function viteWebWorkerPostPlugin() {
|
|
|
42
45
|
return new BuiltinPlugin("builtin:vite-web-worker-post");
|
|
43
46
|
}
|
|
44
47
|
function esmExternalRequirePlugin(config) {
|
|
45
|
-
|
|
48
|
+
const plugin = new BuiltinPlugin("builtin:esm-external-require", config);
|
|
49
|
+
plugin.enforce = "pre";
|
|
50
|
+
return plugin;
|
|
46
51
|
}
|
|
47
52
|
function viteReactRefreshWrapperPlugin(config) {
|
|
48
53
|
if (config) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./normalize-string-or-regex-
|
|
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 { 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-
|
|
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
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
|
|
@@ -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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as BuiltinPlugin } from "./shared/utils-
|
|
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-
|
|
3
|
-
import {
|
|
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-
|
|
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 | {
|
|
@@ -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,13 +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
144
|
//#endregion
|
|
145
145
|
//#region src/builtin-plugin/vite-css-post-plugin.d.ts
|
|
146
146
|
type ViteCssPostPluginConfig = Omit<BindingViteCssPostPluginConfig, "cssScopeTo" | "isLegacy"> & {
|
|
147
147
|
isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
|
|
148
148
|
};
|
|
149
|
-
declare function viteCSSPostPlugin(config
|
|
149
|
+
declare function viteCSSPostPlugin(config: ViteCssPostPluginConfig): BuiltinPlugin;
|
|
150
150
|
//#endregion
|
|
151
151
|
//#region src/builtin-plugin/vite-html-plugin.d.ts
|
|
152
152
|
interface HtmlTagDescriptor {
|
|
@@ -184,12 +184,12 @@ interface ViteHtmlPluginOptions extends Omit<BindingViteHtmlPluginConfig, "trans
|
|
|
184
184
|
postHooks: IndexHtmlTransformHook[];
|
|
185
185
|
applyHtmlTransforms: (html: string, hooks: IndexHtmlTransformHook[], pluginContext: MinimalPluginContext, ctx: IndexHtmlTransformContext) => Promise<string>;
|
|
186
186
|
}
|
|
187
|
-
declare function viteHtmlPlugin(config
|
|
187
|
+
declare function viteHtmlPlugin(config: ViteHtmlPluginOptions): BuiltinPlugin;
|
|
188
188
|
//#endregion
|
|
189
189
|
//#region src/builtin-plugin/vite-manifest-plugin.d.ts
|
|
190
190
|
type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"> & {
|
|
191
191
|
isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
|
|
192
192
|
};
|
|
193
|
-
declare function viteManifestPlugin(config
|
|
193
|
+
declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
|
|
194
194
|
//#endregion
|
|
195
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,8 +1,8 @@
|
|
|
1
|
-
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-
|
|
3
|
-
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-
|
|
4
|
-
import { i as parseSync, r as parse } from "./shared/parse-ast-index-
|
|
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-
|
|
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
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";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
8
8
|
|
|
@@ -196,14 +196,14 @@ function viteAssetPlugin(config) {
|
|
|
196
196
|
//#endregion
|
|
197
197
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
198
198
|
function viteTransformPlugin(config) {
|
|
199
|
-
|
|
199
|
+
return new BuiltinPlugin("builtin:vite-transform", {
|
|
200
200
|
...config,
|
|
201
201
|
include: normalizedStringOrRegex(config.include),
|
|
202
202
|
exclude: normalizedStringOrRegex(config.exclude),
|
|
203
203
|
jsxRefreshInclude: normalizedStringOrRegex(config.jsxRefreshInclude),
|
|
204
|
-
jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude)
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude),
|
|
205
|
+
yarnPnp: typeof process === "object" && !!process.versions?.pnp
|
|
206
|
+
});
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
//#endregion
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { k as withFilter } from "./shared/define-config-
|
|
1
|
+
import { k as withFilter } from "./shared/define-config-DkpMlrZ3.mjs";
|
|
2
2
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
3
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 { E as arraify, P as logMultiplyNotifyOption, w as LOG_LEVEL_WARN, y as VERSION } from "./normalize-string-or-regex-
|
|
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,9 +1,9 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { y as VERSION } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import "./shared/rolldown-build-
|
|
4
|
-
import "./shared/bindingify-input-options-
|
|
5
|
-
import "./shared/parse-ast-index-
|
|
6
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
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";
|
|
7
7
|
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
8
8
|
import { isMainThread } from "node:worker_threads";
|
|
9
9
|
import { BindingMagicString, initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
|
package/dist/{normalize-string-or-regex-BVvsez4S.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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./shared/normalize-string-or-regex-
|
|
2
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
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";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as MaybePromise } from "./shared/utils-
|
|
2
|
-
import { x as Plugin } from "./shared/define-config-
|
|
1
|
+
import { s as MaybePromise } from "./shared/utils-mjPIk7Yj.mjs";
|
|
2
|
+
import { x as Plugin } from "./shared/define-config-DkpMlrZ3.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./normalize-string-or-regex-
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
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";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
5
5
|
/**
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as augmentCodeLocation, C as LOG_LEVEL_INFO, D as unimplemented, E as arraify, F as logNoFileSystemInBrowser, I as logParseError, L as logPluginError, M as logCycleLoading, N as logInputHookInOutputPlugin, O as unreachable, R as locate, S as LOG_LEVEL_ERROR, T as logLevelPriority, _ as PlainObjectLike, a as bindingifyManifestPlugin, b as normalizeLog, c as collectChangedBundle, d as bindingifySourcemap$1, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, i as bindingifyCSSPostPlugin, j as error, k as unsupported, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_WARN, x as LOG_LEVEL_DEBUG, y as VERSION, z as getCodeFrame } from "./normalize-string-or-regex-
|
|
1
|
+
import { A as augmentCodeLocation, C as LOG_LEVEL_INFO, D as unimplemented, E as arraify, F as logNoFileSystemInBrowser, I as logParseError, L as logPluginError, M as logCycleLoading, N as logInputHookInOutputPlugin, O as unreachable, R as locate, S as LOG_LEVEL_ERROR, T as logLevelPriority, _ as PlainObjectLike, a as bindingifyManifestPlugin, b as normalizeLog, c as collectChangedBundle, d as bindingifySourcemap$1, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, i as bindingifyCSSPostPlugin, j as error, k as unsupported, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_WARN, x as LOG_LEVEL_DEBUG, y as VERSION, z as getCodeFrame } from "./normalize-string-or-regex-Crhxh-US.js";
|
|
2
2
|
import { BindingAttachDebugInfo, BindingBundler, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, parse, parseSync, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
@@ -1952,7 +1952,7 @@ const TransformOptionsSchema = object({
|
|
|
1952
1952
|
JsxOptionsSchema
|
|
1953
1953
|
])),
|
|
1954
1954
|
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment")),
|
|
1955
|
-
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
1955
|
+
define: pipe(optional(record(string(), string())), description("Define global variables (syntax: key=value,key2=value2)")),
|
|
1956
1956
|
inject: pipe(optional(record(string(), union([string(), tuple([string(), string()])]))), description("Inject import statements on demand")),
|
|
1957
1957
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names"))
|
|
1958
1958
|
});
|
|
@@ -1983,7 +1983,8 @@ const ChecksOptionsSchema = strictObject({
|
|
|
1983
1983
|
emptyImportMeta: pipe(optional(boolean()), description("Whether to emit warning when detecting empty import meta")),
|
|
1984
1984
|
configurationFieldConflict: pipe(optional(boolean()), description("Whether to emit warning when detecting configuration field conflict")),
|
|
1985
1985
|
preferBuiltinFeature: pipe(optional(boolean()), description("Whether to emit warning when detecting prefer builtin feature")),
|
|
1986
|
-
couldNotCleanDirectory: pipe(optional(boolean()), description("Whether to emit warning when detecting could not clean directory"))
|
|
1986
|
+
couldNotCleanDirectory: pipe(optional(boolean()), description("Whether to emit warning when detecting could not clean directory")),
|
|
1987
|
+
pluginTimings: pipe(optional(boolean()), description("Whether to emit warning when detecting plugin timings"))
|
|
1987
1988
|
});
|
|
1988
1989
|
const CompressOptionsKeepNamesSchema = strictObject({
|
|
1989
1990
|
function: boolean(),
|
|
@@ -2347,7 +2348,7 @@ var RolldownOutputImpl = class extends PlainObjectLike {
|
|
|
2347
2348
|
__decorate([lazyProp], RolldownOutputImpl.prototype, "output", null);
|
|
2348
2349
|
|
|
2349
2350
|
//#endregion
|
|
2350
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2351
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.102.0/node_modules/oxc-parser/src-js/wrap.js
|
|
2351
2352
|
function wrap$1(result) {
|
|
2352
2353
|
let program, module, comments, errors;
|
|
2353
2354
|
return {
|
|
@@ -2443,8 +2444,13 @@ function normalizeBindingResult(container) {
|
|
|
2443
2444
|
}
|
|
2444
2445
|
function normalizeBindingError(e$1) {
|
|
2445
2446
|
return e$1.type === "JsError" ? e$1.field0 : Object.assign(/* @__PURE__ */ new Error(), {
|
|
2447
|
+
code: e$1.field0.kind,
|
|
2446
2448
|
kind: e$1.field0.kind,
|
|
2447
2449
|
message: e$1.field0.message,
|
|
2450
|
+
id: e$1.field0.id,
|
|
2451
|
+
exporter: e$1.field0.exporter,
|
|
2452
|
+
loc: e$1.field0.loc,
|
|
2453
|
+
pos: e$1.field0.pos,
|
|
2448
2454
|
stack: void 0
|
|
2449
2455
|
});
|
|
2450
2456
|
}
|
|
@@ -2878,7 +2884,13 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
2878
2884
|
};
|
|
2879
2885
|
}
|
|
2880
2886
|
emitFile = (file) => {
|
|
2881
|
-
if (file.type === "prebuilt-chunk") return
|
|
2887
|
+
if (file.type === "prebuilt-chunk") return this.context.emitPrebuiltChunk({
|
|
2888
|
+
fileName: file.fileName,
|
|
2889
|
+
code: file.code,
|
|
2890
|
+
exports: file.exports,
|
|
2891
|
+
map: bindingifySourcemap$1(file.map),
|
|
2892
|
+
sourcemapFileName: file.sourcemapFileName
|
|
2893
|
+
});
|
|
2882
2894
|
if (file.type === "chunk") return this.context.emitChunk({
|
|
2883
2895
|
preserveEntrySignatures: bindingifyPreserveEntrySignatures(file.preserveSignature),
|
|
2884
2896
|
...file
|
|
@@ -3526,7 +3538,7 @@ var NormalizedInputOptionsImpl = class extends PlainObjectLike {
|
|
|
3526
3538
|
return this.inner.input;
|
|
3527
3539
|
}
|
|
3528
3540
|
get cwd() {
|
|
3529
|
-
return this.inner.cwd
|
|
3541
|
+
return this.inner.cwd;
|
|
3530
3542
|
}
|
|
3531
3543
|
get platform() {
|
|
3532
3544
|
return this.inner.platform;
|
|
@@ -185,7 +185,7 @@ interface Comment {
|
|
|
185
185
|
end: number;
|
|
186
186
|
}
|
|
187
187
|
interface ErrorLabel {
|
|
188
|
-
message
|
|
188
|
+
message: string | null;
|
|
189
189
|
start: number;
|
|
190
190
|
end: number;
|
|
191
191
|
}
|
|
@@ -193,8 +193,8 @@ interface OxcError {
|
|
|
193
193
|
severity: Severity;
|
|
194
194
|
message: string;
|
|
195
195
|
labels: Array<ErrorLabel>;
|
|
196
|
-
helpMessage
|
|
197
|
-
codeframe
|
|
196
|
+
helpMessage: string | null;
|
|
197
|
+
codeframe: string | null;
|
|
198
198
|
}
|
|
199
199
|
type Severity = 'Error' | 'Warning' | 'Advice';
|
|
200
200
|
declare class ParseResult {
|
|
@@ -228,9 +228,9 @@ interface EcmaScriptModule {
|
|
|
228
228
|
}
|
|
229
229
|
interface ExportExportName {
|
|
230
230
|
kind: ExportExportNameKind;
|
|
231
|
-
name
|
|
232
|
-
start
|
|
233
|
-
end
|
|
231
|
+
name: string | null;
|
|
232
|
+
start: number | null;
|
|
233
|
+
end: number | null;
|
|
234
234
|
}
|
|
235
235
|
type ExportExportNameKind = /** `export { name } */
|
|
236
236
|
'Name' | /** `export default expression` */
|
|
@@ -238,9 +238,9 @@ type ExportExportNameKind = /** `export { name } */
|
|
|
238
238
|
'None';
|
|
239
239
|
interface ExportImportName {
|
|
240
240
|
kind: ExportImportNameKind;
|
|
241
|
-
name
|
|
242
|
-
start
|
|
243
|
-
end
|
|
241
|
+
name: string | null;
|
|
242
|
+
start: number | null;
|
|
243
|
+
end: number | null;
|
|
244
244
|
}
|
|
245
245
|
type ExportImportNameKind = /** `export { name } */
|
|
246
246
|
'Name' | /** `export * as ns from "mod"` */
|
|
@@ -249,9 +249,9 @@ type ExportImportNameKind = /** `export { name } */
|
|
|
249
249
|
'None';
|
|
250
250
|
interface ExportLocalName {
|
|
251
251
|
kind: ExportLocalNameKind;
|
|
252
|
-
name
|
|
253
|
-
start
|
|
254
|
-
end
|
|
252
|
+
name: string | null;
|
|
253
|
+
start: number | null;
|
|
254
|
+
end: number | null;
|
|
255
255
|
}
|
|
256
256
|
type ExportLocalNameKind = /** `export { name } */
|
|
257
257
|
'Name' | /** `export default expression` */
|
|
@@ -263,9 +263,9 @@ type ExportLocalNameKind = /** `export { name } */
|
|
|
263
263
|
'None';
|
|
264
264
|
interface ImportName {
|
|
265
265
|
kind: ImportNameKind;
|
|
266
|
-
name
|
|
267
|
-
start
|
|
268
|
-
end
|
|
266
|
+
name: string | null;
|
|
267
|
+
start: number | null;
|
|
268
|
+
end: number | null;
|
|
269
269
|
}
|
|
270
270
|
type ImportNameKind = /** `import { x } from "mod"` */
|
|
271
271
|
'Name' | /** `import * as ns from "mod"` */
|
|
@@ -323,7 +323,7 @@ interface StaticExport {
|
|
|
323
323
|
interface StaticExportEntry {
|
|
324
324
|
start: number;
|
|
325
325
|
end: number;
|
|
326
|
-
moduleRequest
|
|
326
|
+
moduleRequest: ValueSpan | null;
|
|
327
327
|
/** The name under which the desired binding is exported by the module`. */
|
|
328
328
|
importName: ExportImportName;
|
|
329
329
|
/** The name used to export this binding by this module. */
|
|
@@ -415,6 +415,18 @@ declare class ResolverFactory {
|
|
|
415
415
|
sync(directory: string, request: string): ResolveResult;
|
|
416
416
|
/** Asynchronously resolve `specifier` at an absolute path to a `directory`. */
|
|
417
417
|
async(directory: string, request: string): Promise<ResolveResult>;
|
|
418
|
+
/**
|
|
419
|
+
* Synchronously resolve `specifier` at an absolute path to a `file`.
|
|
420
|
+
*
|
|
421
|
+
* This method automatically discovers tsconfig.json by traversing parent directories.
|
|
422
|
+
*/
|
|
423
|
+
resolveFileSync(file: string, request: string): ResolveResult;
|
|
424
|
+
/**
|
|
425
|
+
* Asynchronously resolve `specifier` at an absolute path to a `file`.
|
|
426
|
+
*
|
|
427
|
+
* This method automatically discovers tsconfig.json by traversing parent directories.
|
|
428
|
+
*/
|
|
429
|
+
resolveFileAsync(file: string, request: string): Promise<ResolveResult>;
|
|
418
430
|
}
|
|
419
431
|
/** Node.js builtin module when `Options::builtin_modules` is enabled. */
|
|
420
432
|
interface Builtin {
|
|
@@ -656,9 +668,8 @@ interface TsconfigOptions {
|
|
|
656
668
|
* Support for Typescript Project References.
|
|
657
669
|
*
|
|
658
670
|
* * `'auto'`: use the `references` field from tsconfig of `config_file`.
|
|
659
|
-
* * `string[]`: manually provided relative or absolute path.
|
|
660
671
|
*/
|
|
661
|
-
references?: 'auto'
|
|
672
|
+
references?: 'auto';
|
|
662
673
|
}
|
|
663
674
|
interface SourceMap {
|
|
664
675
|
file?: string;
|
|
@@ -1271,7 +1282,7 @@ declare class BindingMagicString {
|
|
|
1271
1282
|
}
|
|
1272
1283
|
declare class BindingNormalizedOptions {
|
|
1273
1284
|
get input(): Array<string> | Record<string, string>;
|
|
1274
|
-
get cwd(): string
|
|
1285
|
+
get cwd(): string;
|
|
1275
1286
|
get platform(): 'node' | 'browser' | 'neutral';
|
|
1276
1287
|
get shimMissingExports(): boolean;
|
|
1277
1288
|
get name(): string | null;
|
|
@@ -1551,6 +1562,10 @@ interface BindingViteDynamicImportVarsPluginConfig {
|
|
|
1551
1562
|
include?: Array<BindingStringOrRegex>;
|
|
1552
1563
|
exclude?: Array<BindingStringOrRegex>;
|
|
1553
1564
|
resolver?: (id: string, importer: string) => MaybePromise<string | undefined>;
|
|
1565
|
+
isV2?: BindingViteDynamicImportVarsPluginV2Config;
|
|
1566
|
+
}
|
|
1567
|
+
interface BindingViteDynamicImportVarsPluginV2Config {
|
|
1568
|
+
sourcemap: boolean;
|
|
1554
1569
|
}
|
|
1555
1570
|
interface BindingViteHtmlInlineProxyPluginConfig {
|
|
1556
1571
|
root: string;
|
|
@@ -1572,6 +1587,10 @@ interface BindingViteHtmlPluginConfig {
|
|
|
1572
1587
|
interface BindingViteImportGlobPluginConfig {
|
|
1573
1588
|
root?: string;
|
|
1574
1589
|
restoreQueryExtension?: boolean;
|
|
1590
|
+
isV2?: BindingViteImportGlobPluginV2Config;
|
|
1591
|
+
}
|
|
1592
|
+
interface BindingViteImportGlobPluginV2Config {
|
|
1593
|
+
sourcemap?: boolean;
|
|
1575
1594
|
}
|
|
1576
1595
|
interface BindingViteJsonPluginConfig {
|
|
1577
1596
|
minify?: boolean;
|
|
@@ -1621,6 +1640,7 @@ interface BindingViteResolvePluginConfig {
|
|
|
1621
1640
|
resolveSubpathImports: (id: string, importer: string, isRequire: boolean, scan: boolean) => VoidNullable<string>;
|
|
1622
1641
|
onWarn?: (message: string) => void;
|
|
1623
1642
|
onDebug?: (message: string) => void;
|
|
1643
|
+
yarnPnp: boolean;
|
|
1624
1644
|
}
|
|
1625
1645
|
interface BindingViteResolvePluginResolveOptions {
|
|
1626
1646
|
isBuild: boolean;
|
|
@@ -1648,9 +1668,17 @@ interface BindingViteTransformPluginConfig {
|
|
|
1648
1668
|
isServerConsumer?: boolean;
|
|
1649
1669
|
jsxInject?: string;
|
|
1650
1670
|
transformOptions?: TransformOptions;
|
|
1671
|
+
yarnPnp?: boolean;
|
|
1651
1672
|
}
|
|
1652
1673
|
interface BindingViteWasmHelperPluginConfig {
|
|
1653
1674
|
decodedBase: string;
|
|
1675
|
+
v2?: BindingViteWasmHelperPluginV2Config;
|
|
1676
|
+
}
|
|
1677
|
+
interface BindingViteWasmHelperPluginV2Config {
|
|
1678
|
+
root: string;
|
|
1679
|
+
isLib: boolean;
|
|
1680
|
+
publicDir: string;
|
|
1681
|
+
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1654
1682
|
}
|
|
1655
1683
|
declare function createTokioRuntime(blockingThreads?: number | undefined | null): void;
|
|
1656
1684
|
interface ExternalMemoryStatus {
|
|
@@ -1661,6 +1689,22 @@ interface ExternalMemoryStatus {
|
|
|
1661
1689
|
interface NativeError {
|
|
1662
1690
|
kind: string;
|
|
1663
1691
|
message: string;
|
|
1692
|
+
/** The id of the file associated with the error */
|
|
1693
|
+
id?: string;
|
|
1694
|
+
/** The exporter associated with the error (for import/export errors) */
|
|
1695
|
+
exporter?: string;
|
|
1696
|
+
/** Location information (line, column, file) */
|
|
1697
|
+
loc?: NativeErrorLocation;
|
|
1698
|
+
/** Position in the source file in UTF-16 code units */
|
|
1699
|
+
pos?: number;
|
|
1700
|
+
}
|
|
1701
|
+
/** Location information for errors */
|
|
1702
|
+
interface NativeErrorLocation {
|
|
1703
|
+
/** 1-based */
|
|
1704
|
+
line: number;
|
|
1705
|
+
/** 0-based position in the line in UTF-16 code units */
|
|
1706
|
+
column: number;
|
|
1707
|
+
file?: string;
|
|
1664
1708
|
}
|
|
1665
1709
|
interface PreRenderedChunk {
|
|
1666
1710
|
name: string;
|
package/dist/shared/{bindingify-input-options-DcGFRvkp.mjs → bindingify-input-options-CxbvPG4D.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-CPsamAuj.mjs";
|
|
2
|
-
import { a as unreachable,
|
|
3
|
-
import { E as LOG_LEVEL_WARN, S as normalizeLog, _ as PlainObjectLike, a as bindingifyManifestPlugin, c as collectChangedBundle, d as bindingifySourcemap, f as transformRenderedChunk, g as lazyProp, i as bindingifyCSSPostPlugin, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, v as MinimalPluginContextImpl } from "./normalize-string-or-regex-
|
|
4
|
-
import { t as parseAst } from "./parse-ast-index-
|
|
2
|
+
import { a as unreachable, o as unsupported, t as arraify } from "./misc-5GYLGQ20.mjs";
|
|
3
|
+
import { E as LOG_LEVEL_WARN, S as normalizeLog, _ as PlainObjectLike, a as bindingifyManifestPlugin, c as collectChangedBundle, d as bindingifySourcemap, f as transformRenderedChunk, g as lazyProp, i as bindingifyCSSPostPlugin, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, v as MinimalPluginContextImpl } from "./normalize-string-or-regex-B8NuOx7w.mjs";
|
|
4
|
+
import { t as parseAst } from "./parse-ast-index-C0k-VwRM.mjs";
|
|
5
5
|
import { a as include, c as or, i as id, n as code, o as moduleType, r as exclude, t as and } from "./composable-filters-DZ5ToxRJ.mjs";
|
|
6
6
|
import { BindingAttachDebugInfo, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -37,8 +37,13 @@ function normalizeBindingResult(container) {
|
|
|
37
37
|
}
|
|
38
38
|
function normalizeBindingError(e$1) {
|
|
39
39
|
return e$1.type === "JsError" ? e$1.field0 : Object.assign(/* @__PURE__ */ new Error(), {
|
|
40
|
+
code: e$1.field0.kind,
|
|
40
41
|
kind: e$1.field0.kind,
|
|
41
42
|
message: e$1.field0.message,
|
|
43
|
+
id: e$1.field0.id,
|
|
44
|
+
exporter: e$1.field0.exporter,
|
|
45
|
+
loc: e$1.field0.loc,
|
|
46
|
+
pos: e$1.field0.pos,
|
|
42
47
|
stack: void 0
|
|
43
48
|
});
|
|
44
49
|
}
|
|
@@ -383,7 +388,13 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
383
388
|
};
|
|
384
389
|
}
|
|
385
390
|
emitFile = (file) => {
|
|
386
|
-
if (file.type === "prebuilt-chunk") return
|
|
391
|
+
if (file.type === "prebuilt-chunk") return this.context.emitPrebuiltChunk({
|
|
392
|
+
fileName: file.fileName,
|
|
393
|
+
code: file.code,
|
|
394
|
+
exports: file.exports,
|
|
395
|
+
map: bindingifySourcemap(file.map),
|
|
396
|
+
sourcemapFileName: file.sourcemapFileName
|
|
397
|
+
});
|
|
387
398
|
if (file.type === "chunk") return this.context.emitChunk({
|
|
388
399
|
preserveEntrySignatures: bindingifyPreserveEntrySignatures(file.preserveSignature),
|
|
389
400
|
...file
|
|
@@ -1031,7 +1042,7 @@ var NormalizedInputOptionsImpl = class extends PlainObjectLike {
|
|
|
1031
1042
|
return this.inner.input;
|
|
1032
1043
|
}
|
|
1033
1044
|
get cwd() {
|
|
1034
|
-
return this.inner.cwd
|
|
1045
|
+
return this.inner.cwd;
|
|
1035
1046
|
}
|
|
1036
1047
|
get platform() {
|
|
1037
1048
|
return this.inner.platform;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-B8NuOx7w.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -33,7 +33,10 @@ function viteBuildImportAnalysisPlugin(config) {
|
|
|
33
33
|
return new BuiltinPlugin("builtin:vite-build-import-analysis", config);
|
|
34
34
|
}
|
|
35
35
|
function viteResolvePlugin(config) {
|
|
36
|
-
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
|
+
}));
|
|
37
40
|
}
|
|
38
41
|
function isolatedDeclarationPlugin(config) {
|
|
39
42
|
return new BuiltinPlugin("builtin:isolated-declaration", config);
|
|
@@ -42,7 +45,9 @@ function viteWebWorkerPostPlugin() {
|
|
|
42
45
|
return new BuiltinPlugin("builtin:vite-web-worker-post");
|
|
43
46
|
}
|
|
44
47
|
function esmExternalRequirePlugin(config) {
|
|
45
|
-
|
|
48
|
+
const plugin = new BuiltinPlugin("builtin:esm-external-require", config);
|
|
49
|
+
plugin.enforce = "pre";
|
|
50
|
+
return plugin;
|
|
46
51
|
}
|
|
47
52
|
function viteReactRefreshWrapperPlugin(config) {
|
|
48
53
|
if (config) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BuiltinPlugin, u as StringOrRegExp } from "./utils-
|
|
2
|
-
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, h as BindingViteBuildImportAnalysisPluginConfig, i as BindingEsmExternalRequirePluginConfig, k as BindingViteWasmHelperPluginConfig, o as BindingIsolatedDeclarationPluginConfig, p as BindingViteAssetImportMetaUrlPluginConfig, v as BindingViteDynamicImportVarsPluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteHtmlInlineProxyPluginConfig } from "./binding-
|
|
1
|
+
import { t as BuiltinPlugin, u as StringOrRegExp } from "./utils-mjPIk7Yj.mjs";
|
|
2
|
+
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, h as BindingViteBuildImportAnalysisPluginConfig, i as BindingEsmExternalRequirePluginConfig, k as BindingViteWasmHelperPluginConfig, o as BindingIsolatedDeclarationPluginConfig, p as BindingViteAssetImportMetaUrlPluginConfig, v as BindingViteDynamicImportVarsPluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteHtmlInlineProxyPluginConfig } from "./binding-yIBVkeOE.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -9,13 +9,13 @@ type DynamicImportVarsPluginConfig = Omit<BindingViteDynamicImportVarsPluginConf
|
|
|
9
9
|
};
|
|
10
10
|
declare function viteDynamicImportVarsPlugin(config?: DynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
11
11
|
declare function viteImportGlobPlugin(config?: BindingViteImportGlobPluginConfig): BuiltinPlugin;
|
|
12
|
-
declare function viteReporterPlugin(config
|
|
13
|
-
declare function viteWasmHelperPlugin(config
|
|
12
|
+
declare function viteReporterPlugin(config: BindingViteReporterPluginConfig): BuiltinPlugin;
|
|
13
|
+
declare function viteWasmHelperPlugin(config: BindingViteWasmHelperPluginConfig): BuiltinPlugin;
|
|
14
14
|
declare function viteWasmFallbackPlugin(): BuiltinPlugin;
|
|
15
15
|
declare function viteLoadFallbackPlugin(): BuiltinPlugin;
|
|
16
|
-
declare function viteJsonPlugin(config
|
|
16
|
+
declare function viteJsonPlugin(config: BindingViteJsonPluginConfig): BuiltinPlugin;
|
|
17
17
|
declare function viteBuildImportAnalysisPlugin(config: BindingViteBuildImportAnalysisPluginConfig): BuiltinPlugin;
|
|
18
|
-
declare function viteResolvePlugin(config: BindingViteResolvePluginConfig): BuiltinPlugin;
|
|
18
|
+
declare function viteResolvePlugin(config: Omit<BindingViteResolvePluginConfig, "yarnPnp">): BuiltinPlugin;
|
|
19
19
|
declare function isolatedDeclarationPlugin(config?: BindingIsolatedDeclarationPluginConfig): BuiltinPlugin;
|
|
20
20
|
declare function viteWebWorkerPostPlugin(): BuiltinPlugin;
|
|
21
21
|
declare function esmExternalRequirePlugin(config?: BindingEsmExternalRequirePluginConfig): BuiltinPlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as MakeAsync, c as NullValue, d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, l as PartialNull, m as RollupError, n as LoggingFunction, o as MaybeArray, p as LogOrStringHandler, r as LoggingFunctionWithPosition, s as MaybePromise, t as BuiltinPlugin, u as StringOrRegExp } from "./utils-
|
|
2
|
-
import { A as BindingWatcherBundler, B as ParserOptions, F as JsxOptions, I as MinifyOptions$1, M as ExternalMemoryStatus, V as PreRenderedChunk, W as TransformOptions$1, a as BindingHookResolveIdExtraArgs, d as BindingTransformHookExtraArgs, j as BindingWatcherEvent, l as BindingRenderedChunk, s as BindingMagicString } from "./binding-
|
|
1
|
+
import { a as MakeAsync, c as NullValue, d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, l as PartialNull, m as RollupError, n as LoggingFunction, o as MaybeArray, p as LogOrStringHandler, r as LoggingFunctionWithPosition, s as MaybePromise, t as BuiltinPlugin, u as StringOrRegExp } from "./utils-mjPIk7Yj.mjs";
|
|
2
|
+
import { A as BindingWatcherBundler, B as ParserOptions, F as JsxOptions, I as MinifyOptions$1, M as ExternalMemoryStatus, V as PreRenderedChunk, W as TransformOptions$1, a as BindingHookResolveIdExtraArgs, d as BindingTransformHookExtraArgs, j as BindingWatcherEvent, l as BindingRenderedChunk, s as BindingMagicString } from "./binding-yIBVkeOE.mjs";
|
|
3
3
|
import { Program } from "@oxc-project/types";
|
|
4
4
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
5
5
|
|
|
@@ -669,7 +669,7 @@ declare const watch: (input: WatchOptions | WatchOptions[]) => RolldownWatcher;
|
|
|
669
669
|
//#region src/options/normalized-input-options.d.ts
|
|
670
670
|
interface NormalizedInputOptions {
|
|
671
671
|
input: string[] | Record<string, string>;
|
|
672
|
-
cwd: string
|
|
672
|
+
cwd: string;
|
|
673
673
|
platform: InputOptions["platform"];
|
|
674
674
|
shimMissingExports: boolean;
|
|
675
675
|
context: string;
|
|
@@ -867,7 +867,15 @@ interface EmittedChunk {
|
|
|
867
867
|
id: string;
|
|
868
868
|
importer?: string;
|
|
869
869
|
}
|
|
870
|
-
|
|
870
|
+
interface EmittedPrebuiltChunk {
|
|
871
|
+
type: "prebuilt-chunk";
|
|
872
|
+
fileName: string;
|
|
873
|
+
code: string;
|
|
874
|
+
exports?: string[];
|
|
875
|
+
map?: SourceMap;
|
|
876
|
+
sourcemapFileName?: string;
|
|
877
|
+
}
|
|
878
|
+
type EmittedFile = EmittedAsset | EmittedChunk | EmittedPrebuiltChunk;
|
|
871
879
|
interface PluginContextResolveOptions {
|
|
872
880
|
isEntry?: boolean;
|
|
873
881
|
skipSelf?: boolean;
|
|
@@ -1174,6 +1182,11 @@ interface ChecksOptions {
|
|
|
1174
1182
|
* @default true
|
|
1175
1183
|
*/
|
|
1176
1184
|
couldNotCleanDirectory?: boolean;
|
|
1185
|
+
/**
|
|
1186
|
+
* Whether to emit warning when detecting plugin timings
|
|
1187
|
+
* @default true
|
|
1188
|
+
*/
|
|
1189
|
+
pluginTimings?: boolean;
|
|
1177
1190
|
}
|
|
1178
1191
|
//#endregion
|
|
1179
1192
|
//#region src/options/transform-options.d.ts
|
|
@@ -1618,4 +1631,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
1618
1631
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
1619
1632
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1620
1633
|
//#endregion
|
|
1621
|
-
export {
|
|
1634
|
+
export { InternalModuleFormat as $, VERSION as A, GetModuleInfo as B, ResolveIdResult as C, RenderedModule as Ct, SourceDescription as D, ModuleInfo as Dt, RolldownPluginOption as E, freeExternalMemory as Et, TreeshakingOptions as F, PluginContextMeta as G, DefineParallelPluginResult as H, TransformPluginContext as I, ModuleTypeFilter as J, GeneralHookFilter as K, EmittedAsset as L, SourceMapInput as M, RolldownOptionsFunction as N, TransformResult as O, SourcemapIgnoreListOption as Ot, OutputBundle as P, RolldownFsModule as Q, EmittedFile as R, ResolveIdExtraOptions as S, RenderedChunk as St, RolldownPlugin as T, SourceMap as Tt, defineParallelPlugin as U, PluginContext as V, MinimalPluginContext as W, RolldownDirectoryEntry as X, BufferEncoding as Y, RolldownFileStats as Z, ModuleType as _, ModuleFormat as _t, InputOption as a, WatchOptions as at, PartialResolvedId as b, OutputAsset as bt, OptimizationOptions as c, BuildOptions as ct, CustomPluginOptions as d, ChunkFileNamesFunction as dt, NormalizedOutputOptions as et, FunctionPluginHooks as f, ChunkingContext as ft, ModuleOptions as g, MinifyOptions as gt, LoadResult as h, GlobalsFunction as ht, ExternalOption as i, RolldownWatcherEvent as it, ExistingRawSourceMap as j, withFilter as k, WatcherOptions as l, build as lt, ImportKind as m, GeneratedCodePreset as mt, ConfigExport as n, watch as nt, InputOptions as o, rolldown as ot, HookFilterExtension as p, GeneratedCodeOptions as pt, HookFilter as q, RolldownOptions as r, RolldownWatcher as rt, ModuleTypes as s, RolldownBuild as st, defineConfig as t, NormalizedInputOptions as tt, AsyncPluginHooks as u, AddonFunction as ut, ObjectHook as v, OutputOptions as vt, ResolvedId as w, RolldownOutput as wt, Plugin as x, OutputChunk as xt, ParallelPluginHooks as y, PreRenderedAsset as yt, EmittedPrebuiltChunk as z };
|
|
@@ -32,7 +32,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region package.json
|
|
35
|
-
var version = "1.0.0-beta.
|
|
35
|
+
var version = "1.0.0-beta.54";
|
|
36
36
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
@@ -190,7 +190,7 @@ function bindingAssetSource(source) {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region \0@oxc-project+runtime@0.
|
|
193
|
+
//#region \0@oxc-project+runtime@0.102.0/helpers/decorate.js
|
|
194
194
|
function __decorate(decorators, target, key, desc) {
|
|
195
195
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
196
196
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -557,6 +557,8 @@ function collectChangedBundle(changed, bundle) {
|
|
|
557
557
|
//#endregion
|
|
558
558
|
//#region src/builtin-plugin/utils.ts
|
|
559
559
|
var BuiltinPlugin = class {
|
|
560
|
+
/** Vite-specific option to control plugin ordering */
|
|
561
|
+
enforce;
|
|
560
562
|
constructor(name, _options) {
|
|
561
563
|
this.name = name;
|
|
562
564
|
this._options = _options;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as locate, n as error, s as logParseError, u as getCodeFrame } from "./logs-CPsamAuj.mjs";
|
|
2
2
|
import { parse, parseSync } from "../rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.102.0/node_modules/oxc-parser/src-js/wrap.js
|
|
5
5
|
function wrap$1(result) {
|
|
6
6
|
let program, module, comments, errors;
|
|
7
7
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-
|
|
1
|
+
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-yjeMNdrl.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/api/rolldown/index.ts
|
|
4
4
|
const rolldown = async (input) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-CPsamAuj.mjs";
|
|
2
2
|
import { i as unimplemented } from "./misc-5GYLGQ20.mjs";
|
|
3
|
-
import { C as LOG_LEVEL_DEBUG, D as logLevelPriority, E as LOG_LEVEL_WARN, S as normalizeLog, T as LOG_LEVEL_INFO, _ as PlainObjectLike, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, n as BuiltinPlugin, p as __decorate, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_ERROR, y as VERSION } from "./normalize-string-or-regex-
|
|
4
|
-
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-
|
|
3
|
+
import { C as LOG_LEVEL_DEBUG, D as logLevelPriority, E as LOG_LEVEL_WARN, S as normalizeLog, T as LOG_LEVEL_INFO, _ as PlainObjectLike, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, n as BuiltinPlugin, p as __decorate, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_ERROR, y as VERSION } from "./normalize-string-or-regex-B8NuOx7w.mjs";
|
|
4
|
+
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-CxbvPG4D.mjs";
|
|
5
5
|
import { Worker } from "node:worker_threads";
|
|
6
6
|
import { BindingBundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1585,7 +1585,7 @@ const TransformOptionsSchema = object({
|
|
|
1585
1585
|
JsxOptionsSchema
|
|
1586
1586
|
])),
|
|
1587
1587
|
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment")),
|
|
1588
|
-
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
1588
|
+
define: pipe(optional(record(string(), string())), description("Define global variables (syntax: key=value,key2=value2)")),
|
|
1589
1589
|
inject: pipe(optional(record(string(), union([string(), tuple([string(), string()])]))), description("Inject import statements on demand")),
|
|
1590
1590
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names"))
|
|
1591
1591
|
});
|
|
@@ -1616,7 +1616,8 @@ const ChecksOptionsSchema = strictObject({
|
|
|
1616
1616
|
emptyImportMeta: pipe(optional(boolean()), description("Whether to emit warning when detecting empty import meta")),
|
|
1617
1617
|
configurationFieldConflict: pipe(optional(boolean()), description("Whether to emit warning when detecting configuration field conflict")),
|
|
1618
1618
|
preferBuiltinFeature: pipe(optional(boolean()), description("Whether to emit warning when detecting prefer builtin feature")),
|
|
1619
|
-
couldNotCleanDirectory: pipe(optional(boolean()), description("Whether to emit warning when detecting could not clean directory"))
|
|
1619
|
+
couldNotCleanDirectory: pipe(optional(boolean()), description("Whether to emit warning when detecting could not clean directory")),
|
|
1620
|
+
pluginTimings: pipe(optional(boolean()), description("Whether to emit warning when detecting plugin timings"))
|
|
1620
1621
|
});
|
|
1621
1622
|
const CompressOptionsKeepNamesSchema = strictObject({
|
|
1622
1623
|
function: boolean(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BindingBuiltinPluginName } from "./binding-
|
|
1
|
+
import { t as BindingBuiltinPluginName } from "./binding-yIBVkeOE.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/log/logging.d.ts
|
|
4
4
|
type LogLevel = "info" | "debug" | "warn";
|
|
@@ -56,6 +56,8 @@ type WarningHandlerWithDefault = (warning: RollupLog, defaultHandler: LoggingFun
|
|
|
56
56
|
declare class BuiltinPlugin {
|
|
57
57
|
name: BindingBuiltinPluginName;
|
|
58
58
|
_options?: unknown;
|
|
59
|
+
/** Vite-specific option to control plugin ordering */
|
|
60
|
+
enforce?: "pre" | "post";
|
|
59
61
|
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
60
62
|
}
|
|
61
63
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { o as logMultiplyNotifyOption } from "./logs-CPsamAuj.mjs";
|
|
2
2
|
import { t as arraify } from "./misc-5GYLGQ20.mjs";
|
|
3
|
-
import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-
|
|
4
|
-
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-
|
|
5
|
-
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-
|
|
3
|
+
import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-B8NuOx7w.mjs";
|
|
4
|
+
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-yjeMNdrl.mjs";
|
|
5
|
+
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-CxbvPG4D.mjs";
|
|
6
6
|
import { BindingWatcher, shutdownAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
|
|
8
8
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
@@ -205,6 +205,18 @@ var SignalExit = class extends SignalExitBase {
|
|
|
205
205
|
const process$1 = globalThis.process;
|
|
206
206
|
const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
|
|
207
207
|
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/utils/signal-exit.ts
|
|
210
|
+
function onExit$1(...args) {
|
|
211
|
+
if (typeof process === "object" && process.versions.webcontainer) {
|
|
212
|
+
process.on("exit", (code) => {
|
|
213
|
+
args[0](code, null);
|
|
214
|
+
});
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
onExit(...args);
|
|
218
|
+
}
|
|
219
|
+
|
|
208
220
|
//#endregion
|
|
209
221
|
//#region src/api/watch/watch-emitter.ts
|
|
210
222
|
var WatcherEmitter = class {
|
|
@@ -335,4 +347,4 @@ const watch = (input) => {
|
|
|
335
347
|
};
|
|
336
348
|
|
|
337
349
|
//#endregion
|
|
338
|
-
export { onExit as n, watch as t };
|
|
350
|
+
export { onExit$1 as n, watch as t };
|
package/package.json
CHANGED