@voidzero-dev/vite-plus-core 0.2.8 → 0.3.0
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/LICENSE +30 -1
- package/dist/rolldown/cli.mjs +14 -10
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +5 -5
- package/dist/rolldown/experimental-index.mjs +11 -9
- 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-CVtkJvyl.d.mts → binding-Bvw14S3g.d.mts} +70 -1
- package/dist/rolldown/shared/binding-C__LJDBG.mjs +675 -0
- package/dist/rolldown/shared/{bindingify-input-options-B03y7DfJ.mjs → bindingify-input-options-V9YvAjrr.mjs} +6 -10
- package/dist/rolldown/shared/{constructors-ALilxAii.d.mts → constructors-CRumnw21.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-COwFYQna.mjs → constructors-DklcHr18.mjs} +1 -1
- package/dist/rolldown/shared/{create-bundler-option-B-tSTZRt.mjs → create-bundler-option-DbV2ud0B.mjs} +5 -4
- package/dist/rolldown/shared/{define-config-DSMNXceb.d.mts → define-config-DwTNhgWB.d.mts} +12 -10
- package/dist/rolldown/shared/{error-nLggAzpQ.mjs → error-NcRuXAVN.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-O4G7NVNA.mjs → load-config-Dd7jKGUy.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-Cj-DgIV1.mjs → normalize-string-or-regex-CFtim40S.mjs} +1 -1
- package/dist/rolldown/shared/{parse-CQfUbVuN.mjs → parse-rvxTD36n.mjs} +2 -2
- package/dist/rolldown/shared/{resolve-tsconfig-CE3HNSOK.mjs → resolve-tsconfig-D2vSIIkR.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-qV_fUwyM.mjs → rolldown-Bblizyw1.mjs} +4 -4
- package/dist/rolldown/shared/{transform-WmU_cI8e.d.mts → transform--WSMLt1x.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-BNIsji74.mjs → watch-DPvOlccK.mjs} +5 -5
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +15 -13
- package/dist/tsdown/{build-D_enfyvD-X5SFXZZc.js → build-D_enfyvD-tOzhITac.js} +1076 -20
- package/dist/tsdown/{debug-CKcBYQLP-avlAPNcV.js → debug-CKcBYQLP-By_AQqN8.js} +3 -3
- package/dist/tsdown/{detect-DGhJGEqb-CGd2brAW.js → detect-DGhJGEqb-LL52mV6u.js} +1 -1
- package/dist/tsdown/{dist-BZO8q3c0.js → dist-BsS7BOcb.js} +5 -5
- package/dist/tsdown/index-types.d.ts +4 -4
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/internal-DSmmwu4u.js +3 -0
- package/dist/tsdown/{main-Jz_9T-KA.js → main-Bcv7jU2b.js} +210 -196
- package/dist/tsdown/npm_entry_picomatch.cjs +10 -6
- package/dist/tsdown/npm_entry_tree-kill.cjs +4 -2
- package/dist/tsdown/{resolver-cwLsPb2o-BqQjnCbF.js → resolver-cwLsPb2o-Bb9SDBm6.js} +2 -2
- package/dist/tsdown/run.js +6 -6
- package/dist/tsdown/{src-D5keKqGd.js → src-JVSpR8xt.js} +5 -5
- package/dist/tsdown/{target-Bab3CUeB-CERZYTwS.js → target-Bab3CUeB-8PBzMh3p.js} +5 -5
- package/dist/tsdown/{tsc-DmzrnJwy.js → tsc-B8FD48Oc.js} +3 -3
- package/dist/tsdown/tsdown-css.js +5 -5
- package/dist/tsdown/tsdown-exe.js +4 -4
- package/dist/vite/client/bundledDevClient.mjs +393 -27
- package/dist/vite/client/client.mjs +20 -14
- package/dist/vite/node/chunks/build.js +70 -64
- package/dist/vite/node/chunks/dist.js +36 -29
- package/dist/vite/node/chunks/dist2.js +193 -149
- package/dist/vite/node/chunks/node.js +1047 -875
- package/dist/vite/node/chunks/postcss-import.js +23 -25
- package/dist/vite/node/index.d.ts +63 -58
- package/dist/vite/node/module-runner.d.ts +13 -13
- package/dist/vite/node/module-runner.js +24 -19
- package/package.json +32 -26
- package/dist/rolldown/shared/binding-DwUQWZOo.mjs +0 -662
- package/dist/tsdown/dist-CMKwGGNp.js +0 -1059
- package/dist/tsdown/internal-DyaNxVWW.js +0 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-C__LJDBG.mjs";
|
|
2
2
|
import { i as logFailedValidation, l as logPluginError, n as error, o as logInvalidLogPosition, r as logCycleLoading, t as augmentCodeLocation } from "./logs-DmYCAKcW.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-CFtim40S.mjs";
|
|
4
4
|
import { i as noop, n as isPathFragment, o as unreachable, s as unsupported, t as arraify } from "./misc-DOSKtd97.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-NcRuXAVN.mjs";
|
|
6
6
|
import { parseAst } from "../parse-ast-index.mjs";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
@@ -10,7 +10,7 @@ import * as filter from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
|
|
|
10
10
|
import fsp from "node:fs/promises";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
12
12
|
//#region package.json
|
|
13
|
-
var version = "1.2.
|
|
13
|
+
var version = "1.2.5";
|
|
14
14
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/constants/version.ts
|
|
@@ -236,7 +236,7 @@ function bindingAssetSource(source) {
|
|
|
236
236
|
return { inner: source };
|
|
237
237
|
}
|
|
238
238
|
//#endregion
|
|
239
|
-
//#region \0@oxc-project+runtime@0.
|
|
239
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/decorate.js
|
|
240
240
|
function __decorate(decorators, target, key, desc) {
|
|
241
241
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
242
242
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2342,11 +2342,7 @@ function bindingifyInput(input) {
|
|
|
2342
2342
|
}
|
|
2343
2343
|
function bindingifyWatch(watch) {
|
|
2344
2344
|
if (watch) {
|
|
2345
|
-
|
|
2346
|
-
const watcher = {
|
|
2347
|
-
...watch.notify,
|
|
2348
|
-
...watch.watcher
|
|
2349
|
-
};
|
|
2345
|
+
const watcher = watch.watcher ?? {};
|
|
2350
2346
|
return {
|
|
2351
2347
|
buildDelay: watch.buildDelay,
|
|
2352
2348
|
skipWrite: watch.skipWrite,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { Gt as StringOrRegExp, I as BuiltinPlugin } from "./define-config-
|
|
1
|
+
import { C as BindingViteImportGlobPluginConfig, D as BindingViteReactRefreshWrapperPluginConfig, E as BindingViteModulePreloadPolyfillPluginConfig, O as BindingViteReporterPluginConfig, S as BindingViteDynamicImportVarsPluginConfig, k as BindingViteResolvePluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteJsonPluginConfig, x as BindingViteBuildImportAnalysisPluginConfig } from "./binding-Bvw14S3g.mjs";
|
|
2
|
+
import { Gt as StringOrRegExp, I as BuiltinPlugin } from "./define-config-DwTNhgWB.mjs";
|
|
3
3
|
//#region src/builtin-plugin/constructors.d.ts
|
|
4
4
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
5
5
|
type DynamicImportVarsPluginConfig = Omit<BindingViteDynamicImportVarsPluginConfig, "include" | "exclude"> & {
|
|
@@ -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-CFtim40S.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,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-C__LJDBG.mjs";
|
|
2
2
|
import { a as logInputHookInOutputPlugin, n as error } from "./logs-DmYCAKcW.mjs";
|
|
3
|
-
import { n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
4
|
-
import { C as LOG_LEVEL_WARN, T as VERSION, _ as getParallelPluginInfo, a as measureIfFunction, b as LOG_LEVEL_DEBUG, c as PluginContextData, d as transformRenderedChunk, g as MinimalPluginContextImpl, i as measureHookCost, l as transformModuleInfo, o as pluginTimingsRecorderFor, p as transformAssetSource, r as OUTPUT_OPTIONS_OWNER, t as bindingifyInputOptions, v as normalizeHook, w as logLevelPriority, y as normalizeLog } from "./bindingify-input-options-
|
|
3
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-CFtim40S.mjs";
|
|
4
|
+
import { C as LOG_LEVEL_WARN, T as VERSION, _ as getParallelPluginInfo, a as measureIfFunction, b as LOG_LEVEL_DEBUG, c as PluginContextData, d as transformRenderedChunk, g as MinimalPluginContextImpl, i as measureHookCost, l as transformModuleInfo, o as pluginTimingsRecorderFor, p as transformAssetSource, r as OUTPUT_OPTIONS_OWNER, t as bindingifyInputOptions, v as normalizeHook, w as logLevelPriority, y as normalizeLog } from "./bindingify-input-options-V9YvAjrr.mjs";
|
|
5
5
|
import { a as unimplemented } from "./misc-DOSKtd97.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
7
7
|
import path, { sep } from "node:path";
|
|
@@ -1522,7 +1522,8 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1522
1522
|
unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
|
|
1523
1523
|
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")),
|
|
1524
1524
|
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)")),
|
|
1525
|
-
sourcemapBroken: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a plugin transforms code without generating a sourcemap"))
|
|
1525
|
+
sourcemapBroken: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a plugin transforms code without generating a sourcemap")),
|
|
1526
|
+
namespaceConflict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when multiple star re-exports provide the same name from different modules"))
|
|
1526
1527
|
});
|
|
1527
1528
|
const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1528
1529
|
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
@@ -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-xuHO4mAy.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { B as ParserOptions, F as JsxOptions, G as TransformOptions$1, I as MinifyOptions$1, M as ExternalMemoryStatus, V as PreRenderedChunk, _ as BindingTransformHookExtraArgs, c as BindingHookResolveIdExtraArgs, d as BindingMagicString, h as BindingRenderedChunk, j as BindingWatcherBundler, p as BindingPluginContextResolveOptions, t as BindingBuiltinPluginName } from "./binding-Bvw14S3g.mjs";
|
|
3
3
|
import { TopLevelFilterExpression } from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
//#region src/types/misc.d.ts
|
|
@@ -334,7 +334,7 @@ type GlobalsFunction = (name: string) => string;
|
|
|
334
334
|
type CodeSplittingNameFunction = (moduleId: string, ctx: ChunkingContext) => string | NullValue;
|
|
335
335
|
/** @inline @category Code Splitting */
|
|
336
336
|
type CodeSplittingTestFunction = (id: string) => boolean | undefined | void;
|
|
337
|
-
type MinifyOptions = Omit<MinifyOptions$1, "module" | "sourcemap">;
|
|
337
|
+
type MinifyOptions = Omit<MinifyOptions$1, "module" | "sourcemap" | "mangleProps">;
|
|
338
338
|
interface CommentsOptions {
|
|
339
339
|
/**
|
|
340
340
|
* Comments that contain `@license`, `@preserve` or start with `//!` or `/*!`
|
|
@@ -1679,6 +1679,11 @@ interface ChecksOptions {
|
|
|
1679
1679
|
* @default true
|
|
1680
1680
|
* */
|
|
1681
1681
|
sourcemapBroken?: boolean;
|
|
1682
|
+
/**
|
|
1683
|
+
* Whether to emit warnings when multiple star re-exports provide the same name from different modules.
|
|
1684
|
+
* @default true
|
|
1685
|
+
* */
|
|
1686
|
+
namespaceConflict?: boolean;
|
|
1682
1687
|
}
|
|
1683
1688
|
//#endregion
|
|
1684
1689
|
//#region src/options/transform-options.d.ts
|
|
@@ -2608,10 +2613,10 @@ declare const RUNTIME_MODULE_ID = "\0rolldown/runtime.js";
|
|
|
2608
2613
|
//#region src/builtin-plugin/utils.d.ts
|
|
2609
2614
|
declare class BuiltinPlugin {
|
|
2610
2615
|
name: BindingBuiltinPluginName;
|
|
2611
|
-
_options?: unknown;
|
|
2616
|
+
_options?: unknown | undefined;
|
|
2612
2617
|
/** Vite-specific option to control plugin ordering */
|
|
2613
2618
|
enforce?: "pre" | "post";
|
|
2614
|
-
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
2619
|
+
constructor(name: BindingBuiltinPluginName, _options?: unknown | undefined);
|
|
2615
2620
|
}
|
|
2616
2621
|
//#endregion
|
|
2617
2622
|
//#region src/constants/plugin.d.ts
|
|
@@ -3376,10 +3381,6 @@ interface WatcherOptions {
|
|
|
3376
3381
|
* File watcher options for configuring how file changes are detected.
|
|
3377
3382
|
*/
|
|
3378
3383
|
watcher?: WatcherFileWatcherOptions;
|
|
3379
|
-
/**
|
|
3380
|
-
* @deprecated Use {@linkcode watcher} instead.
|
|
3381
|
-
*/
|
|
3382
|
-
notify?: WatcherFileWatcherOptions;
|
|
3383
3384
|
/**
|
|
3384
3385
|
* Filter to limit the file-watching to certain files.
|
|
3385
3386
|
*
|
|
@@ -3983,8 +3984,9 @@ interface InputOptions {
|
|
|
3983
3984
|
* Devtools integration options.
|
|
3984
3985
|
*
|
|
3985
3986
|
* When enabled, Rolldown writes JSON-lines devtools output under
|
|
3986
|
-
* `node_modules/.rolldown/{session_id}
|
|
3987
|
-
* `@rolldown/debug` after
|
|
3987
|
+
* `node_modules/.rolldown/{session_id}/`, resolved against {@linkcode cwd}.
|
|
3988
|
+
* Consumers can parse the output with `@rolldown/debug` after
|
|
3989
|
+
* `await bundle.close()` resolves.
|
|
3988
3990
|
*
|
|
3989
3991
|
* @experimental
|
|
3990
3992
|
*/
|
|
@@ -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-C__LJDBG.mjs";
|
|
2
2
|
import { l as logPluginError, n as error } from "./logs-DmYCAKcW.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-C__LJDBG.mjs";
|
|
2
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.146.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-CE3HNSOK.mjs → resolve-tsconfig-D2vSIIkR.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-C__LJDBG.mjs";
|
|
2
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-NcRuXAVN.mjs";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { f as __decorate, h as PlainObjectLike, m as lazyProp, u as transformToRollupOutput } from "./bindingify-input-options-
|
|
3
|
-
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./create-bundler-option-
|
|
4
|
-
import { i as unwrapBindingResult } from "./error-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-C__LJDBG.mjs";
|
|
2
|
+
import { f as __decorate, h as PlainObjectLike, m as lazyProp, u as transformToRollupOutput } from "./bindingify-input-options-V9YvAjrr.mjs";
|
|
3
|
+
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./create-bundler-option-DbV2ud0B.mjs";
|
|
4
|
+
import { i as unwrapBindingResult } from "./error-NcRuXAVN.mjs";
|
|
5
5
|
//#region src/types/rolldown-output-impl.ts
|
|
6
6
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
7
7
|
var RolldownOutputImpl = class extends PlainObjectLike {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog } from "./logging-xuHO4mAy.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { B as ParserOptions$1, I as MinifyOptions$1, K as TsconfigCache$1, L as MinifyResult$1, W as SourceMap, a as BindingEnhancedTransformOptions, b as BindingTsconfigResult, o as BindingEnhancedTransformResult, z as ParseResult$1 } from "./binding-Bvw14S3g.mjs";
|
|
3
3
|
//#region src/utils/resolve-tsconfig.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Cache for tsconfig resolution to avoid redundant file system operations.
|
|
@@ -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-C__LJDBG.mjs";
|
|
2
2
|
import { s as logMultipleWatcherOption } from "./logs-DmYCAKcW.mjs";
|
|
3
|
-
import { C as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
3
|
+
import { C as LOG_LEVEL_WARN } from "./bindingify-input-options-V9YvAjrr.mjs";
|
|
4
4
|
import { t as arraify } from "./misc-DOSKtd97.mjs";
|
|
5
|
-
import { l as PluginDriver, t as createBundlerOptions } from "./create-bundler-option-
|
|
6
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { l as PluginDriver, t as createBundlerOptions } from "./create-bundler-option-DbV2ud0B.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-NcRuXAVN.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.
|
|
@@ -327,7 +327,7 @@ function warnMultiplePollingOptions(bundlerOptions) {
|
|
|
327
327
|
let found = false;
|
|
328
328
|
for (const option of bundlerOptions) {
|
|
329
329
|
const watch = option.inputOptions.watch;
|
|
330
|
-
const watcher = watch && typeof watch === "object" ? watch.watcher
|
|
330
|
+
const watcher = watch && typeof watch === "object" ? watch.watcher : void 0;
|
|
331
331
|
if (watcher && (watcher.usePolling != null || watcher.pollInterval != null)) {
|
|
332
332
|
if (found) {
|
|
333
333
|
option.onLog(LOG_LEVEL_WARN, logMultipleWatcherOption());
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
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 { v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-Bvw14S3g.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--WSMLt1x.mjs";
|
|
3
3
|
import * as ESTree from "@oxc-project/types";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
5
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.146.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
|
|
6
6
|
interface VisitorObject$1 {
|
|
7
7
|
DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
|
|
8
8
|
"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-rvxTD36n.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-D2vSIIkR.mjs";
|
|
3
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.146.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)) {
|
|
@@ -2008,7 +2008,7 @@ function walkTSUnionType(node, visitors) {
|
|
|
2008
2008
|
exit !== null && exit(node);
|
|
2009
2009
|
}
|
|
2010
2010
|
//#endregion
|
|
2011
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
2011
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.146.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2012
2012
|
/** Mapping from node type name to node type ID */
|
|
2013
2013
|
const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
|
|
2014
2014
|
["DebuggerStatement", 0],
|
|
@@ -2178,7 +2178,7 @@ const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
|
|
|
2178
2178
|
["TSUnionType", 164]
|
|
2179
2179
|
]);
|
|
2180
2180
|
//#endregion
|
|
2181
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
2181
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.146.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2182
2182
|
let compiledVisitor;
|
|
2183
2183
|
function createCompiledVisitor() {
|
|
2184
2184
|
compiledVisitor = [];
|
|
@@ -2241,14 +2241,16 @@ function addVisitorToCompiled(visitor) {
|
|
|
2241
2241
|
const typeId = NODE_TYPE_IDS_MAP.get(name);
|
|
2242
2242
|
if (typeId === void 0) throw new Error(`Unknown node type '${name}' in visitor object`);
|
|
2243
2243
|
const existing = compiledVisitor[typeId];
|
|
2244
|
-
if (typeId < 27)
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2244
|
+
if (typeId < 27) {
|
|
2245
|
+
if (existing === null) compiledVisitor[typeId] = visitFn;
|
|
2246
|
+
else if (Array.isArray(existing)) {
|
|
2247
|
+
if (isExit) existing.push(visitFn);
|
|
2248
|
+
else existing.splice(existing.length - 1, 0, visitFn);
|
|
2249
|
+
} else {
|
|
2250
|
+
compiledVisitor[typeId] = isExit ? createVisitFnArray(existing, visitFn) : createVisitFnArray(visitFn, existing);
|
|
2251
|
+
mergedLeafVisitorTypeIds.push(typeId);
|
|
2252
|
+
}
|
|
2253
|
+
} else if (existing === null) {
|
|
2252
2254
|
const enterExit = compiledVisitor[typeId] = getEnterExitObject();
|
|
2253
2255
|
if (isExit) enterExit.exit = visitFn;
|
|
2254
2256
|
else enterExit.enter = visitFn;
|