@voidzero-dev/vite-plus-core 0.1.24 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rolldown/cli.mjs +6 -6
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +4 -4
- package/dist/rolldown/experimental-index.mjs +10 -10
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +2 -2
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +1 -1
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-CXquf8ay.mjs → binding-CfwqjDbP.mjs} +31 -30
- package/dist/rolldown/shared/{binding-BaCZTfMx.d.mts → binding-DgGsNpT9.d.mts} +97 -1
- package/dist/rolldown/shared/{bindingify-input-options-D2ORek5s.mjs → bindingify-input-options--chmbDhw.mjs} +16 -8
- package/dist/rolldown/shared/{constructors-CbNaT434.d.mts → constructors-Bx1tSad6.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-BiPdtLBB.mjs → constructors-DnT9y_13.mjs} +1 -1
- package/dist/rolldown/shared/{define-config-3BX_X2Am.d.mts → define-config-ChOOV2QZ.d.mts} +29 -11
- package/dist/rolldown/shared/{error-BuvQYXuZ.mjs → error-C0TrL0_H.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-uvbpmLwO.mjs → load-config-BXgGQtnA.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-CNPF6PU9.mjs → normalize-string-or-regex-DGbe3BlX.mjs} +1 -1
- package/dist/rolldown/shared/{parse-1VOPJ1Lj.mjs → parse-26ORR8fZ.mjs} +2 -2
- package/dist/rolldown/shared/{resolve-tsconfig-CcfxWrib.mjs → resolve-tsconfig-D3YLh9ff.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-BZYLlfsv.mjs → rolldown-DpXXI00f.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-CgMNHFY3.mjs → rolldown-build-D8R4Zzfy.mjs} +48 -6
- package/dist/rolldown/shared/{transform-7xCUVrpL.d.mts → transform-C-XSNVrd.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-BX_aH1Oh.mjs → watch-D5Zm0Vsz.mjs} +4 -4
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +5 -5
- package/dist/tsdown/{build-BZshaq8i-C7uS6x65.js → build-B_nvJe4A-BkmlHYK-.js} +62 -60
- package/dist/tsdown/{detect-B97OSl92-CgjrIbmD.js → detect-B97OSl92-B5bcx_Ya.js} +1 -1
- package/dist/tsdown/{dist-BHLOKn-2.js → dist-4h5bgYzo.js} +79 -61
- package/dist/tsdown/index-types.d.ts +7 -7
- package/dist/tsdown/index.js +3 -3
- package/dist/tsdown/{main-nVIFtu2j.js → main-BMtwTklr.js} +122 -87
- package/dist/tsdown/npm_cjs_chunk_range.cjs +30 -26
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +22 -15
- package/dist/tsdown/npm_entry_picomatch.cjs +7 -7
- package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +5 -5
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +3 -3
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +3 -3
- package/dist/tsdown/npm_entry_tree-kill.cjs +1 -1
- package/dist/tsdown/{resolver-DtsKFXi2-QB-x8j3e.js → resolver-DtsKFXi2-DQOmVgSY.js} +1 -1
- package/dist/tsdown/run.js +4 -4
- package/dist/tsdown/{tsc-WMktM0FW.js → tsc-15OYetCl.js} +3 -3
- package/dist/tsdown/{tsc-context-DKufFI_s.js → tsc-context-DfwSQt2q.js} +2 -2
- package/dist/vite/client/client.mjs +4 -4
- package/dist/vite/node/chunks/dist2.js +3 -3
- package/dist/vite/node/index.d.ts +2 -2
- package/package.json +16 -16
- /package/dist/tsdown/{npm_cjs_chunk_chunk.cjs → npm_cjs_chunk_rolldown-runtime.cjs} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CfwqjDbP.mjs";
|
|
2
2
|
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-aMKUxRpj.mjs";
|
|
3
|
-
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
3
|
+
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-DGbe3BlX.mjs";
|
|
4
4
|
import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-CoQm4NHO.mjs";
|
|
5
|
-
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-C0TrL0_H.mjs";
|
|
6
6
|
import { parseAst } from "../parse-ast-index.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import * as filter from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
|
|
9
9
|
import fsp from "node:fs/promises";
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "0.1
|
|
11
|
+
var version = "0.2.1";
|
|
12
12
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/constants/version.ts
|
|
@@ -219,7 +219,7 @@ function bindingAssetSource(source) {
|
|
|
219
219
|
return { inner: source };
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
|
-
//#region \0@oxc-project+runtime@0.
|
|
222
|
+
//#region \0@oxc-project+runtime@0.135.0/helpers/esm/decorate.js
|
|
223
223
|
function __decorate(decorators, target, key, desc) {
|
|
224
224
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
225
225
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1192,16 +1192,18 @@ function bindingifyTransform(args) {
|
|
|
1192
1192
|
});
|
|
1193
1193
|
let normalizedCode = void 0;
|
|
1194
1194
|
let map = ret.map;
|
|
1195
|
+
let mapHandledByNativeChannel = false;
|
|
1195
1196
|
if (typeof ret.code === "string") normalizedCode = ret.code;
|
|
1196
1197
|
else if (ret.code instanceof RolldownMagicString) {
|
|
1197
1198
|
let magicString = ret.code;
|
|
1198
1199
|
normalizedCode = magicString.toString();
|
|
1199
1200
|
let fallbackSourcemap = ctx.sendMagicString(magicString);
|
|
1200
1201
|
if (fallbackSourcemap != void 0) map = fallbackSourcemap;
|
|
1202
|
+
else mapHandledByNativeChannel = true;
|
|
1201
1203
|
}
|
|
1202
1204
|
return {
|
|
1203
1205
|
code: normalizedCode,
|
|
1204
|
-
map: bindingifySourcemap(normalizeTransformHookSourcemap(id, code, map)) ?? (ret.map === null ? null : void 0),
|
|
1206
|
+
map: bindingifySourcemap(normalizeTransformHookSourcemap(id, code, map)) ?? (mapHandledByNativeChannel || ret.map === null ? null : void 0),
|
|
1205
1207
|
moduleSideEffects: moduleOption.moduleSideEffects ?? void 0,
|
|
1206
1208
|
moduleType: ret.moduleType
|
|
1207
1209
|
};
|
|
@@ -1307,7 +1309,10 @@ function bindingifyRenderChunk(args) {
|
|
|
1307
1309
|
if (ret.code instanceof RolldownMagicString) {
|
|
1308
1310
|
const magicString = ret.code;
|
|
1309
1311
|
const normalizedCode = magicString.toString();
|
|
1310
|
-
if (ret.map === null) return {
|
|
1312
|
+
if (ret.map === null) return {
|
|
1313
|
+
code: normalizedCode,
|
|
1314
|
+
map: null
|
|
1315
|
+
};
|
|
1311
1316
|
if (ret.map === void 0) {
|
|
1312
1317
|
const generatedMap = magicString.generateMap();
|
|
1313
1318
|
return {
|
|
@@ -1326,7 +1331,10 @@ function bindingifyRenderChunk(args) {
|
|
|
1326
1331
|
map: bindingifySourcemap(ret.map)
|
|
1327
1332
|
};
|
|
1328
1333
|
}
|
|
1329
|
-
if (
|
|
1334
|
+
if (ret.map === null) return {
|
|
1335
|
+
code: ret.code,
|
|
1336
|
+
map: null
|
|
1337
|
+
};
|
|
1330
1338
|
return {
|
|
1331
1339
|
code: ret.code,
|
|
1332
1340
|
map: bindingifySourcemap(ret.map)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, b as BindingViteDynamicImportVarsPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteBuildImportAnalysisPluginConfig } from "./binding-
|
|
2
|
-
import { P as BuiltinPlugin, Ut as StringOrRegExp } from "./define-config-
|
|
1
|
+
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, b as BindingViteDynamicImportVarsPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteBuildImportAnalysisPluginConfig } from "./binding-DgGsNpT9.mjs";
|
|
2
|
+
import { P as BuiltinPlugin, Ut as StringOrRegExp } from "./define-config-ChOOV2QZ.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-DGbe3BlX.mjs";
|
|
2
2
|
//#region src/builtin-plugin/constructors.ts
|
|
3
3
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
4
4
|
return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-BSNejiLS.mjs";
|
|
2
|
-
import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString, z as PreRenderedChunk } from "./binding-
|
|
2
|
+
import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString, z as PreRenderedChunk } from "./binding-DgGsNpT9.mjs";
|
|
3
3
|
import { TopLevelFilterExpression } from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
@@ -1144,6 +1144,20 @@ type CodeSplittingGroup = {
|
|
|
1144
1144
|
*/
|
|
1145
1145
|
entriesAwareMergeThreshold?: number;
|
|
1146
1146
|
/**
|
|
1147
|
+
* Whether to include captured modules' dependencies.
|
|
1148
|
+
*
|
|
1149
|
+
* Enabling this option reduces the chance of generating circular chunks.
|
|
1150
|
+
*
|
|
1151
|
+
* If you want to disable this behavior, it's recommended to both set
|
|
1152
|
+
* - {@linkcode InputOptions.preserveEntrySignatures | preserveEntrySignatures}: `false | 'allow-extension'`
|
|
1153
|
+
* - {@linkcode OutputOptions.strictExecutionOrder | strictExecutionOrder}: `true`
|
|
1154
|
+
*
|
|
1155
|
+
* to avoid generating invalid chunks.
|
|
1156
|
+
*
|
|
1157
|
+
* @default true
|
|
1158
|
+
*/
|
|
1159
|
+
includeDependenciesRecursively?: boolean;
|
|
1160
|
+
/**
|
|
1147
1161
|
* Filter modules by tags. Only modules that have **all** specified tags
|
|
1148
1162
|
* are captured by this group. Combines with `test` and other filters —
|
|
1149
1163
|
* a module must match all criteria.
|
|
@@ -1170,15 +1184,7 @@ type AdvancedChunksGroup = CodeSplittingGroup;
|
|
|
1170
1184
|
*/
|
|
1171
1185
|
type CodeSplittingOptions = {
|
|
1172
1186
|
/**
|
|
1173
|
-
*
|
|
1174
|
-
*
|
|
1175
|
-
* If you want to disable this behavior, it's recommended to both set
|
|
1176
|
-
* - {@linkcode InputOptions.preserveEntrySignatures | preserveEntrySignatures}: `false | 'allow-extension'`
|
|
1177
|
-
* - {@linkcode OutputOptions.strictExecutionOrder | strictExecutionOrder}: `true`
|
|
1178
|
-
*
|
|
1179
|
-
* to avoid generating invalid chunks.
|
|
1180
|
-
*
|
|
1181
|
-
* @default true
|
|
1187
|
+
* Global fallback of {@linkcode CodeSplittingGroup.includeDependenciesRecursively | group.includeDependenciesRecursively}, if it's not specified in the group.
|
|
1182
1188
|
*/
|
|
1183
1189
|
includeDependenciesRecursively?: boolean;
|
|
1184
1190
|
/**
|
|
@@ -1285,6 +1291,10 @@ declare class RolldownBuild {
|
|
|
1285
1291
|
/**
|
|
1286
1292
|
* Close the bundle and free resources.
|
|
1287
1293
|
*
|
|
1294
|
+
* This method should be called even if the {@linkcode generate} method
|
|
1295
|
+
* or the {@linkcode write} method threw an error. It should be called
|
|
1296
|
+
* even if neither of the methods are called.
|
|
1297
|
+
*
|
|
1288
1298
|
* This method is called automatically when using `using` syntax.
|
|
1289
1299
|
*
|
|
1290
1300
|
* @example
|
|
@@ -1636,6 +1646,11 @@ interface ChecksOptions {
|
|
|
1636
1646
|
* @default true
|
|
1637
1647
|
* */
|
|
1638
1648
|
largeBarrelModules?: boolean;
|
|
1649
|
+
/**
|
|
1650
|
+
* Whether to emit warnings when a plugin transforms code without generating a sourcemap.
|
|
1651
|
+
* @default true
|
|
1652
|
+
* */
|
|
1653
|
+
sourcemapBroken?: boolean;
|
|
1639
1654
|
}
|
|
1640
1655
|
//#endregion
|
|
1641
1656
|
//#region src/options/transform-options.d.ts
|
|
@@ -3750,8 +3765,11 @@ interface InputOptions {
|
|
|
3750
3765
|
* Lazy barrel optimization avoids compiling unused re-export modules in side-effect-free barrel modules,
|
|
3751
3766
|
* significantly improving build performance for large codebases with many barrel modules.
|
|
3752
3767
|
*
|
|
3768
|
+
* This option is planned to be removed in the future. If you need to opt out, please open an issue
|
|
3769
|
+
* describing your use case so we can address it before the option is gone.
|
|
3770
|
+
*
|
|
3753
3771
|
* @see {@link https://rolldown.rs/in-depth/lazy-barrel-optimization | Lazy Barrel Documentation}
|
|
3754
|
-
* @default
|
|
3772
|
+
* @default true
|
|
3755
3773
|
*/
|
|
3756
3774
|
lazyBarrel?: boolean;
|
|
3757
3775
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CfwqjDbP.mjs";
|
|
2
2
|
import { c as logPluginError, n as error } from "./logs-aMKUxRpj.mjs";
|
|
3
3
|
//#region src/builtin-plugin/utils.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CfwqjDbP.mjs";
|
|
2
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.136.0/node_modules/oxc-parser/src-js/wrap.js
|
|
3
3
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
4
4
|
function wrap(result) {
|
|
5
5
|
let program, module, comments, errors;
|
package/dist/rolldown/shared/{resolve-tsconfig-CcfxWrib.mjs → resolve-tsconfig-D3YLh9ff.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CfwqjDbP.mjs";
|
|
2
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-C0TrL0_H.mjs";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-
|
|
1
|
+
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-D8R4Zzfy.mjs";
|
|
2
2
|
//#region src/api/rolldown/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CfwqjDbP.mjs";
|
|
2
2
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-aMKUxRpj.mjs";
|
|
3
|
-
import { n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
4
|
-
import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options
|
|
3
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-DGbe3BlX.mjs";
|
|
4
|
+
import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options--chmbDhw.mjs";
|
|
5
5
|
import { i as unimplemented } from "./misc-CoQm4NHO.mjs";
|
|
6
|
-
import { i as unwrapBindingResult } from "./error-
|
|
6
|
+
import { i as unwrapBindingResult } from "./error-C0TrL0_H.mjs";
|
|
7
7
|
import { Worker } from "node:worker_threads";
|
|
8
8
|
import path, { sep } from "node:path";
|
|
9
9
|
import { formatWithOptions, styleText } from "node:util";
|
|
@@ -1470,7 +1470,43 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
|
|
|
1470
1470
|
plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1471
1471
|
styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
|
|
1472
1472
|
taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1473
|
-
})), /* @__PURE__ */ description("Third-party plugins to use"))
|
|
1473
|
+
})), /* @__PURE__ */ description("Third-party plugins to use")),
|
|
1474
|
+
reactCompiler: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ object({
|
|
1475
|
+
compilationMode: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1476
|
+
/* @__PURE__ */ literal("infer"),
|
|
1477
|
+
/* @__PURE__ */ literal("syntax"),
|
|
1478
|
+
/* @__PURE__ */ literal("annotation"),
|
|
1479
|
+
/* @__PURE__ */ literal("all")
|
|
1480
|
+
])),
|
|
1481
|
+
panicThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1482
|
+
/* @__PURE__ */ literal("none"),
|
|
1483
|
+
/* @__PURE__ */ literal("critical_errors"),
|
|
1484
|
+
/* @__PURE__ */ literal("all_errors")
|
|
1485
|
+
])),
|
|
1486
|
+
target: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1487
|
+
/* @__PURE__ */ literal("17"),
|
|
1488
|
+
/* @__PURE__ */ literal("18"),
|
|
1489
|
+
/* @__PURE__ */ literal("19")
|
|
1490
|
+
])),
|
|
1491
|
+
noEmit: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1492
|
+
outputMode: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1493
|
+
/* @__PURE__ */ literal("client"),
|
|
1494
|
+
/* @__PURE__ */ literal("ssr"),
|
|
1495
|
+
/* @__PURE__ */ literal("lint")
|
|
1496
|
+
])),
|
|
1497
|
+
ignoreUseNoForget: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1498
|
+
flowSuppressions: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1499
|
+
enableReanimated: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1500
|
+
isDev: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1501
|
+
filename: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1502
|
+
eslintSuppressionRules: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1503
|
+
customOptOutDirectives: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1504
|
+
gating: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1505
|
+
source: /* @__PURE__ */ string(),
|
|
1506
|
+
importSpecifierName: /* @__PURE__ */ string()
|
|
1507
|
+
})),
|
|
1508
|
+
dynamicGating: /* @__PURE__ */ optional(/* @__PURE__ */ object({ source: /* @__PURE__ */ string() }))
|
|
1509
|
+
})]))
|
|
1474
1510
|
});
|
|
1475
1511
|
const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1476
1512
|
usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
|
|
@@ -1513,7 +1549,8 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1513
1549
|
duplicateShebang: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when both the code and postBanner contain shebang")),
|
|
1514
1550
|
unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
|
|
1515
1551
|
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting")),
|
|
1516
|
-
largeBarrelModules: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000)"))
|
|
1552
|
+
largeBarrelModules: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000)")),
|
|
1553
|
+
sourcemapBroken: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a plugin transforms code without generating a sourcemap"))
|
|
1517
1554
|
});
|
|
1518
1555
|
const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1519
1556
|
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
@@ -1721,6 +1758,7 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
|
|
|
1721
1758
|
maxModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1722
1759
|
entriesAware: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1723
1760
|
entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1761
|
+
includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1724
1762
|
tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
|
|
1725
1763
|
})))
|
|
1726
1764
|
});
|
|
@@ -3201,6 +3239,10 @@ var RolldownBuild = class RolldownBuild {
|
|
|
3201
3239
|
/**
|
|
3202
3240
|
* Close the bundle and free resources.
|
|
3203
3241
|
*
|
|
3242
|
+
* This method should be called even if the {@linkcode generate} method
|
|
3243
|
+
* or the {@linkcode write} method threw an error. It should be called
|
|
3244
|
+
* even if neither of the methods are called.
|
|
3245
|
+
*
|
|
3204
3246
|
* This method is called automatically when using `using` syntax.
|
|
3205
3247
|
*
|
|
3206
3248
|
* @example
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
|
|
2
|
-
import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-
|
|
2
|
+
import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-DgGsNpT9.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/resolve-tsconfig.d.ts
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CfwqjDbP.mjs";
|
|
2
2
|
import { o as logMultipleWatcherOption } from "./logs-aMKUxRpj.mjs";
|
|
3
|
-
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options
|
|
3
|
+
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options--chmbDhw.mjs";
|
|
4
4
|
import { t as arraify } from "./misc-CoQm4NHO.mjs";
|
|
5
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
6
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-D8R4Zzfy.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-C0TrL0_H.mjs";
|
|
7
7
|
//#region ../../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
8
8
|
/**
|
|
9
9
|
* This is not the set of all possible signals.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-
|
|
2
|
-
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-
|
|
1
|
+
import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-DgGsNpT9.mjs";
|
|
2
|
+
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-C-XSNVrd.mjs";
|
|
3
3
|
import * as ESTree from "@oxc-project/types";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
6
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
6
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.136.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
|
|
7
7
|
interface VisitorObject$1 {
|
|
8
8
|
DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
|
|
9
9
|
"DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
-
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-
|
|
3
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { n as parseSync, t as parse } from "./shared/parse-26ORR8fZ.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-D3YLh9ff.mjs";
|
|
3
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.136.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
4
4
|
function walkNode(node, visitors) {
|
|
5
5
|
if (node == null) return;
|
|
6
6
|
if (Array.isArray(node)) {
|
|
@@ -2010,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
|
|
|
2010
2010
|
exit !== null && exit(node);
|
|
2011
2011
|
}
|
|
2012
2012
|
//#endregion
|
|
2013
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
2013
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.136.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2014
2014
|
/** Mapping from node type name to node type ID */
|
|
2015
2015
|
const NODE_TYPE_IDS_MAP = new Map([
|
|
2016
2016
|
["DebuggerStatement", 0],
|
|
@@ -2180,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
|
|
|
2180
2180
|
["TSUnionType", 164]
|
|
2181
2181
|
]);
|
|
2182
2182
|
//#endregion
|
|
2183
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
2183
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.136.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|