rolldown 1.1.1 → 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 +11 -11
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.d.mts +5 -5
- package/dist/experimental-index.mjs +9 -9
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -4
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/shared/{binding-CfwqjDbP.mjs → binding-BxaeY8HI.mjs} +39 -34
- package/dist/shared/{binding-DgGsNpT9.d.mts → binding-CQbRhfY2.d.mts} +65 -116
- package/dist/shared/{bindingify-input-options-B7_WBoOp.mjs → bindingify-input-options-AEyVBGgK.mjs} +8 -8
- package/dist/shared/{constructors-DnT9y_13.mjs → constructors-BcTE5mZO.mjs} +2 -5
- package/dist/shared/{constructors-Bx1tSad6.d.mts → constructors-Cebl5ISm.d.mts} +3 -4
- package/dist/shared/{define-config-ChOOV2QZ.d.mts → define-config-DP-RZqh9.d.mts} +1 -1
- package/dist/shared/{error-C0TrL0_H.mjs → error-T-E9reEy.mjs} +1 -1
- package/dist/shared/{load-config-BDGEgD4M.mjs → load-config-ogsRZE88.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-DGbe3BlX.mjs → normalize-string-or-regex-CUtNDnr8.mjs} +1 -1
- package/dist/shared/{parse-yrGA-p2H.mjs → parse-Dua16Uj5.mjs} +2 -2
- package/dist/shared/{prompt-DYnaB1Nb.mjs → prompt-B1Yc1NPt.mjs} +5 -5
- package/dist/shared/{resolve-tsconfig-D3YLh9ff.mjs → resolve-tsconfig-RM2pJApc.mjs} +2 -2
- package/dist/shared/{rolldown-Bkyb2CgX.mjs → rolldown-DhOK2ys6.mjs} +1 -1
- package/dist/shared/{rolldown-build-abS241_6.mjs → rolldown-build-DDMH4mGm.mjs} +13 -45
- package/dist/shared/{transform-C-XSNVrd.d.mts → transform-n2APpHoz.d.mts} +1 -1
- package/dist/shared/{watch-eT_pxdfY.mjs → watch-9NPdmmab.mjs} +4 -4
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +6 -6
- package/package.json +21 -21
|
@@ -982,94 +982,6 @@ interface PluginsOptions {
|
|
|
982
982
|
styledComponents?: StyledComponentsOptions;
|
|
983
983
|
taggedTemplateEscape?: boolean;
|
|
984
984
|
}
|
|
985
|
-
/** Dynamic gating for {@link ReactCompilerOptions#dynamicGating}. */
|
|
986
|
-
interface ReactCompilerDynamicGating {
|
|
987
|
-
/** Module the gating import comes from. */
|
|
988
|
-
source: string;
|
|
989
|
-
}
|
|
990
|
-
/** Static gating for {@link ReactCompilerOptions#gating}. */
|
|
991
|
-
interface ReactCompilerGating {
|
|
992
|
-
/** Module the gating import comes from. */
|
|
993
|
-
source: string;
|
|
994
|
-
/** Imported specifier used as the gate. */
|
|
995
|
-
importSpecifierName: string;
|
|
996
|
-
}
|
|
997
|
-
/**
|
|
998
|
-
* Options for the experimental [React Compiler](https://github.com/facebook/react/pull/36173).
|
|
999
|
-
*
|
|
1000
|
-
* Mirrors the compiler's `PluginOptions`. The deep `environment` configuration
|
|
1001
|
-
* (inference / validation flags) is not surfaced here.
|
|
1002
|
-
*
|
|
1003
|
-
* @see {@link TransformOptions#reactCompiler}
|
|
1004
|
-
*/
|
|
1005
|
-
interface ReactCompilerOptions {
|
|
1006
|
-
/**
|
|
1007
|
-
* Which functions to compile.
|
|
1008
|
-
*
|
|
1009
|
-
* @default 'infer'
|
|
1010
|
-
*/
|
|
1011
|
-
compilationMode?: 'infer' | 'syntax' | 'annotation' | 'all';
|
|
1012
|
-
/**
|
|
1013
|
-
* What to do when a function cannot be compiled.
|
|
1014
|
-
*
|
|
1015
|
-
* @default 'none'
|
|
1016
|
-
*/
|
|
1017
|
-
panicThreshold?: 'none' | 'critical_errors' | 'all_errors';
|
|
1018
|
-
/**
|
|
1019
|
-
* React runtime version target. `17` and `18` require the
|
|
1020
|
-
* `react-compiler-runtime` package; `19` ships the runtime in `react`.
|
|
1021
|
-
*
|
|
1022
|
-
* @default '19'
|
|
1023
|
-
*/
|
|
1024
|
-
target?: '17' | '18' | '19';
|
|
1025
|
-
/**
|
|
1026
|
-
* Analyze and report diagnostics only; emit no transformed code.
|
|
1027
|
-
*
|
|
1028
|
-
* @default false
|
|
1029
|
-
*/
|
|
1030
|
-
noEmit?: boolean;
|
|
1031
|
-
/**
|
|
1032
|
-
* Compiler output mode.
|
|
1033
|
-
*
|
|
1034
|
-
* @default undefined
|
|
1035
|
-
*/
|
|
1036
|
-
outputMode?: 'client' | 'ssr' | 'lint';
|
|
1037
|
-
/**
|
|
1038
|
-
* Compile even functions marked with the `"use no memo"` / `"use no forget"`
|
|
1039
|
-
* opt-out directives.
|
|
1040
|
-
*
|
|
1041
|
-
* @default false
|
|
1042
|
-
*/
|
|
1043
|
-
ignoreUseNoForget?: boolean;
|
|
1044
|
-
/**
|
|
1045
|
-
* Treat Flow suppression comments as opt-outs.
|
|
1046
|
-
*
|
|
1047
|
-
* @default true
|
|
1048
|
-
*/
|
|
1049
|
-
flowSuppressions?: boolean;
|
|
1050
|
-
/**
|
|
1051
|
-
* Enable `react-native-reanimated` support.
|
|
1052
|
-
*
|
|
1053
|
-
* @default false
|
|
1054
|
-
*/
|
|
1055
|
-
enableReanimated?: boolean;
|
|
1056
|
-
/**
|
|
1057
|
-
* Development mode (extra validation / instrumentation).
|
|
1058
|
-
*
|
|
1059
|
-
* @default false
|
|
1060
|
-
*/
|
|
1061
|
-
isDev?: boolean;
|
|
1062
|
-
/** Source file name, used for the fast-refresh hash and in diagnostics. */
|
|
1063
|
-
filename?: string;
|
|
1064
|
-
/** ESLint rules whose suppressions opt a function out of compilation. */
|
|
1065
|
-
eslintSuppressionRules?: Array<string>;
|
|
1066
|
-
/** Extra directives that opt a function out of compilation. */
|
|
1067
|
-
customOptOutDirectives?: Array<string>;
|
|
1068
|
-
/** Also emit a gated (feature-flagged) version of each compiled function. */
|
|
1069
|
-
gating?: ReactCompilerGating;
|
|
1070
|
-
/** Dynamically-gated compilation. */
|
|
1071
|
-
dynamicGating?: ReactCompilerDynamicGating;
|
|
1072
|
-
}
|
|
1073
985
|
interface ReactRefreshOptions {
|
|
1074
986
|
/**
|
|
1075
987
|
* Specify the identifier of the refresh registration variable.
|
|
@@ -1116,7 +1028,10 @@ interface StyledComponentsOptions {
|
|
|
1116
1028
|
* Transpiles styled-components tagged template literals to a smaller representation
|
|
1117
1029
|
* than what Babel normally creates, helping to reduce bundle size.
|
|
1118
1030
|
*
|
|
1119
|
-
*
|
|
1031
|
+
* Disabled by default because Oxc does not down-level template literals, so this
|
|
1032
|
+
* transform only increases output size.
|
|
1033
|
+
*
|
|
1034
|
+
* @default false
|
|
1120
1035
|
*/
|
|
1121
1036
|
transpileTemplateLiterals?: boolean;
|
|
1122
1037
|
/**
|
|
@@ -1166,6 +1081,13 @@ interface StyledComponentsOptions {
|
|
|
1166
1081
|
/**
|
|
1167
1082
|
* Options for transforming a JavaScript or TypeScript file.
|
|
1168
1083
|
*
|
|
1084
|
+
* Options are listed in evaluation order: the source is parsed (`lang`,
|
|
1085
|
+
* `sourceType`), declarations are emitted (`typescript.declaration`), then
|
|
1086
|
+
* transforms run (`typescript`, `decorator`, `plugins`,
|
|
1087
|
+
* `jsx`, `target`), followed by the `inject` and `define` plugins, and
|
|
1088
|
+
* finally codegen (`sourcemap`). `helpers` configures the runtime helpers
|
|
1089
|
+
* the transforms emit.
|
|
1090
|
+
*
|
|
1169
1091
|
* @see {@link transform}
|
|
1170
1092
|
*/
|
|
1171
1093
|
interface TransformOptions {
|
|
@@ -1178,23 +1100,23 @@ interface TransformOptions {
|
|
|
1178
1100
|
* options.
|
|
1179
1101
|
*/
|
|
1180
1102
|
cwd?: string;
|
|
1181
|
-
/**
|
|
1182
|
-
* Enable source map generation.
|
|
1183
|
-
*
|
|
1184
|
-
* When `true`, the `sourceMap` field of transform result objects will be populated.
|
|
1185
|
-
*
|
|
1186
|
-
* @default false
|
|
1187
|
-
*
|
|
1188
|
-
* @see {@link SourceMap}
|
|
1189
|
-
*/
|
|
1190
|
-
sourcemap?: boolean;
|
|
1191
1103
|
/** Set assumptions in order to produce smaller output. */
|
|
1192
1104
|
assumptions?: CompilerAssumptions;
|
|
1193
1105
|
/**
|
|
1194
1106
|
* Configure how TypeScript is transformed.
|
|
1107
|
+
*
|
|
1108
|
+
* `typescript.declaration` is evaluated before all transforms.
|
|
1109
|
+
*
|
|
1195
1110
|
* @see {@link https://oxc.rs/docs/guide/usage/transformer/typescript}
|
|
1196
1111
|
*/
|
|
1197
1112
|
typescript?: TypeScriptOptions;
|
|
1113
|
+
/** Decorator plugin */
|
|
1114
|
+
decorator?: DecoratorOptions;
|
|
1115
|
+
/**
|
|
1116
|
+
* Third-party plugins to use.
|
|
1117
|
+
* @see {@link https://oxc.rs/docs/guide/usage/transformer/plugins}
|
|
1118
|
+
*/
|
|
1119
|
+
plugins?: PluginsOptions;
|
|
1198
1120
|
/**
|
|
1199
1121
|
* Configure how TSX and JSX are transformed.
|
|
1200
1122
|
* @see {@link https://oxc.rs/docs/guide/usage/transformer/jsx}
|
|
@@ -1217,31 +1139,32 @@ interface TransformOptions {
|
|
|
1217
1139
|
target?: string | Array<string>;
|
|
1218
1140
|
/** Behaviour for runtime helpers. */
|
|
1219
1141
|
helpers?: Helpers;
|
|
1220
|
-
/**
|
|
1221
|
-
* Define Plugin
|
|
1222
|
-
* @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#define}
|
|
1223
|
-
*/
|
|
1224
|
-
define?: Record<string, string>;
|
|
1225
1142
|
/**
|
|
1226
1143
|
* Inject Plugin
|
|
1144
|
+
*
|
|
1145
|
+
* Runs after all transforms.
|
|
1146
|
+
*
|
|
1227
1147
|
* @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#inject}
|
|
1228
1148
|
*/
|
|
1229
1149
|
inject?: Record<string, string | [string, string]>;
|
|
1230
|
-
/** Decorator plugin */
|
|
1231
|
-
decorator?: DecoratorOptions;
|
|
1232
1150
|
/**
|
|
1233
|
-
*
|
|
1151
|
+
* Define Plugin
|
|
1152
|
+
*
|
|
1153
|
+
* Runs after the inject plugin.
|
|
1234
1154
|
*
|
|
1235
|
-
*
|
|
1236
|
-
* given options; `false` or omitted disables it. When enabled, the compiler
|
|
1237
|
-
* runs as the first transform and memoizes React components and hooks.
|
|
1155
|
+
* @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#define}
|
|
1238
1156
|
*/
|
|
1239
|
-
|
|
1157
|
+
define?: Record<string, string>;
|
|
1240
1158
|
/**
|
|
1241
|
-
*
|
|
1242
|
-
*
|
|
1159
|
+
* Enable source map generation.
|
|
1160
|
+
*
|
|
1161
|
+
* When `true`, the `sourceMap` field of transform result objects will be populated.
|
|
1162
|
+
*
|
|
1163
|
+
* @default false
|
|
1164
|
+
*
|
|
1165
|
+
* @see {@link SourceMap}
|
|
1243
1166
|
*/
|
|
1244
|
-
|
|
1167
|
+
sourcemap?: boolean;
|
|
1245
1168
|
}
|
|
1246
1169
|
interface TypeScriptOptions {
|
|
1247
1170
|
jsxPragma?: string;
|
|
@@ -1535,7 +1458,7 @@ declare class TsconfigCache {
|
|
|
1535
1458
|
/** Get the number of cached entries. */
|
|
1536
1459
|
size(): number;
|
|
1537
1460
|
}
|
|
1538
|
-
type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-
|
|
1461
|
+
type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-web-worker-post' | 'builtin:oxc-runtime';
|
|
1539
1462
|
interface BindingBundleAnalyzerPluginConfig {
|
|
1540
1463
|
/** Output filename for the bundle analysis data (default: "analyze-data.json") */
|
|
1541
1464
|
fileName?: string;
|
|
@@ -1543,7 +1466,16 @@ interface BindingBundleAnalyzerPluginConfig {
|
|
|
1543
1466
|
format?: 'json' | 'md';
|
|
1544
1467
|
}
|
|
1545
1468
|
interface BindingBundleState {
|
|
1546
|
-
|
|
1469
|
+
lastBuildErrored: boolean;
|
|
1470
|
+
/**
|
|
1471
|
+
* The stage of the last incremental failure, when `last_build_errored`
|
|
1472
|
+
* is true and the engine is in an incremental-failure state. Absent on
|
|
1473
|
+
* success and for an initial full-build failure (use
|
|
1474
|
+
* `last_build_errored` to detect that). The consumer can force a full
|
|
1475
|
+
* rebuild on the next page load when this is `Hmr`. See
|
|
1476
|
+
* `internal-docs/dev-engine/implementation.md` §12.
|
|
1477
|
+
*/
|
|
1478
|
+
lastErrorStage?: BindingErrorStage;
|
|
1547
1479
|
hasStaleOutput: boolean;
|
|
1548
1480
|
}
|
|
1549
1481
|
interface BindingClientHmrUpdate {
|
|
@@ -1705,6 +1637,16 @@ type BindingError = {
|
|
|
1705
1637
|
type: 'NativeError';
|
|
1706
1638
|
field0: NativeError;
|
|
1707
1639
|
};
|
|
1640
|
+
/**
|
|
1641
|
+
* Which stage of an incremental dev build produced the last error.
|
|
1642
|
+
*
|
|
1643
|
+
* Mirrors `rolldown_dev::ErrorStage`. Surfaced on
|
|
1644
|
+
* [`crate::binding_dev_engine::BindingBundleState`] so the consumer can
|
|
1645
|
+
* treat an `Hmr`-stage failure as recoverable by forcing a full rebuild
|
|
1646
|
+
* on the next page load (HMR generation may itself be buggy). See
|
|
1647
|
+
* `internal-docs/dev-engine/implementation.md` §12.
|
|
1648
|
+
*/
|
|
1649
|
+
type BindingErrorStage = 'Hmr' | 'Rebuild';
|
|
1708
1650
|
interface BindingEsmExternalRequirePluginConfig {
|
|
1709
1651
|
external: Array<BindingStringOrRegex>;
|
|
1710
1652
|
skipDuplicateCheck?: boolean;
|
|
@@ -1852,6 +1794,13 @@ interface BindingTsconfigCompilerOptions {
|
|
|
1852
1794
|
experimentalDecorators?: boolean;
|
|
1853
1795
|
/** Enables decorator metadata emission. */
|
|
1854
1796
|
emitDecoratorMetadata?: boolean;
|
|
1797
|
+
/** Enables all strict type-checking options. Used as the fallback for `strictNullChecks`. */
|
|
1798
|
+
strict?: boolean;
|
|
1799
|
+
/**
|
|
1800
|
+
* Enables strict null checks. Controls whether `null`/`undefined` are elided from
|
|
1801
|
+
* nullable-union `design:type` decorator metadata.
|
|
1802
|
+
*/
|
|
1803
|
+
strictNullChecks?: boolean;
|
|
1855
1804
|
/** Preserves module structure of imports/exports. */
|
|
1856
1805
|
verbatimModuleSyntax?: boolean;
|
|
1857
1806
|
/** Configures how class fields are emitted. */
|
package/dist/shared/{bindingify-input-options-B7_WBoOp.mjs → bindingify-input-options-AEyVBGgK.mjs}
RENAMED
|
@@ -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-BxaeY8HI.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-CUtNDnr8.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-T-E9reEy.mjs";
|
|
6
6
|
import { parseAst } from "../parse-ast-index.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import * as filter from "@rolldown/pluginutils";
|
|
9
9
|
import fsp from "node:fs/promises";
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.1.
|
|
11
|
+
var version = "1.1.2";
|
|
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.137.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);
|
|
@@ -674,7 +674,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
674
674
|
return map;
|
|
675
675
|
}
|
|
676
676
|
//#endregion
|
|
677
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
677
|
+
//#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/lazyDataLastImpl--3B10z3s.js
|
|
678
678
|
function e(e, t, n) {
|
|
679
679
|
let r = (n) => e(n, ...t);
|
|
680
680
|
return n === void 0 ? r : Object.assign(r, {
|
|
@@ -683,7 +683,7 @@ function e(e, t, n) {
|
|
|
683
683
|
});
|
|
684
684
|
}
|
|
685
685
|
//#endregion
|
|
686
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
686
|
+
//#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/purry.js
|
|
687
687
|
function t$1(t, n, r) {
|
|
688
688
|
let i = t.length - n.length;
|
|
689
689
|
if (i === 0) return t(...n);
|
|
@@ -691,7 +691,7 @@ function t$1(t, n, r) {
|
|
|
691
691
|
throw Error(`Wrong number of arguments`);
|
|
692
692
|
}
|
|
693
693
|
//#endregion
|
|
694
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
694
|
+
//#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/partition.js
|
|
695
695
|
function t(...t) {
|
|
696
696
|
return t$1(n, t);
|
|
697
697
|
}
|
|
@@ -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-CUtNDnr8.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);
|
|
@@ -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 };
|
|
@@ -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-CQbRhfY2.mjs";
|
|
2
|
+
import { P as BuiltinPlugin, Ut as StringOrRegExp } from "./define-config-DP-RZqh9.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -10,7 +10,6 @@ type DynamicImportVarsPluginConfig = Omit<BindingViteDynamicImportVarsPluginConf
|
|
|
10
10
|
declare function viteDynamicImportVarsPlugin(config?: DynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
11
11
|
declare function viteImportGlobPlugin(config?: BindingViteImportGlobPluginConfig): BuiltinPlugin;
|
|
12
12
|
declare function viteReporterPlugin(config: BindingViteReporterPluginConfig): BuiltinPlugin;
|
|
13
|
-
declare function viteWasmFallbackPlugin(): BuiltinPlugin;
|
|
14
13
|
declare function viteLoadFallbackPlugin(): BuiltinPlugin;
|
|
15
14
|
declare function viteJsonPlugin(config: BindingViteJsonPluginConfig): BuiltinPlugin;
|
|
16
15
|
declare function viteBuildImportAnalysisPlugin(config: BindingViteBuildImportAnalysisPluginConfig): BuiltinPlugin;
|
|
@@ -34,4 +33,4 @@ type ViteReactRefreshWrapperPluginConfig = Omit<BindingViteReactRefreshWrapperPl
|
|
|
34
33
|
declare function oxcRuntimePlugin(): BuiltinPlugin;
|
|
35
34
|
declare function viteReactRefreshWrapperPlugin(config: ViteReactRefreshWrapperPluginConfig): BuiltinPlugin;
|
|
36
35
|
//#endregion
|
|
37
|
-
export { viteDynamicImportVarsPlugin as a, viteLoadFallbackPlugin as c, viteReporterPlugin as d, viteResolvePlugin as f, viteBuildImportAnalysisPlugin as i, viteModulePreloadPolyfillPlugin as l,
|
|
36
|
+
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 };
|
|
@@ -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-CQbRhfY2.mjs";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
@@ -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-BxaeY8HI.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-BxaeY8HI.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.137.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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import g$1, { stdin, stdout } from "node:process";
|
|
2
2
|
import { WriteStream } from "node:tty";
|
|
3
3
|
import f from "node:readline";
|
|
4
4
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/chunks/prompt.mjs
|
|
@@ -331,7 +331,7 @@ function sD() {
|
|
|
331
331
|
}
|
|
332
332
|
}), r;
|
|
333
333
|
}
|
|
334
|
-
const iD = sD(), v = new Set(["\x1B", ""]), CD = 39, w$1 = "\x07", W$1 = "[", rD = "]", R = "m", y = `${rD}8;;`, V$1 = (t) => `${v.values().next().value}${W$1}${t}${R}`, z = (t) => `${v.values().next().value}${y}${t}${w$1}`, ED = (t) => t.split(" ").map((u) => A$1(u)), _ = (t, u, F) => {
|
|
334
|
+
const iD = sD(), v = /* @__PURE__ */ new Set(["\x1B", ""]), CD = 39, w$1 = "\x07", W$1 = "[", rD = "]", R = "m", y = `${rD}8;;`, V$1 = (t) => `${v.values().next().value}${W$1}${t}${R}`, z = (t) => `${v.values().next().value}${y}${t}${w$1}`, ED = (t) => t.split(" ").map((u) => A$1(u)), _ = (t, u, F) => {
|
|
335
335
|
const e = [...u];
|
|
336
336
|
let s = false, i = false, D = A$1(T$1(t[t.length - 1]));
|
|
337
337
|
for (const [C, o] of e.entries()) {
|
|
@@ -399,7 +399,7 @@ function G(t, u, F) {
|
|
|
399
399
|
`);
|
|
400
400
|
}
|
|
401
401
|
const c = {
|
|
402
|
-
actions: new Set([
|
|
402
|
+
actions: /* @__PURE__ */ new Set([
|
|
403
403
|
"up",
|
|
404
404
|
"down",
|
|
405
405
|
"left",
|
|
@@ -408,7 +408,7 @@ const c = {
|
|
|
408
408
|
"enter",
|
|
409
409
|
"cancel"
|
|
410
410
|
]),
|
|
411
|
-
aliases: new Map([
|
|
411
|
+
aliases: /* @__PURE__ */ new Map([
|
|
412
412
|
["k", "up"],
|
|
413
413
|
["j", "down"],
|
|
414
414
|
["h", "left"],
|
|
@@ -646,7 +646,7 @@ var PD = class extends x {
|
|
|
646
646
|
}
|
|
647
647
|
};
|
|
648
648
|
function ce() {
|
|
649
|
-
return
|
|
649
|
+
return g$1.platform !== "win32" ? g$1.env.TERM !== "linux" : !!g$1.env.CI || !!g$1.env.WT_SESSION || !!g$1.env.TERMINUS_SUBLIME || g$1.env.ConEmuTask === "{cmd::Cmder}" || g$1.env.TERM_PROGRAM === "Terminus-Sublime" || g$1.env.TERM_PROGRAM === "vscode" || g$1.env.TERM === "xterm-256color" || g$1.env.TERM === "alacritty" || g$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
650
650
|
}
|
|
651
651
|
const V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"), W = u("▲", "x"), C = u("✔", "√"), o = u(""), d = u(""), k = u("●", ">"), P = u("○", " "), A = u("◻", "[•]"), T = u("◼", "[+]"), F = u("◻", "[ ]"), w = (t) => {
|
|
652
652
|
switch (t) {
|
|
@@ -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-BxaeY8HI.mjs";
|
|
2
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-T-E9reEy.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-DDMH4mGm.mjs";
|
|
2
2
|
//#region src/api/rolldown/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-BxaeY8HI.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-CUtNDnr8.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-AEyVBGgK.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-T-E9reEy.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";
|
|
10
|
-
import
|
|
10
|
+
import g$1 from "node:process";
|
|
11
11
|
import * as tty from "node:tty";
|
|
12
12
|
import os from "node:os";
|
|
13
13
|
//#region src/log/logger.ts
|
|
@@ -1470,43 +1470,7 @@ 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"))
|
|
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
|
-
})]))
|
|
1473
|
+
})), /* @__PURE__ */ description("Third-party plugins to use"))
|
|
1510
1474
|
});
|
|
1511
1475
|
const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1512
1476
|
usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
|
|
@@ -2816,9 +2780,9 @@ function stringWidth$1(string, options = {}) {
|
|
|
2816
2780
|
return width;
|
|
2817
2781
|
}
|
|
2818
2782
|
function isUnicodeSupported() {
|
|
2819
|
-
const { env } =
|
|
2783
|
+
const { env } = g$1;
|
|
2820
2784
|
const { TERM, TERM_PROGRAM } = env;
|
|
2821
|
-
if (
|
|
2785
|
+
if (g$1.platform !== "win32") return TERM !== "linux";
|
|
2822
2786
|
return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
2823
2787
|
}
|
|
2824
2788
|
const TYPE_COLOR_MAP = {
|
|
@@ -2905,7 +2869,7 @@ function createConsola(options = {}) {
|
|
|
2905
2869
|
defaults: { level },
|
|
2906
2870
|
stdout: process.stdout,
|
|
2907
2871
|
stderr: process.stderr,
|
|
2908
|
-
prompt: (...args) => import("./prompt-
|
|
2872
|
+
prompt: (...args) => import("./prompt-B1Yc1NPt.mjs").then((m) => m.prompt(...args)),
|
|
2909
2873
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
2910
2874
|
...options
|
|
2911
2875
|
});
|
|
@@ -3075,6 +3039,10 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
|
|
|
3075
3039
|
else if (manualChunks != null) effectiveChunksOption = { groups: [{ name(moduleId, ctx) {
|
|
3076
3040
|
return manualChunks(moduleId, { getModuleInfo: (id) => ctx.getModuleInfo(id) });
|
|
3077
3041
|
} }] };
|
|
3042
|
+
if (inlineDynamicImports === true && effectiveChunksOption != null) {
|
|
3043
|
+
logger.warn("`advancedChunks` option is ignored because `inlineDynamicImports: true` disables code splitting.");
|
|
3044
|
+
effectiveChunksOption = void 0;
|
|
3045
|
+
}
|
|
3078
3046
|
let advancedChunksResult;
|
|
3079
3047
|
if (effectiveChunksOption != null) {
|
|
3080
3048
|
const { groups, ...restOptions } = effectiveChunksOption;
|
|
@@ -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-CQbRhfY2.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-BxaeY8HI.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-AEyVBGgK.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-DDMH4mGm.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-T-E9reEy.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.
|
package/dist/utils-index.d.mts
CHANGED
|
@@ -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-CQbRhfY2.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-n2APpHoz.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.137.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;
|
package/dist/utils-index.mjs
CHANGED
|
@@ -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-Dua16Uj5.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-RM2pJApc.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.137.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,9 +2010,9 @@ 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.137.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2014
2014
|
/** Mapping from node type name to node type ID */
|
|
2015
|
-
const NODE_TYPE_IDS_MAP = new Map([
|
|
2015
|
+
const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
|
|
2016
2016
|
["DebuggerStatement", 0],
|
|
2017
2017
|
["EmptyStatement", 1],
|
|
2018
2018
|
["Literal", 2],
|
|
@@ -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.137.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|