@rolldown/browser 1.1.0 → 1.1.2
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 +12 -12
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/{constructors-B3MtwuwE.js → constructors-CnlRXsZI.js} +1 -4
- package/dist/{error-5Tc1aq0X.js → error-DOcnYe1L.js} +1 -1
- package/dist/experimental-index.browser.mjs +5 -5
- package/dist/experimental-index.d.mts +6 -6
- package/dist/experimental-index.mjs +5 -5
- package/dist/filter-index.d.mts +1 -104
- package/dist/filter-index.mjs +1 -120
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.mjs +1 -1
- 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 +1 -1
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +1 -1
- package/dist/{resolve-tsconfig-zB6S1f4Q.js → resolve-tsconfig-B_KTldgL.js} +1 -1
- package/dist/rolldown-binding.wasi-browser.js +1 -0
- package/dist/rolldown-binding.wasi.cjs +1 -0
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-CDo_414H.js → rolldown-build-DkMkdHEX.js} +11 -7
- package/dist/shared/{binding-BhK3B-Zu.d.mts → binding-dOJO0Ipo.d.mts} +69 -24
- package/dist/shared/{bindingify-input-options-Yh0p_yKx.mjs → bindingify-input-options-CM59dkv7.mjs} +6 -6
- package/dist/shared/{constructors-YQsI-lJq.mjs → constructors-CAjrhG6p.mjs} +1 -4
- package/dist/shared/{constructors-CtnJN4Sg.d.mts → constructors-DXDHUcCD.d.mts} +3 -4
- package/dist/shared/{define-config-D0lnfATD.d.mts → define-config-VyEuugfx.d.mts} +106 -5
- package/dist/shared/{composable-filters-BcLvc0mh.mjs → filter-B_mD-HGz-Cbrk-2bt.mjs} +117 -4
- package/dist/shared/{load-config-D8sdE9HQ.mjs → load-config-ZI8T7gXR.mjs} +1 -1
- package/dist/shared/{parse-DYBaZ0kb.mjs → parse-DzXgx0D0.mjs} +1 -1
- package/dist/shared/{prompt-DYnaB1Nb.mjs → prompt-B1Yc1NPt.mjs} +5 -5
- package/dist/shared/{rolldown-CTBzrYF-.mjs → rolldown-DWdNBjur.mjs} +1 -1
- package/dist/shared/{rolldown-build-w_8ZCR-S.mjs → rolldown-build-CNErHQbt.mjs} +10 -6
- package/dist/shared/{transform-HS_zMlQ1.d.mts → transform-Wt-zRSFQ.d.mts} +1 -1
- package/dist/shared/{utils-m0ogxd-4.d.mts → utils-CuJMMtAZ.d.mts} +1 -1
- package/dist/shared/{watch-C5dPEOJJ.mjs → watch-DNIwEbWZ.mjs} +3 -3
- package/dist/utils-index.browser.mjs +6 -6
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +5 -5
- package/package.json +4 -4
package/dist/cli.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { C as version, S as description } from "./shared/bindingify-input-options-
|
|
3
|
-
import {
|
|
4
|
-
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-
|
|
5
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
6
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-DNIwEbWZ.mjs";
|
|
2
|
+
import { C as version, S as description } from "./shared/bindingify-input-options-CM59dkv7.mjs";
|
|
3
|
+
import { y as arraify } from "./shared/filter-B_mD-HGz-Cbrk-2bt.mjs";
|
|
4
|
+
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-CNErHQbt.mjs";
|
|
5
|
+
import { t as rolldown } from "./shared/rolldown-DWdNBjur.mjs";
|
|
6
|
+
import { t as loadConfig } from "./shared/load-config-ZI8T7gXR.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import g$1 from "node:process";
|
|
9
9
|
import { performance } from "node:perf_hooks";
|
|
10
10
|
//#region ../../node_modules/.pnpm/cac@7.0.0/node_modules/cac/dist/index.js
|
|
11
11
|
function toArr(any) {
|
|
@@ -679,7 +679,7 @@ function camelCaseToKebabCase(str) {
|
|
|
679
679
|
}
|
|
680
680
|
//#endregion
|
|
681
681
|
//#region src/cli/arguments/normalize.ts
|
|
682
|
-
const reservedKeys = new Set([
|
|
682
|
+
const reservedKeys = /* @__PURE__ */ new Set([
|
|
683
683
|
"help",
|
|
684
684
|
"version",
|
|
685
685
|
"config",
|
|
@@ -847,7 +847,7 @@ function getClearScreenFunction(options) {
|
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
849
|
//#endregion
|
|
850
|
-
//#region \0@oxc-project+runtime@0.
|
|
850
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/usingCtx.js
|
|
851
851
|
function _usingCtx() {
|
|
852
852
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
853
853
|
var n = Error();
|
|
@@ -1155,14 +1155,14 @@ function checkNodeVersion(nodeVersion) {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
//#endregion
|
|
1157
1157
|
//#region src/cli/index.ts
|
|
1158
|
-
if (!checkNodeVersion(
|
|
1158
|
+
if (!checkNodeVersion(g$1.versions.node)) logger.warn(`You are using Node.js ${g$1.versions.node}. Rolldown requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.`);
|
|
1159
1159
|
async function main() {
|
|
1160
1160
|
const { rawArgs, ...cliOptions } = parseCliArguments();
|
|
1161
1161
|
if (cliOptions.environment) {
|
|
1162
1162
|
const environment = Array.isArray(cliOptions.environment) ? cliOptions.environment : [cliOptions.environment];
|
|
1163
1163
|
for (const argument of environment) for (const pair of argument.split(",")) {
|
|
1164
1164
|
const [key, ...value] = pair.split(":");
|
|
1165
|
-
|
|
1165
|
+
g$1.env[key] = value.length === 0 ? String(true) : value.join(":");
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
1168
|
if (cliOptions.help) {
|
|
@@ -1185,7 +1185,7 @@ async function main() {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
main().catch((err) => {
|
|
1187
1187
|
logger.error(err);
|
|
1188
|
-
|
|
1188
|
+
g$1.exit(1);
|
|
1189
1189
|
});
|
|
1190
1190
|
//#endregion
|
|
1191
1191
|
export {};
|
package/dist/config.d.mts
CHANGED
package/dist/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as VERSION } from "./shared/bindingify-input-options-
|
|
1
|
+
import { x as VERSION } from "./shared/bindingify-input-options-CM59dkv7.mjs";
|
|
2
2
|
import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
|
|
3
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
3
|
+
import { t as loadConfig } from "./shared/load-config-ZI8T7gXR.mjs";
|
|
4
4
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -16,9 +16,6 @@ function viteImportGlobPlugin(config) {
|
|
|
16
16
|
function viteReporterPlugin(config) {
|
|
17
17
|
return new BuiltinPlugin("builtin:vite-reporter", config);
|
|
18
18
|
}
|
|
19
|
-
function viteWasmFallbackPlugin() {
|
|
20
|
-
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-wasm-fallback"));
|
|
21
|
-
}
|
|
22
19
|
function viteLoadFallbackPlugin() {
|
|
23
20
|
return new BuiltinPlugin("builtin:vite-load-fallback");
|
|
24
21
|
}
|
|
@@ -65,4 +62,4 @@ function viteReactRefreshWrapperPlugin(config) {
|
|
|
65
62
|
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-react-refresh-wrapper", config));
|
|
66
63
|
}
|
|
67
64
|
//#endregion
|
|
68
|
-
export { viteDynamicImportVarsPlugin as a, viteLoadFallbackPlugin as c, viteReporterPlugin as d, viteResolvePlugin as f, viteBuildImportAnalysisPlugin as i, viteModulePreloadPolyfillPlugin as l,
|
|
65
|
+
export { viteDynamicImportVarsPlugin as a, viteLoadFallbackPlugin as c, viteReporterPlugin as d, viteResolvePlugin as f, viteBuildImportAnalysisPlugin as i, viteModulePreloadPolyfillPlugin as l, isolatedDeclarationPlugin as n, viteImportGlobPlugin as o, viteWebWorkerPostPlugin as p, oxcRuntimePlugin as r, viteJsonPlugin as s, esmExternalRequirePlugin as t, viteReactRefreshWrapperPlugin as u };
|
|
@@ -14,7 +14,7 @@ function bindingifySourcemap(map) {
|
|
|
14
14
|
} };
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
17
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.137.0/node_modules/oxc-parser/src-js/wrap.js
|
|
18
18
|
function wrap(result) {
|
|
19
19
|
let program, module, comments, errors;
|
|
20
20
|
return {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-A9UIvc9j.js";
|
|
2
|
-
import { a as validateOption, i as transformToRollupOutput, n as createBundlerOptions, o as PluginDriver, t as RolldownBuild } from "./rolldown-build-
|
|
3
|
-
import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-
|
|
4
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin,
|
|
5
|
-
import { a as minify$2, i as transformSync$1, n as resolveTsconfig, o as minifySync$2, r as transform$1, t as TsconfigCache$2 } from "./resolve-tsconfig-
|
|
2
|
+
import { a as validateOption, i as transformToRollupOutput, n as createBundlerOptions, o as PluginDriver, t as RolldownBuild } from "./rolldown-build-DkMkdHEX.js";
|
|
3
|
+
import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-DOcnYe1L.js";
|
|
4
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./constructors-CnlRXsZI.js";
|
|
5
|
+
import { a as minify$2, i as transformSync$1, n as resolveTsconfig, o as minifySync$2, r as transform$1, t as TsconfigCache$2 } from "./resolve-tsconfig-B_KTldgL.js";
|
|
6
6
|
import * as binding from "./rolldown-binding.wasi-browser.js";
|
|
7
7
|
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
8
8
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -312,4 +312,4 @@ const transformSync = transformSync$1;
|
|
|
312
312
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
313
313
|
const TsconfigCache = TsconfigCache$2;
|
|
314
314
|
//#endregion
|
|
315
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin,
|
|
315
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-
|
|
2
|
-
import {
|
|
3
|
-
import { s as StringOrRegExp, t as BuiltinPlugin } from "./shared/utils-
|
|
4
|
-
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-
|
|
5
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin,
|
|
1
|
+
import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-dOJO0Ipo.mjs";
|
|
2
|
+
import { fn as RolldownOutput, kt as NormalizedOutputOptions, l as InputOptions, mn as freeExternalMemory, on as OutputOptions, vt as defineParallelPlugin } from "./shared/define-config-VyEuugfx.mjs";
|
|
3
|
+
import { s as StringOrRegExp, t as BuiltinPlugin } from "./shared/utils-CuJMMtAZ.mjs";
|
|
4
|
+
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-Wt-zRSFQ.mjs";
|
|
5
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-DXDHUcCD.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/api/dev/dev-options.d.ts
|
|
8
8
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -268,4 +268,4 @@ type TsconfigRawOptions = BindingTsconfigRawOptions;
|
|
|
268
268
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
269
269
|
type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
|
|
270
270
|
//#endregion
|
|
271
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin,
|
|
271
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-CHVaSqeF.mjs";
|
|
2
|
-
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-
|
|
3
|
-
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-
|
|
2
|
+
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-CM59dkv7.mjs";
|
|
3
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-CNErHQbt.mjs";
|
|
4
4
|
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-B5cMIevi.mjs";
|
|
5
|
-
import { n as parseSync$2, t as parse$2 } from "./shared/parse-
|
|
6
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin,
|
|
5
|
+
import { n as parseSync$2, t as parse$2 } from "./shared/parse-DzXgx0D0.mjs";
|
|
6
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-CAjrhG6p.mjs";
|
|
7
7
|
import { a as minify$2, i as transformSync$1, n as resolveTsconfig, o as minifySync$2, r as transform$1, t as TsconfigCache$2 } from "./shared/resolve-tsconfig-DsK7KzKK.mjs";
|
|
8
8
|
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi.cjs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
@@ -316,4 +316,4 @@ const transformSync = transformSync$1;
|
|
|
316
316
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
317
317
|
const TsconfigCache = TsconfigCache$2;
|
|
318
318
|
//#endregion
|
|
319
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin,
|
|
319
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,105 +1,2 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Filters out Vite plugins that have `apply: 'serve'` set.
|
|
6
|
-
*
|
|
7
|
-
* Since Rolldown operates in build mode, plugins marked with `apply: 'serve'`
|
|
8
|
-
* are intended only for Vite's dev server and should be excluded from the build process.
|
|
9
|
-
*
|
|
10
|
-
* @param plugins - Array of plugins (can include nested arrays)
|
|
11
|
-
* @returns Filtered array with serve-only plugins removed
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* import { defineConfig } from 'rolldown';
|
|
16
|
-
* import { filterVitePlugins } from '@rolldown/pluginutils';
|
|
17
|
-
* import viteReact from '@vitejs/plugin-react';
|
|
18
|
-
*
|
|
19
|
-
* export default defineConfig({
|
|
20
|
-
* plugins: filterVitePlugins([
|
|
21
|
-
* viteReact(),
|
|
22
|
-
* {
|
|
23
|
-
* name: 'dev-only',
|
|
24
|
-
* apply: 'serve', // This will be filtered out
|
|
25
|
-
* // ...
|
|
26
|
-
* }
|
|
27
|
-
* ])
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
declare function filterVitePlugins<T = any>(plugins: T | T[] | null | undefined | false): T[];
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts
|
|
34
|
-
/**
|
|
35
|
-
* Constructs a RegExp that matches the exact string specified.
|
|
36
|
-
*
|
|
37
|
-
* This is useful for plugin hook filters.
|
|
38
|
-
*
|
|
39
|
-
* @param str the string to match.
|
|
40
|
-
* @param flags flags for the RegExp.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* import { exactRegex } from '@rolldown/pluginutils';
|
|
45
|
-
* const plugin = {
|
|
46
|
-
* name: 'plugin',
|
|
47
|
-
* resolveId: {
|
|
48
|
-
* filter: { id: exactRegex('foo') },
|
|
49
|
-
* handler(id) {} // will only be called for `foo`
|
|
50
|
-
* }
|
|
51
|
-
* }
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
declare function exactRegex(str: string, flags?: string): RegExp;
|
|
55
|
-
/**
|
|
56
|
-
* Constructs a RegExp that matches a value that has the specified prefix.
|
|
57
|
-
*
|
|
58
|
-
* This is useful for plugin hook filters.
|
|
59
|
-
*
|
|
60
|
-
* @param str the string to match.
|
|
61
|
-
* @param flags flags for the RegExp.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* ```ts
|
|
65
|
-
* import { prefixRegex } from '@rolldown/pluginutils';
|
|
66
|
-
* const plugin = {
|
|
67
|
-
* name: 'plugin',
|
|
68
|
-
* resolveId: {
|
|
69
|
-
* filter: { id: prefixRegex('foo') },
|
|
70
|
-
* handler(id) {} // will only be called for IDs starting with `foo`
|
|
71
|
-
* }
|
|
72
|
-
* }
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
declare function prefixRegex(str: string, flags?: string): RegExp;
|
|
76
|
-
type WidenString<T> = T extends string ? string : T;
|
|
77
|
-
/**
|
|
78
|
-
* Converts a id filter to match with an id with a query.
|
|
79
|
-
*
|
|
80
|
-
* @param input the id filters to convert.
|
|
81
|
-
*
|
|
82
|
-
* @example
|
|
83
|
-
* ```ts
|
|
84
|
-
* import { makeIdFiltersToMatchWithQuery } from '@rolldown/pluginutils';
|
|
85
|
-
* const plugin = {
|
|
86
|
-
* name: 'plugin',
|
|
87
|
-
* transform: {
|
|
88
|
-
* filter: { id: makeIdFiltersToMatchWithQuery(['**' + '/*.js', /\.ts$/]) },
|
|
89
|
-
* // The handler will be called for IDs like:
|
|
90
|
-
* // - foo.js
|
|
91
|
-
* // - foo.js?foo
|
|
92
|
-
* // - foo.txt?foo.js
|
|
93
|
-
* // - foo.ts
|
|
94
|
-
* // - foo.ts?foo
|
|
95
|
-
* // - foo.txt?foo.ts
|
|
96
|
-
* handler(code, id) {}
|
|
97
|
-
* }
|
|
98
|
-
* }
|
|
99
|
-
* ```
|
|
100
|
-
*/
|
|
101
|
-
declare function makeIdFiltersToMatchWithQuery<T extends string | RegExp>(input: T): WidenString<T>;
|
|
102
|
-
declare function makeIdFiltersToMatchWithQuery<T extends string | RegExp>(input: readonly T[]): WidenString<T>[];
|
|
103
|
-
declare function makeIdFiltersToMatchWithQuery(input: string | RegExp | readonly (string | RegExp)[]): string | RegExp | (string | RegExp)[];
|
|
104
|
-
//#endregion
|
|
1
|
+
import { $ as prefixRegex, B as exactRegex, F as FilterExpressionKind, G as importerId, H as exprInterpreter, I as QueryFilterObject, J as interpreterImpl, K as include, L as TopLevelFilterExpression, N as withFilter, P as FilterExpression, Q as or, R as and, U as filterVitePlugins, V as exclude, W as id, X as moduleType, Y as makeIdFiltersToMatchWithQuery, Z as not, et as queries, q as interpreter, tt as query, z as code } from "./shared/define-config-VyEuugfx.mjs";
|
|
105
2
|
export { FilterExpression, FilterExpressionKind, QueryFilterObject, TopLevelFilterExpression, and, code, exactRegex, exclude, exprInterpreter, filterVitePlugins, id, importerId, include, interpreter, interpreterImpl, makeIdFiltersToMatchWithQuery, moduleType, not, or, prefixRegex, queries, query, withFilter };
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,123 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js
|
|
3
|
-
/**
|
|
4
|
-
* Filters out Vite plugins that have `apply: 'serve'` set.
|
|
5
|
-
*
|
|
6
|
-
* Since Rolldown operates in build mode, plugins marked with `apply: 'serve'`
|
|
7
|
-
* are intended only for Vite's dev server and should be excluded from the build process.
|
|
8
|
-
*
|
|
9
|
-
* @param plugins - Array of plugins (can include nested arrays)
|
|
10
|
-
* @returns Filtered array with serve-only plugins removed
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* import { defineConfig } from 'rolldown';
|
|
15
|
-
* import { filterVitePlugins } from '@rolldown/pluginutils';
|
|
16
|
-
* import viteReact from '@vitejs/plugin-react';
|
|
17
|
-
*
|
|
18
|
-
* export default defineConfig({
|
|
19
|
-
* plugins: filterVitePlugins([
|
|
20
|
-
* viteReact(),
|
|
21
|
-
* {
|
|
22
|
-
* name: 'dev-only',
|
|
23
|
-
* apply: 'serve', // This will be filtered out
|
|
24
|
-
* // ...
|
|
25
|
-
* }
|
|
26
|
-
* ])
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
function filterVitePlugins(plugins) {
|
|
31
|
-
if (!plugins) return [];
|
|
32
|
-
const pluginArray = Array.isArray(plugins) ? plugins : [plugins];
|
|
33
|
-
const result = [];
|
|
34
|
-
for (const plugin of pluginArray) {
|
|
35
|
-
if (!plugin) continue;
|
|
36
|
-
if (Array.isArray(plugin)) {
|
|
37
|
-
result.push(...filterVitePlugins(plugin));
|
|
38
|
-
continue;
|
|
39
|
-
}
|
|
40
|
-
const pluginWithApply = plugin;
|
|
41
|
-
if ("apply" in pluginWithApply) {
|
|
42
|
-
const applyValue = pluginWithApply.apply;
|
|
43
|
-
if (typeof applyValue === "function") try {
|
|
44
|
-
if (applyValue({}, {
|
|
45
|
-
command: "build",
|
|
46
|
-
mode: "production"
|
|
47
|
-
})) result.push(plugin);
|
|
48
|
-
} catch {
|
|
49
|
-
result.push(plugin);
|
|
50
|
-
}
|
|
51
|
-
else if (applyValue === "serve") continue;
|
|
52
|
-
else result.push(plugin);
|
|
53
|
-
} else result.push(plugin);
|
|
54
|
-
}
|
|
55
|
-
return result;
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js
|
|
59
|
-
/**
|
|
60
|
-
* Constructs a RegExp that matches the exact string specified.
|
|
61
|
-
*
|
|
62
|
-
* This is useful for plugin hook filters.
|
|
63
|
-
*
|
|
64
|
-
* @param str the string to match.
|
|
65
|
-
* @param flags flags for the RegExp.
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```ts
|
|
69
|
-
* import { exactRegex } from '@rolldown/pluginutils';
|
|
70
|
-
* const plugin = {
|
|
71
|
-
* name: 'plugin',
|
|
72
|
-
* resolveId: {
|
|
73
|
-
* filter: { id: exactRegex('foo') },
|
|
74
|
-
* handler(id) {} // will only be called for `foo`
|
|
75
|
-
* }
|
|
76
|
-
* }
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
function exactRegex(str, flags) {
|
|
80
|
-
return new RegExp(`^${escapeRegex(str)}$`, flags);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Constructs a RegExp that matches a value that has the specified prefix.
|
|
84
|
-
*
|
|
85
|
-
* This is useful for plugin hook filters.
|
|
86
|
-
*
|
|
87
|
-
* @param str the string to match.
|
|
88
|
-
* @param flags flags for the RegExp.
|
|
89
|
-
*
|
|
90
|
-
* @example
|
|
91
|
-
* ```ts
|
|
92
|
-
* import { prefixRegex } from '@rolldown/pluginutils';
|
|
93
|
-
* const plugin = {
|
|
94
|
-
* name: 'plugin',
|
|
95
|
-
* resolveId: {
|
|
96
|
-
* filter: { id: prefixRegex('foo') },
|
|
97
|
-
* handler(id) {} // will only be called for IDs starting with `foo`
|
|
98
|
-
* }
|
|
99
|
-
* }
|
|
100
|
-
* ```
|
|
101
|
-
*/
|
|
102
|
-
function prefixRegex(str, flags) {
|
|
103
|
-
return new RegExp(`^${escapeRegex(str)}`, flags);
|
|
104
|
-
}
|
|
105
|
-
const escapeRegexRE = /[-/\\^$*+?.()|[\]{}]/g;
|
|
106
|
-
function escapeRegex(str) {
|
|
107
|
-
return str.replace(escapeRegexRE, "\\$&");
|
|
108
|
-
}
|
|
109
|
-
function makeIdFiltersToMatchWithQuery(input) {
|
|
110
|
-
if (!Array.isArray(input)) return makeIdFilterToMatchWithQuery(input);
|
|
111
|
-
return input.map((i) => makeIdFilterToMatchWithQuery(i));
|
|
112
|
-
}
|
|
113
|
-
function makeIdFilterToMatchWithQuery(input) {
|
|
114
|
-
if (typeof input === "string") return `${input}{?*,}`;
|
|
115
|
-
return makeRegexIdFilterToMatchWithQuery(input);
|
|
116
|
-
}
|
|
117
|
-
function makeRegexIdFilterToMatchWithQuery(input) {
|
|
118
|
-
return new RegExp(input.source.replace(/(?<!\\)\$/g, "(?:\\?.*)?$"), input.flags);
|
|
119
|
-
}
|
|
120
|
-
//#endregion
|
|
1
|
+
import { _ as queries, a as exprInterpreter, b as isPromiseLike, c as importerId, d as interpreterImpl, f as makeIdFiltersToMatchWithQuery, g as prefixRegex, h as or, i as exclude, l as include, m as not, n as code, o as filterVitePlugins, p as moduleType, r as exactRegex, s as id, t as and, u as interpreter, v as query, y as arraify } from "./shared/filter-B_mD-HGz-Cbrk-2bt.mjs";
|
|
121
2
|
//#region src/plugin/with-filter.ts
|
|
122
3
|
function withFilterImpl(pluginOption, filterObjectList) {
|
|
123
4
|
if (isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as logMultipleWatcherOption } from "./normalize-string-or-regex-A9UIvc9j.js";
|
|
2
|
-
import { a as validateOption, c as arraify, l as RUNTIME_MODULE_ID, n as createBundlerOptions, o as PluginDriver, r as RolldownMagicString, s as LOG_LEVEL_WARN, t as RolldownBuild, u as VERSION } from "./rolldown-build-
|
|
3
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
2
|
+
import { a as validateOption, c as arraify, l as RUNTIME_MODULE_ID, n as createBundlerOptions, o as PluginDriver, r as RolldownMagicString, s as LOG_LEVEL_WARN, t as RolldownBuild, u as VERSION } from "./rolldown-build-DkMkdHEX.js";
|
|
3
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-DOcnYe1L.js";
|
|
4
4
|
import { BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
5
5
|
//#region src/api/rolldown/index.ts
|
|
6
6
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as PreRenderedChunk } from "./shared/binding-
|
|
1
|
+
import { z as PreRenderedChunk } from "./shared/binding-dOJO0Ipo.mjs";
|
|
2
2
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-BSNejiLS.mjs";
|
|
3
|
-
import { $
|
|
4
|
-
import { o as PartialNull } from "./shared/utils-
|
|
3
|
+
import { $t as CodeSplittingOptions, A as RolldownPluginOption, At as NormalizedInputOptions, Bt as WatchOptions, C as ParallelPluginHooks, Ct as ModuleTypeFilter, D as ResolveIdResult, Dt as RolldownFsModule, E as ResolveIdExtraOptions, Et as RolldownFileStats, Ft as RolldownMagicString, Gt as AddonFunction, Ht as RolldownBuild, It as watch, Jt as BuiltinModuleTag, Kt as AdvancedChunksGroup, Lt as RolldownWatcher, M as TransformResult, Mt as ChecksOptions, Nt as LoggingFunction, O as ResolvedId, Ot as InternalModuleFormat, Pt as WarningHandlerWithDefault, Qt as CodeSplittingNameFunction, Rt as RolldownWatcherEvent, S as ObjectHook, St as HookFilter, T as Plugin, Tt as RolldownDirectoryEntry, Ut as BuildOptions, Vt as rolldown, Wt as build, Xt as ChunkingContext, Yt as ChunkFileNamesFunction, Zt as CodeSplittingGroup, _ as HookFilterExtension, _t as DefineParallelPluginResult, a as ChunkOptimizationOptions, an as ModuleFormat, at as ExistingRawSourceMap, b as ModuleOptions, bt as PluginContextMeta, c as InputOption, cn as OutputAsset, ct as TreeshakingOptions, d as OptimizationOptions, dn as RenderedModule, dt as EmittedChunk, en as CommentsOptions, f as WatcherFileWatcherOptions, fn as RolldownOutput, ft as EmittedFile, g as FunctionPluginHooks, gn as SourcemapIgnoreListOption, gt as PluginContextResolveOptions, h as CustomPluginOptions, hn as ModuleInfo, ht as PluginContext, i as RolldownOptions, in as MinifyOptions, it as BundleError, j as SourceDescription, jt as TransformOptions, k as RolldownPlugin, kt as NormalizedOutputOptions, l as InputOptions, ln as OutputChunk, lt as TransformPluginContext, m as AsyncPluginHooks, mt as GetModuleInfo, n as RolldownOptionsFunction, nn as GeneratedCodePreset, nt as RUNTIME_MODULE_ID, o as ExternalOption, on as OutputOptions, ot as SourceMapInput, p as WatcherOptions, pn as SourceMap, pt as EmittedPrebuiltChunk, qt as AdvancedChunksOptions, r as defineConfig, rn as GlobalsFunction, rt as VERSION, s as ExternalOptionFunction, sn as PreRenderedAsset, st as OutputBundle, t as ConfigExport, tn as GeneratedCodeOptions, u as ModuleTypes, un as RenderedChunk, ut as EmittedAsset, v as ImportKind, w as PartialResolvedId, wt as BufferEncoding, x as ModuleType, xt as GeneralHookFilter, y as LoadResult, yt as MinimalPluginContext, zt as RolldownWatcherWatcherEventMap } from "./shared/define-config-VyEuugfx.mjs";
|
|
4
|
+
import { o as PartialNull } from "./shared/utils-CuJMMtAZ.mjs";
|
|
5
5
|
export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, type BuiltinModuleTag, type BundleError, type ChecksOptions, type ChunkFileNamesFunction, type ChunkOptimizationOptions, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PluginContextResolveOptions, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, RolldownMagicString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherFileWatcherOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-
|
|
3
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-DNIwEbWZ.mjs";
|
|
2
|
+
import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-CM59dkv7.mjs";
|
|
3
|
+
import { t as rolldown } from "./shared/rolldown-DWdNBjur.mjs";
|
|
4
4
|
import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
|
|
5
5
|
import { isMainThread } from "node:worker_threads";
|
|
6
6
|
import { initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
1
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-CM59dkv7.mjs";
|
|
2
2
|
import { parentPort, workerData } from "node:worker_threads";
|
|
3
3
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
4
4
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Plugin } from "./shared/define-config-
|
|
2
|
-
import { i as MaybePromise } from "./shared/utils-
|
|
1
|
+
import { T as Plugin } from "./shared/define-config-VyEuugfx.mjs";
|
|
2
|
+
import { i as MaybePromise } from "./shared/utils-CuJMMtAZ.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
1
|
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-aMKUxRpj.mjs";
|
|
2
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
+
import { n as parseSync, t as parse } from "./shared/parse-DzXgx0D0.mjs";
|
|
3
3
|
//#region src/parse-ast-index.ts
|
|
4
4
|
function wrap(result, filename, sourceText) {
|
|
5
5
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./normalize-string-or-regex-A9UIvc9j.js";
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./constructors-
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./constructors-CnlRXsZI.js";
|
|
3
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
4
4
|
/**
|
|
5
5
|
* Replaces targeted strings in files while bundling.
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as BindingReplacePluginConfig } from "./shared/binding-
|
|
2
|
-
import { t as BuiltinPlugin } from "./shared/utils-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { m as BindingReplacePluginConfig } from "./shared/binding-dOJO0Ipo.mjs";
|
|
2
|
+
import { t as BuiltinPlugin } from "./shared/utils-CuJMMtAZ.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-DXDHUcCD.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
1
|
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-CHVaSqeF.mjs";
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-CAjrhG6p.mjs";
|
|
3
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
4
4
|
/**
|
|
5
5
|
* Replaces targeted strings in files while bundling.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-
|
|
1
|
+
import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-DOcnYe1L.js";
|
|
2
2
|
import { TsconfigCache, collapseSourcemaps, enhancedTransform, enhancedTransformSync, minify, minifySync, resolveTsconfig } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
/**
|
|
@@ -122,6 +122,7 @@ export const TsconfigCache = __napiModule.exports.TsconfigCache
|
|
|
122
122
|
export const BindingAttachDebugInfo = __napiModule.exports.BindingAttachDebugInfo
|
|
123
123
|
export const BindingBuiltinPluginName = __napiModule.exports.BindingBuiltinPluginName
|
|
124
124
|
export const BindingChunkModuleOrderBy = __napiModule.exports.BindingChunkModuleOrderBy
|
|
125
|
+
export const BindingErrorStage = __napiModule.exports.BindingErrorStage
|
|
125
126
|
export const BindingLogLevel = __napiModule.exports.BindingLogLevel
|
|
126
127
|
export const BindingPluginOrder = __napiModule.exports.BindingPluginOrder
|
|
127
128
|
export const BindingPropertyReadSideEffects = __napiModule.exports.BindingPropertyReadSideEffects
|
|
@@ -161,6 +161,7 @@ module.exports.TsconfigCache = __napiModule.exports.TsconfigCache
|
|
|
161
161
|
module.exports.BindingAttachDebugInfo = __napiModule.exports.BindingAttachDebugInfo
|
|
162
162
|
module.exports.BindingBuiltinPluginName = __napiModule.exports.BindingBuiltinPluginName
|
|
163
163
|
module.exports.BindingChunkModuleOrderBy = __napiModule.exports.BindingChunkModuleOrderBy
|
|
164
|
+
module.exports.BindingErrorStage = __napiModule.exports.BindingErrorStage
|
|
164
165
|
module.exports.BindingLogLevel = __napiModule.exports.BindingLogLevel
|
|
165
166
|
module.exports.BindingPluginOrder = __napiModule.exports.BindingPluginOrder
|
|
166
167
|
module.exports.BindingPropertyReadSideEffects = __napiModule.exports.BindingPropertyReadSideEffects
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as logCycleLoading, f as logNoFileSystemInBrowser, g as getCodeFrame, h as locate, i as bindingifyManifestPlugin, l as logInputHookInOutputPlugin, m as logPluginError, n as BuiltinPlugin, o as augmentCodeLocation, p as logParseError, r as bindingifyBuiltInPlugin, s as error, t as normalizedStringOrRegex, u as logInvalidLogPosition } from "./normalize-string-or-regex-A9UIvc9j.js";
|
|
2
|
-
import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
2
|
+
import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-DOcnYe1L.js";
|
|
3
3
|
import { BindingAttachDebugInfo, BindingBundler, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
5
5
|
let _lazyMatch = () => {
|
|
@@ -454,7 +454,7 @@ const win32 = /* @__PURE__ */ mix(";");
|
|
|
454
454
|
*
|
|
455
455
|
* @category Plugin APIs
|
|
456
456
|
*/
|
|
457
|
-
const VERSION = "1.1.
|
|
457
|
+
const VERSION = "1.1.2";
|
|
458
458
|
//#endregion
|
|
459
459
|
//#region src/constants/index.ts
|
|
460
460
|
/**
|
|
@@ -2441,7 +2441,7 @@ function bindingAssetSource(source) {
|
|
|
2441
2441
|
return { inner: source };
|
|
2442
2442
|
}
|
|
2443
2443
|
//#endregion
|
|
2444
|
-
//#region \0@oxc-project+runtime@0.
|
|
2444
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/decorate.js
|
|
2445
2445
|
function __decorate(decorators, target, key, desc) {
|
|
2446
2446
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2447
2447
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2962,7 +2962,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
2962
2962
|
return map;
|
|
2963
2963
|
}
|
|
2964
2964
|
//#endregion
|
|
2965
|
-
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.
|
|
2965
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.1/node_modules/@rolldown/pluginutils/dist/filter-B_mD-HGz.mjs
|
|
2966
2966
|
var And = class {
|
|
2967
2967
|
kind;
|
|
2968
2968
|
args;
|
|
@@ -3045,7 +3045,7 @@ function exclude(expr) {
|
|
|
3045
3045
|
return new Exclude(expr);
|
|
3046
3046
|
}
|
|
3047
3047
|
//#endregion
|
|
3048
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
3048
|
+
//#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/lazyDataLastImpl--3B10z3s.js
|
|
3049
3049
|
function e(e, t, n) {
|
|
3050
3050
|
let r = (n) => e(n, ...t);
|
|
3051
3051
|
return n === void 0 ? r : Object.assign(r, {
|
|
@@ -3054,7 +3054,7 @@ function e(e, t, n) {
|
|
|
3054
3054
|
});
|
|
3055
3055
|
}
|
|
3056
3056
|
//#endregion
|
|
3057
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
3057
|
+
//#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/purry.js
|
|
3058
3058
|
function t$1(t, n, r) {
|
|
3059
3059
|
let i = t.length - n.length;
|
|
3060
3060
|
if (i === 0) return t(...n);
|
|
@@ -3062,7 +3062,7 @@ function t$1(t, n, r) {
|
|
|
3062
3062
|
throw Error(`Wrong number of arguments`);
|
|
3063
3063
|
}
|
|
3064
3064
|
//#endregion
|
|
3065
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
3065
|
+
//#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/partition.js
|
|
3066
3066
|
function t(...t) {
|
|
3067
3067
|
return t$1(n, t);
|
|
3068
3068
|
}
|
|
@@ -5201,6 +5201,10 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
|
|
|
5201
5201
|
else if (manualChunks != null) effectiveChunksOption = { groups: [{ name(moduleId, ctx) {
|
|
5202
5202
|
return manualChunks(moduleId, { getModuleInfo: (id) => ctx.getModuleInfo(id) });
|
|
5203
5203
|
} }] };
|
|
5204
|
+
if (inlineDynamicImports === true && effectiveChunksOption != null) {
|
|
5205
|
+
logger.warn("`advancedChunks` option is ignored because `inlineDynamicImports: true` disables code splitting.");
|
|
5206
|
+
effectiveChunksOption = void 0;
|
|
5207
|
+
}
|
|
5204
5208
|
let advancedChunksResult;
|
|
5205
5209
|
if (effectiveChunksOption != null) {
|
|
5206
5210
|
const { groups, ...restOptions } = effectiveChunksOption;
|