@rolldown/browser 1.0.1 → 1.0.3
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 +7 -7
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +3 -3
- package/dist/{constructors-BTLtc_G_.js → constructors-B3MtwuwE.js} +1 -4
- package/dist/{error-CIj5jXSo.js → error-DAfzPCGW.js} +1 -1
- package/dist/experimental-index.browser.mjs +11 -6
- package/dist/experimental-index.d.mts +22 -5
- package/dist/experimental-index.mjs +13 -8
- package/dist/filter-index.d.mts +1 -1
- package/dist/filter-index.mjs +1 -1
- package/dist/get-log-filter.d.mts +3 -3
- package/dist/index.browser.mjs +3 -3
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +4 -4
- 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-uVC8K7GR.js → resolve-tsconfig-B0FaCdVd.js} +14 -3
- package/dist/rolldown-binding.wasi-browser.js +1 -0
- package/dist/rolldown-binding.wasi.cjs +1 -0
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-DCjXbOeh.js → rolldown-build-XdM92thc.js} +31 -61
- package/dist/shared/{binding-CaVxb0SV.d.mts → binding-BhK3B-Zu.d.mts} +31 -0
- package/dist/shared/{bindingify-input-options-C7dl2XLe.mjs → bindingify-input-options-BKrzu-Ci.mjs} +12 -12
- package/dist/shared/{constructors-B1JYJxhf.d.mts → constructors-CtnJN4Sg.d.mts} +2 -2
- package/dist/shared/{constructors-CI_8FAaP.mjs → constructors-YQsI-lJq.mjs} +1 -4
- package/dist/shared/{define-config-CYgMQYTy.d.mts → define-config-D4nAGxn1.d.mts} +19 -5
- package/dist/shared/{get-log-filter-semyr3Lj.d.mts → get-log-filter-BpNVNJ5-.d.mts} +1 -1
- package/dist/shared/{load-config-BFkorvIR.mjs → load-config-BXndT4NL.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-Dq6w-2tU.mjs → normalize-string-or-regex-CHVaSqeF.mjs} +1 -1
- package/dist/shared/{parse-Bmk53Le1.mjs → parse-DSgaJ6oU.mjs} +1 -1
- package/dist/shared/{prompt-U5ajztzG.mjs → prompt-DYnaB1Nb.mjs} +1 -1
- package/dist/shared/{resolve-tsconfig-Cwoo4h_o.mjs → resolve-tsconfig-DsK7KzKK.mjs} +14 -3
- package/dist/shared/{rolldown-Dyy9Y2li.mjs → rolldown-CMk-JrOo.mjs} +1 -1
- package/dist/shared/{rolldown-build-DYE2Qi6z.mjs → rolldown-build-Dh-EVzMc.mjs} +23 -52
- package/dist/shared/{transform-kP3ISMFT.d.mts → transform-HS_zMlQ1.d.mts} +2 -2
- package/dist/shared/{utils-KRVeJqya.d.mts → utils-m0ogxd-4.d.mts} +1 -1
- package/dist/shared/{watch-DXAEaxPd.mjs → watch-_n5IfB8D.mjs} +5 -5
- package/dist/utils-index.browser.mjs +5 -5
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +5 -5
- package/package.json +1 -1
- /package/dist/{normalize-string-or-regex-CBPw_c5O.js → normalize-string-or-regex-A9UIvc9j.js} +0 -0
- /package/dist/shared/{composable-filters-DpWB82jk.mjs → composable-filters-BcLvc0mh.mjs} +0 -0
- /package/dist/shared/{define-config-DJOr6Iwt.mjs → define-config-Demdg3_4.mjs} +0 -0
- /package/dist/shared/{error-CQ6njWsV.mjs → error-B5cMIevi.mjs} +0 -0
- /package/dist/shared/{logging-C6h4g8dA.d.mts → logging-BSNejiLS.d.mts} +0 -0
- /package/dist/shared/{logs-D80CXhvg.mjs → logs-aMKUxRpj.mjs} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as logInputHookInOutputPlugin, n as error } from "./logs-
|
|
2
|
-
import { n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
3
|
-
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-
|
|
4
|
-
import { v as unimplemented } from "./composable-filters-
|
|
5
|
-
import { i as unwrapBindingResult } from "./error-
|
|
1
|
+
import { i as logInputHookInOutputPlugin, n as error } from "./logs-aMKUxRpj.mjs";
|
|
2
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-CHVaSqeF.mjs";
|
|
3
|
+
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-BKrzu-Ci.mjs";
|
|
4
|
+
import { v as unimplemented } from "./composable-filters-BcLvc0mh.mjs";
|
|
5
|
+
import { i as unwrapBindingResult } from "./error-B5cMIevi.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
7
7
|
import { BindingBundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
8
8
|
import path, { sep } from "node:path";
|
|
@@ -210,9 +210,6 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
210
210
|
...post
|
|
211
211
|
];
|
|
212
212
|
}
|
|
213
|
-
//#endregion
|
|
214
|
-
//#region ../../node_modules/.pnpm/valibot@1.4.0_typescript@6.0.3/node_modules/valibot/dist/index.mjs
|
|
215
|
-
let store$4;
|
|
216
213
|
const DEFAULT_CONFIG = {
|
|
217
214
|
lang: void 0,
|
|
218
215
|
message: void 0,
|
|
@@ -230,49 +227,12 @@ const DEFAULT_CONFIG = {
|
|
|
230
227
|
function getGlobalConfig(config$1) {
|
|
231
228
|
if (!config$1 && true) return DEFAULT_CONFIG;
|
|
232
229
|
return {
|
|
233
|
-
lang: config$1?.lang ??
|
|
230
|
+
lang: config$1?.lang ?? void 0,
|
|
234
231
|
message: config$1?.message,
|
|
235
|
-
abortEarly: config$1?.abortEarly ??
|
|
236
|
-
abortPipeEarly: config$1?.abortPipeEarly ??
|
|
232
|
+
abortEarly: config$1?.abortEarly ?? void 0,
|
|
233
|
+
abortPipeEarly: config$1?.abortPipeEarly ?? void 0
|
|
237
234
|
};
|
|
238
235
|
}
|
|
239
|
-
let store$3;
|
|
240
|
-
/**
|
|
241
|
-
* Returns a global error message.
|
|
242
|
-
*
|
|
243
|
-
* @param lang The language of the message.
|
|
244
|
-
*
|
|
245
|
-
* @returns The error message.
|
|
246
|
-
*/
|
|
247
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
248
|
-
function getGlobalMessage(lang) {
|
|
249
|
-
return store$3?.get(lang);
|
|
250
|
-
}
|
|
251
|
-
let store$2;
|
|
252
|
-
/**
|
|
253
|
-
* Returns a schema error message.
|
|
254
|
-
*
|
|
255
|
-
* @param lang The language of the message.
|
|
256
|
-
*
|
|
257
|
-
* @returns The error message.
|
|
258
|
-
*/
|
|
259
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
260
|
-
function getSchemaMessage(lang) {
|
|
261
|
-
return store$2?.get(lang);
|
|
262
|
-
}
|
|
263
|
-
let store$1;
|
|
264
|
-
/**
|
|
265
|
-
* Returns a specific error message.
|
|
266
|
-
*
|
|
267
|
-
* @param reference The identifier reference.
|
|
268
|
-
* @param lang The language of the message.
|
|
269
|
-
*
|
|
270
|
-
* @returns The error message.
|
|
271
|
-
*/
|
|
272
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
273
|
-
function getSpecificMessage(reference, lang) {
|
|
274
|
-
return store$1?.get(reference)?.get(lang);
|
|
275
|
-
}
|
|
276
236
|
/**
|
|
277
237
|
* Stringifies an unknown input to a literal or type string.
|
|
278
238
|
*
|
|
@@ -320,7 +280,7 @@ function _addIssue(context, label, dataset, config$1, other) {
|
|
|
320
280
|
abortPipeEarly: config$1.abortPipeEarly
|
|
321
281
|
};
|
|
322
282
|
const isSchema = context.kind === "schema";
|
|
323
|
-
const message$1 = other?.message ?? context.message ??
|
|
283
|
+
const message$1 = other?.message ?? context.message ?? (context.reference, issue.lang, void 0) ?? (isSchema ? (issue.lang, void 0) : null) ?? config$1.message ?? (issue.lang, void 0);
|
|
324
284
|
if (message$1 !== void 0) issue.message = typeof message$1 === "function" ? message$1(issue) : message$1;
|
|
325
285
|
if (isSchema) dataset.typed = false;
|
|
326
286
|
if (dataset.issues) dataset.issues.push(issue);
|
|
@@ -1483,7 +1443,8 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
|
|
|
1483
1443
|
helpers: /* @__PURE__ */ optional(/* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")])) })),
|
|
1484
1444
|
decorator: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1485
1445
|
legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1486
|
-
emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1446
|
+
emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1447
|
+
strictNullChecks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1487
1448
|
})),
|
|
1488
1449
|
jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1489
1450
|
/* @__PURE__ */ literal(false),
|
|
@@ -1534,6 +1495,7 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1534
1495
|
eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
|
|
1535
1496
|
missingGlobalName: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.globals` option is missing when needed")),
|
|
1536
1497
|
missingNameOptionForIifeExport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.name` option is missing when needed")),
|
|
1498
|
+
invalidAnnotation: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a `#__PURE__` / `@__PURE__` annotation has no effect due to its position")),
|
|
1537
1499
|
mixedExports: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the way to export values is ambiguous")),
|
|
1538
1500
|
unresolvedEntry: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an entrypoint cannot be resolved")),
|
|
1539
1501
|
unresolvedImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an import cannot be resolved")),
|
|
@@ -1583,7 +1545,16 @@ const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1583
1545
|
})])),
|
|
1584
1546
|
debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1585
1547
|
})])),
|
|
1586
|
-
codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1548
|
+
codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1549
|
+
removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1550
|
+
legalComments: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1551
|
+
/* @__PURE__ */ literal("none"),
|
|
1552
|
+
/* @__PURE__ */ literal("inline"),
|
|
1553
|
+
/* @__PURE__ */ literal("eof"),
|
|
1554
|
+
/* @__PURE__ */ literal("external"),
|
|
1555
|
+
/* @__PURE__ */ strictObject({ linked: /* @__PURE__ */ string() })
|
|
1556
|
+
]))
|
|
1557
|
+
})]))
|
|
1587
1558
|
});
|
|
1588
1559
|
const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1589
1560
|
alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
|
|
@@ -2895,7 +2866,7 @@ function createConsola(options = {}) {
|
|
|
2895
2866
|
defaults: { level },
|
|
2896
2867
|
stdout: process.stdout,
|
|
2897
2868
|
stderr: process.stderr,
|
|
2898
|
-
prompt: (...args) => import("./prompt-
|
|
2869
|
+
prompt: (...args) => import("./prompt-DYnaB1Nb.mjs").then((m) => m.prompt(...args)),
|
|
2899
2870
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
2900
2871
|
...options
|
|
2901
2872
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { a as RolldownLog } from "./logging-
|
|
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-BhK3B-Zu.mjs";
|
|
2
|
+
import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/resolve-tsconfig.d.ts
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as logMultipleWatcherOption } from "./logs-
|
|
2
|
-
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
3
|
-
import { h as arraify } from "./composable-filters-
|
|
4
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
5
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
1
|
+
import { o as logMultipleWatcherOption } from "./logs-aMKUxRpj.mjs";
|
|
2
|
+
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-BKrzu-Ci.mjs";
|
|
3
|
+
import { h as arraify } from "./composable-filters-BcLvc0mh.mjs";
|
|
4
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-Dh-EVzMc.mjs";
|
|
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
|
|
8
8
|
/**
|
|
@@ -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-DAfzPCGW.js";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-B0FaCdVd.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.133.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.133.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2014
2014
|
/** Mapping from node type name to node type ID */
|
|
2015
2015
|
const NODE_TYPE_IDS_MAP = new Map([
|
|
2016
2016
|
["DebuggerStatement", 0],
|
|
@@ -2180,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
|
|
|
2180
2180
|
["TSUnionType", 164]
|
|
2181
2181
|
]);
|
|
2182
2182
|
//#endregion
|
|
2183
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2183
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|
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-BhK3B-Zu.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-HS_zMlQ1.mjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.133.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-
|
|
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-DSgaJ6oU.mjs";
|
|
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.133.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.133.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2014
2014
|
/** Mapping from node type name to node type ID */
|
|
2015
2015
|
const NODE_TYPE_IDS_MAP = new Map([
|
|
2016
2016
|
["DebuggerStatement", 0],
|
|
@@ -2180,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
|
|
|
2180
2180
|
["TSUnionType", 164]
|
|
2181
2181
|
]);
|
|
2182
2182
|
//#endregion
|
|
2183
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2183
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|
package/package.json
CHANGED
/package/dist/{normalize-string-or-regex-CBPw_c5O.js → normalize-string-or-regex-A9UIvc9j.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|