@rolldown/browser 1.1.4 → 1.1.5
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 -8
- package/dist/config.d.mts +15 -2
- package/dist/config.mjs +2 -2
- package/dist/{constructors-CnlRXsZI.js → constructors-Byrk1_73.js} +1 -1
- package/dist/{error-uXB8-_dW.js → error-DXre1AuB.js} +1 -1
- package/dist/experimental-index.browser.mjs +5 -5
- package/dist/experimental-index.d.mts +5 -5
- package/dist/experimental-index.mjs +5 -5
- package/dist/filter-index.d.mts +35 -1
- package/dist/index.browser.mjs +9 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +9 -3
- package/dist/{normalize-string-or-regex-A9UIvc9j.js → normalize-string-or-regex-Ccke9UdD.js} +7 -1
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.browser.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/{resolve-tsconfig-CSjtpIN2.js → resolve-tsconfig-LwTDNg0M.js} +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-TKZlH-S1.js → rolldown-build-C-ytNE9x.js} +14 -13
- package/dist/shared/{binding-DyMVbTi5.d.mts → binding-BlEEMlGM.d.mts} +16 -4
- package/dist/shared/{bindingify-input-options-DrP86yzF.mjs → bindingify-input-options-CwvtdwoA.mjs} +9 -11
- package/dist/shared/{constructors-CAjrhG6p.mjs → constructors-BahhbY0t.mjs} +1 -1
- package/dist/shared/{constructors-CDyv7p8V.d.mts → constructors-CxRN1nW0.d.mts} +2 -2
- package/dist/shared/{define-config-CJihcT25.d.mts → define-config-CJTbYTo8.d.mts} +80 -35
- package/dist/shared/dist-DKbukT1H.mjs +154 -0
- package/dist/shared/{load-config-CZP4Hm1w.mjs → load-config-DyE9Nsvv.mjs} +19 -2
- package/dist/shared/{logs-aMKUxRpj.mjs → logs-ZGEh6uhb.mjs} +6 -1
- package/dist/shared/{normalize-string-or-regex-CHVaSqeF.mjs → normalize-string-or-regex-D93Gs8X1.mjs} +1 -1
- package/dist/shared/{parse-BodSuh47.mjs → parse-zUvsghAI.mjs} +1 -1
- package/dist/shared/{prompt-B1Yc1NPt.mjs → prompt--dNycKSZ.mjs} +59 -17
- package/dist/shared/{rolldown-build-DoAvyAYi.mjs → rolldown-build-_M7Yfopw.mjs} +31 -11
- package/dist/shared/{rolldown-Bn41UR3A.mjs → rolldown-q16hbH0c.mjs} +1 -1
- package/dist/shared/{transform-DudVZDD5.d.mts → transform-BJ9ymllw.d.mts} +1 -1
- package/dist/shared/{utils-DLIXIK5m.d.mts → utils-CEyV6qve.d.mts} +1 -1
- package/dist/shared/{watch-DVVUiYsP.mjs → watch-WLd1o3am.mjs} +3 -3
- package/dist/utils-index.browser.mjs +8 -6
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +7 -5
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as logInputHookInOutputPlugin, n as error } from "./logs-
|
|
2
|
-
import { n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
3
|
-
import { a as transformModuleInfo, c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as PluginContextData, 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,
|
|
1
|
+
import { i as logInputHookInOutputPlugin, n as error } from "./logs-ZGEh6uhb.mjs";
|
|
2
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-D93Gs8X1.mjs";
|
|
3
|
+
import { a as transformModuleInfo, b as VERSION, c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as PluginContextData, 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, y as logLevelPriority } from "./bindingify-input-options-CwvtdwoA.mjs";
|
|
4
4
|
import { S as unimplemented } from "./filter-B_mD-HGz-Cbrk-2bt.mjs";
|
|
5
5
|
import { i as unwrapBindingResult } from "./error-B5cMIevi.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
@@ -1544,6 +1544,7 @@ const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1544
1544
|
function: /* @__PURE__ */ boolean(),
|
|
1545
1545
|
class: /* @__PURE__ */ boolean()
|
|
1546
1546
|
})])),
|
|
1547
|
+
reserved: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1547
1548
|
debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1548
1549
|
})])),
|
|
1549
1550
|
codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
@@ -1751,6 +1752,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1751
1752
|
/* @__PURE__ */ literal("hidden")
|
|
1752
1753
|
])), /* @__PURE__ */ description(`Generate sourcemap (\`-s inline\` for inline, or \`-s\` for \`.map\` file)`)),
|
|
1753
1754
|
sourcemapBaseUrl: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Base URL used to prefix sourcemap paths")),
|
|
1755
|
+
sourcemapFileNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(ChunkFileNamesSchema), /* @__PURE__ */ description("Name pattern for emitted sourcemaps")),
|
|
1754
1756
|
sourcemapDebugIds: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Inject sourcemap debug IDs")),
|
|
1755
1757
|
sourcemapExcludeSources: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Exclude source content from sourcemaps")),
|
|
1756
1758
|
sourcemapIgnoreList: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
@@ -1824,7 +1826,7 @@ const OutputCliOverrideSchema = /* @__PURE__ */ strictObject({
|
|
|
1824
1826
|
codeSplitting: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1825
1827
|
minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
|
|
1826
1828
|
minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
|
|
1827
|
-
})])), /* @__PURE__ */ description("Code splitting options
|
|
1829
|
+
})])), /* @__PURE__ */ description("Code splitting options. Enabled by default; use `--no-codeSplitting` to disable, or `--codeSplitting.minSize` / `--codeSplitting.minShareCount` to configure")),
|
|
1828
1830
|
advancedChunks: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
|
|
1829
1831
|
minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
|
|
1830
1832
|
minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
|
|
@@ -1846,6 +1848,7 @@ const CliOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1846
1848
|
environment: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("Pass additional settings to the config file via process.ENV.")),
|
|
1847
1849
|
version: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Show version number")),
|
|
1848
1850
|
watch: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Watch files in bundle and rebuild on changes")),
|
|
1851
|
+
configLoader: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("bundle"), /* @__PURE__ */ literal("native")])), /* @__PURE__ */ description("How to load the config file (bundle, native)")),
|
|
1849
1852
|
...InputCliOptionsSchema.entries,
|
|
1850
1853
|
...OutputCliOptionsSchema.entries
|
|
1851
1854
|
});
|
|
@@ -2565,7 +2568,9 @@ function box(text, _opts = {}) {
|
|
|
2565
2568
|
}
|
|
2566
2569
|
//#endregion
|
|
2567
2570
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
|
|
2568
|
-
const r = Object.create(null)
|
|
2571
|
+
const r = Object.create(null);
|
|
2572
|
+
const i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis);
|
|
2573
|
+
const o = new Proxy(r, {
|
|
2569
2574
|
get(e, s) {
|
|
2570
2575
|
return i()[s] ?? r[s];
|
|
2571
2576
|
},
|
|
@@ -2585,7 +2590,9 @@ const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta
|
|
|
2585
2590
|
const e = i(true);
|
|
2586
2591
|
return Object.keys(e);
|
|
2587
2592
|
}
|
|
2588
|
-
})
|
|
2593
|
+
});
|
|
2594
|
+
const t = typeof process < "u" && process.env && process.env.NODE_ENV || "";
|
|
2595
|
+
const f = [
|
|
2589
2596
|
["APPVEYOR"],
|
|
2590
2597
|
[
|
|
2591
2598
|
"AWS_AMPLIFY",
|
|
@@ -2697,19 +2704,31 @@ l.name;
|
|
|
2697
2704
|
function n(e) {
|
|
2698
2705
|
return e ? e !== "false" : false;
|
|
2699
2706
|
}
|
|
2700
|
-
const I = globalThis.process?.platform || ""
|
|
2707
|
+
const I = globalThis.process?.platform || "";
|
|
2708
|
+
const T = n(o.CI) || l.ci !== false;
|
|
2709
|
+
const a = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY);
|
|
2710
|
+
const g = n(o.DEBUG);
|
|
2711
|
+
const R = t === "test" || n(o.TEST);
|
|
2701
2712
|
o.MINIMAL;
|
|
2702
2713
|
const A = /^win/i.test(I);
|
|
2703
2714
|
!n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM);
|
|
2704
2715
|
const C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
|
|
2705
2716
|
Number(C?.split(".")[0]);
|
|
2706
|
-
const y = globalThis.process || Object.create(null)
|
|
2717
|
+
const y = globalThis.process || Object.create(null);
|
|
2718
|
+
const _ = { versions: {} };
|
|
2707
2719
|
new Proxy(y, { get(e, s) {
|
|
2708
2720
|
if (s === "env") return o;
|
|
2709
2721
|
if (s in e) return e[s];
|
|
2710
2722
|
if (s in _) return _[s];
|
|
2711
2723
|
} });
|
|
2712
|
-
const c = globalThis.process?.release?.name === "node"
|
|
2724
|
+
const c = globalThis.process?.release?.name === "node";
|
|
2725
|
+
const O = !!globalThis.Bun || !!globalThis.process?.versions?.bun;
|
|
2726
|
+
const D = !!globalThis.Deno;
|
|
2727
|
+
const L = !!globalThis.fastly;
|
|
2728
|
+
const S = !!globalThis.Netlify;
|
|
2729
|
+
const u = !!globalThis.EdgeRuntime;
|
|
2730
|
+
const N = globalThis.navigator?.userAgent === "Cloudflare-Workers";
|
|
2731
|
+
const F = [
|
|
2713
2732
|
[S, "netlify"],
|
|
2714
2733
|
[u, "edge-light"],
|
|
2715
2734
|
[N, "workerd"],
|
|
@@ -2867,7 +2886,7 @@ function createConsola(options = {}) {
|
|
|
2867
2886
|
defaults: { level },
|
|
2868
2887
|
stdout: process.stdout,
|
|
2869
2888
|
stderr: process.stderr,
|
|
2870
|
-
prompt: (...args) => import("./prompt
|
|
2889
|
+
prompt: (...args) => import("./prompt--dNycKSZ.mjs").then((m) => m.prompt(...args)),
|
|
2871
2890
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
2872
2891
|
...options
|
|
2873
2892
|
});
|
|
@@ -2908,7 +2927,7 @@ function createTestingLogger() {
|
|
|
2908
2927
|
//#endregion
|
|
2909
2928
|
//#region src/utils/bindingify-output-options.ts
|
|
2910
2929
|
function bindingifyOutputOptions(outputOptions, pluginContextData) {
|
|
2911
|
-
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapExcludeSources, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
|
|
2930
|
+
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapFileNames, sourcemapExcludeSources, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
|
|
2912
2931
|
if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
|
|
2913
2932
|
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks, pluginContextData);
|
|
2914
2933
|
return {
|
|
@@ -2920,6 +2939,7 @@ function bindingifyOutputOptions(outputOptions, pluginContextData) {
|
|
|
2920
2939
|
sourcemap: bindingifySourcemap(sourcemap),
|
|
2921
2940
|
sourcemapBaseUrl,
|
|
2922
2941
|
sourcemapDebugIds,
|
|
2942
|
+
sourcemapFileNames,
|
|
2923
2943
|
sourcemapExcludeSources,
|
|
2924
2944
|
sourcemapIgnoreList: sourcemapIgnoreList ?? /node_modules/,
|
|
2925
2945
|
sourcemapPathTransform,
|
|
@@ -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-_M7Yfopw.mjs";
|
|
2
2
|
//#region src/api/rolldown/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-BlEEMlGM.mjs";
|
|
2
2
|
import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/resolve-tsconfig.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as logMultipleWatcherOption } from "./logs-
|
|
2
|
-
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
1
|
+
import { o as logMultipleWatcherOption } from "./logs-ZGEh6uhb.mjs";
|
|
2
|
+
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-CwvtdwoA.mjs";
|
|
3
3
|
import { y as arraify } from "./filter-B_mD-HGz-Cbrk-2bt.mjs";
|
|
4
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
4
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-_M7Yfopw.mjs";
|
|
5
5
|
import { t as aggregateBindingErrorsIntoJsError } from "./error-B5cMIevi.mjs";
|
|
6
6
|
import { BindingWatcher, shutdownAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as parse, o as parseSync } from "./error-
|
|
2
|
-
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { a as parse, o as parseSync } from "./error-DXre1AuB.js";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-LwTDNg0M.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.139.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.139.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 = /* @__PURE__ */ new Map([
|
|
2016
2016
|
["DebuggerStatement", 0],
|
|
@@ -2180,14 +2180,16 @@ const NODE_TYPE_IDS_MAP = /* @__PURE__ */ 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.139.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|
|
2187
2187
|
for (let i = 165; i !== 0; i--) compiledVisitor.push(null);
|
|
2188
2188
|
return compiledVisitor;
|
|
2189
2189
|
}
|
|
2190
|
-
const mergedLeafVisitorTypeIds = []
|
|
2190
|
+
const mergedLeafVisitorTypeIds = [];
|
|
2191
|
+
const mergedEnterVisitorTypeIds = [];
|
|
2192
|
+
const mergedExitVisitorTypeIds = [];
|
|
2191
2193
|
for (let i = 27; i !== 0; i--) mergedLeafVisitorTypeIds.push(0);
|
|
2192
2194
|
for (let i = 138; i !== 0; i--) {
|
|
2193
2195
|
mergedEnterVisitorTypeIds.push(0);
|
package/dist/utils-index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as AssignmentPattern, $n as TSInferType, $r as UpdateExpression, $t as JSXMemberExpression, An as SwitchStatement, Ar as TSTupleType, At as ForStatement, Bn as TSConstructorType, Br as TSTypeQuery, Bt as ImportNamespaceSpecifier, Cn as ReturnStatement, Cr as TSRestType, Ct as ExportAllDeclaration, Dn as StringLiteral, Dr as TSTemplateLiteralType, Dt as ExpressionStatement, En as StaticBlock, Er as TSSymbolKeyword, Et as ExportSpecifier, Fn as TSBooleanKeyword, Fr as TSTypeOperator, Ft as IfStatement, Gn as TSExternalModuleReference, Gr as TSVoidKeyword, Gt as JSXAttribute, Hn as TSEnumDeclaration, Hr as TSUndefinedKeyword, Ht as JSDocNonNullableType, In as TSCallSignatureDeclaration, Ir as TSTypeParameter, It as ImportAttribute, J as AccessorProperty, Jn as TSImportEqualsDeclaration, Jr as TemplateLiteral, Jt as JSXElement, Kn as TSFunctionType, Kr as TaggedTemplateExpression, Kt as JSXClosingElement, Ln as TSClassImplements, Lr as TSTypeParameterDeclaration, Lt as ImportDeclaration, Mn as TSArrayType, Mr as TSTypeAnnotation, Mt as Function, Nn as TSAsExpression, Nr as TSTypeAssertion, Nt as IdentifierName, On as Super, Or as TSThisParameter, Ot as ForInStatement, Pn as TSBigIntKeyword, Pr as TSTypeLiteral, Pt as IdentifierReference, Q as AssignmentExpression, Qn as TSIndexedAccessType, Qr as UnaryExpression, Qt as JSXIdentifier, Rn as TSConditionalType, Rr as TSTypeParameterInstantiation, Rt as ImportDefaultSpecifier, Sn as RegExpLiteral, Sr as TSQualifiedName, St as EmptyStatement, Tn as SpreadElement, Tr as TSStringKeyword, Tt as ExportNamedDeclaration, Un as TSEnumMember, Ur as TSUnionType, Ut as JSDocNullableType, Vn as TSEnumBody, Vr as TSTypeReference, Vt as ImportSpecifier, Wn as TSExportAssignment, Wr as TSUnknownKeyword, Wt as JSDocUnknownType, X as ArrayPattern, Xn as TSIndexSignature, Xr as ThrowStatement, Xt as JSXExpressionContainer, Y as ArrayExpression, Yn as TSImportType, Yr as ThisExpression, Yt as JSXEmptyExpression, Z as ArrowFunctionExpression, Zn as TSIndexSignatureName, Zr as TryStatement, Zt as JSXFragment, _ as BindingTsconfigRawOptions, _n as ObjectProperty, _r as TSObjectKeyword, _t as ConditionalExpression, ai as YieldExpression, an as JSXText, ar as TSIntrinsicKeyword, at as BinaryExpression, bn as Program, br as TSParenthesizedType, bt as Decorator, cn as LogicalExpression, cr as TSMethodSignature, ct as BindingRestElement, dn as MethodDefinition, dr as TSNamedTupleMember, dt as BreakStatement, ei as V8IntrinsicExpression, en as JSXNamespacedName, er as TSInstantiationExpression, et as AssignmentTargetProperty, fn as NewExpression, fr as TSNamespaceExportDeclaration, ft as CallExpression, g as BindingTsconfigCompilerOptions, gn as ObjectPattern, gr as TSNumberKeyword, gt as ClassBody, hn as ObjectExpression, hr as TSNullKeyword, ht as Class, ii as WithStatement, in as JSXSpreadChild, ir as TSIntersectionType, it as BigIntLiteral, jn as TSAnyKeyword, jr as TSTypeAliasDeclaration, jt as FormalParameterRest, kn as SwitchCase, kr as TSThisType, kt as ForOfStatement, ln as MemberExpression, lr as TSModuleBlock, lt as BlockStatement, mn as NumericLiteral, mr as TSNonNullExpression, mt as ChainExpression, ni as VariableDeclarator, nn as JSXOpeningFragment, nr as TSInterfaceDeclaration, nt as AssignmentTargetRest, oi as types_d_exports, on as LabelIdentifier, or as TSLiteralType, ot as BindingIdentifier, pn as NullLiteral, pr as TSNeverKeyword, pt as CatchClause, qn as TSGlobalDeclaration, qr as TemplateElement, qt as JSXClosingFragment, ri as WhileStatement, rn as JSXSpreadAttribute, rr as TSInterfaceHeritage, rt as AwaitExpression, sn as LabeledStatement, sr as TSMappedType, st as BindingProperty, ti as VariableDeclaration, tn as JSXOpeningElement, tr as TSInterfaceBody, tt as AssignmentTargetPropertyProperty, un as MetaProperty, ur as TSModuleDeclaration, ut as BooleanLiteral, vn as ParenthesizedExpression, vr as TSOptionalType, vt as ContinueStatement, wn as SequenceExpression, wr as TSSatisfiesExpression, wt as ExportDefaultDeclaration, xn as PropertyDefinition, xr as TSPropertySignature, xt as DoWhileStatement, yn as PrivateIdentifier, yr as TSParameterProperty, yt as DebuggerStatement, zn as TSConstructSignatureDeclaration, zr as TSTypePredicate, zt as ImportExpression } 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 AssignmentPattern, $n as TSInferType, $r as UpdateExpression, $t as JSXMemberExpression, An as SwitchStatement, Ar as TSTupleType, At as ForStatement, Bn as TSConstructorType, Br as TSTypeQuery, Bt as ImportNamespaceSpecifier, Cn as ReturnStatement, Cr as TSRestType, Ct as ExportAllDeclaration, Dn as StringLiteral, Dr as TSTemplateLiteralType, Dt as ExpressionStatement, En as StaticBlock, Er as TSSymbolKeyword, Et as ExportSpecifier, Fn as TSBooleanKeyword, Fr as TSTypeOperator, Ft as IfStatement, Gn as TSExternalModuleReference, Gr as TSVoidKeyword, Gt as JSXAttribute, Hn as TSEnumDeclaration, Hr as TSUndefinedKeyword, Ht as JSDocNonNullableType, In as TSCallSignatureDeclaration, Ir as TSTypeParameter, It as ImportAttribute, J as AccessorProperty, Jn as TSImportEqualsDeclaration, Jr as TemplateLiteral, Jt as JSXElement, Kn as TSFunctionType, Kr as TaggedTemplateExpression, Kt as JSXClosingElement, Ln as TSClassImplements, Lr as TSTypeParameterDeclaration, Lt as ImportDeclaration, Mn as TSArrayType, Mr as TSTypeAnnotation, Mt as Function, Nn as TSAsExpression, Nr as TSTypeAssertion, Nt as IdentifierName, On as Super, Or as TSThisParameter, Ot as ForInStatement, Pn as TSBigIntKeyword, Pr as TSTypeLiteral, Pt as IdentifierReference, Q as AssignmentExpression, Qn as TSIndexedAccessType, Qr as UnaryExpression, Qt as JSXIdentifier, Rn as TSConditionalType, Rr as TSTypeParameterInstantiation, Rt as ImportDefaultSpecifier, Sn as RegExpLiteral, Sr as TSQualifiedName, St as EmptyStatement, Tn as SpreadElement, Tr as TSStringKeyword, Tt as ExportNamedDeclaration, Un as TSEnumMember, Ur as TSUnionType, Ut as JSDocNullableType, Vn as TSEnumBody, Vr as TSTypeReference, Vt as ImportSpecifier, Wn as TSExportAssignment, Wr as TSUnknownKeyword, Wt as JSDocUnknownType, X as ArrayPattern, Xn as TSIndexSignature, Xr as ThrowStatement, Xt as JSXExpressionContainer, Y as ArrayExpression, Yn as TSImportType, Yr as ThisExpression, Yt as JSXEmptyExpression, Z as ArrowFunctionExpression, Zn as TSIndexSignatureName, Zr as TryStatement, Zt as JSXFragment, _ as BindingTsconfigRawOptions, _n as ObjectProperty, _r as TSObjectKeyword, _t as ConditionalExpression, ai as YieldExpression, an as JSXText, ar as TSIntrinsicKeyword, at as BinaryExpression, bn as Program, br as TSParenthesizedType, bt as Decorator, cn as LogicalExpression, cr as TSMethodSignature, ct as BindingRestElement, dn as MethodDefinition, dr as TSNamedTupleMember, dt as BreakStatement, ei as V8IntrinsicExpression, en as JSXNamespacedName, er as TSInstantiationExpression, et as AssignmentTargetProperty, fn as NewExpression, fr as TSNamespaceExportDeclaration, ft as CallExpression, g as BindingTsconfigCompilerOptions, gn as ObjectPattern, gr as TSNumberKeyword, gt as ClassBody, hn as ObjectExpression, hr as TSNullKeyword, ht as Class, ii as WithStatement, in as JSXSpreadChild, ir as TSIntersectionType, it as BigIntLiteral, jn as TSAnyKeyword, jr as TSTypeAliasDeclaration, jt as FormalParameterRest, kn as SwitchCase, kr as TSThisType, kt as ForOfStatement, ln as MemberExpression, lr as TSModuleBlock, lt as BlockStatement, mn as NumericLiteral, mr as TSNonNullExpression, mt as ChainExpression, ni as VariableDeclarator, nn as JSXOpeningFragment, nr as TSInterfaceDeclaration, nt as AssignmentTargetRest, oi as types_d_exports, on as LabelIdentifier, or as TSLiteralType, ot as BindingIdentifier, pn as NullLiteral, pr as TSNeverKeyword, pt as CatchClause, qn as TSGlobalDeclaration, qr as TemplateElement, qt as JSXClosingFragment, ri as WhileStatement, rn as JSXSpreadAttribute, rr as TSInterfaceHeritage, rt as AwaitExpression, sn as LabeledStatement, sr as TSMappedType, st as BindingProperty, ti as VariableDeclaration, tn as JSXOpeningElement, tr as TSInterfaceBody, tt as AssignmentTargetPropertyProperty, un as MetaProperty, ur as TSModuleDeclaration, ut as BooleanLiteral, vn as ParenthesizedExpression, vr as TSOptionalType, vt as ContinueStatement, wn as SequenceExpression, wr as TSSatisfiesExpression, wt as ExportDefaultDeclaration, xn as PropertyDefinition, xr as TSPropertySignature, xt as DoWhileStatement, yn as PrivateIdentifier, yr as TSParameterProperty, yt as DebuggerStatement, zn as TSConstructSignatureDeclaration, zr as TSTypePredicate, zt as ImportExpression } from "./shared/binding-BlEEMlGM.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-BJ9ymllw.mjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.139.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
|
|
5
5
|
interface VisitorObject$1 {
|
|
6
6
|
DebuggerStatement?: (node: DebuggerStatement) => void;
|
|
7
7
|
"DebuggerStatement:exit"?: (node: DebuggerStatement) => void;
|
package/dist/utils-index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
1
|
+
import { n as parseSync, t as parse } from "./shared/parse-zUvsghAI.mjs";
|
|
2
2
|
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-DsK7KzKK.mjs";
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.139.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.139.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 = /* @__PURE__ */ new Map([
|
|
2016
2016
|
["DebuggerStatement", 0],
|
|
@@ -2180,14 +2180,16 @@ const NODE_TYPE_IDS_MAP = /* @__PURE__ */ 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.139.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|
|
2187
2187
|
for (let i = 165; i !== 0; i--) compiledVisitor.push(null);
|
|
2188
2188
|
return compiledVisitor;
|
|
2189
2189
|
}
|
|
2190
|
-
const mergedLeafVisitorTypeIds = []
|
|
2190
|
+
const mergedLeafVisitorTypeIds = [];
|
|
2191
|
+
const mergedEnterVisitorTypeIds = [];
|
|
2192
|
+
const mergedExitVisitorTypeIds = [];
|
|
2191
2193
|
for (let i = 27; i !== 0; i--) mergedLeafVisitorTypeIds.push(0);
|
|
2192
2194
|
for (let i = 138; i !== 0; i--) {
|
|
2193
2195
|
mergedEnterVisitorTypeIds.push(0);
|