@rolldown/browser 1.0.0 → 1.0.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 +7 -7
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +3 -3
- package/dist/{constructors-BXVEHwHm.js → constructors-B3MtwuwE.js} +1 -1
- package/dist/{error-DMfKBGWU.js → error-u6fgq_tm.js} +1 -1
- package/dist/experimental-index.browser.mjs +8 -6
- package/dist/experimental-index.d.mts +21 -5
- package/dist/experimental-index.mjs +10 -8
- package/dist/filter-index.d.mts +3 -3
- package/dist/filter-index.mjs +3 -3
- 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-eqfrsvjc.js → resolve-tsconfig-DDQjQ68j.js} +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-CKS7EawU.js → rolldown-build-D3Q68dCD.js} +48 -70
- package/dist/shared/{bindingify-input-options-CboGFdC4.mjs → bindingify-input-options-Dh93Higz.mjs} +10 -10
- package/dist/shared/{composable-filters-B2ByPP8y.mjs → composable-filters-BcLvc0mh.mjs} +2 -2
- package/dist/shared/{constructors-B1JYJxhf.d.mts → constructors-DbOoVFJG.d.mts} +2 -2
- package/dist/shared/{constructors-DO36gIcC.mjs → constructors-YQsI-lJq.mjs} +1 -1
- package/dist/shared/{define-config-Bah0mfyR.d.mts → define-config-CgQHLEzf.d.mts} +68 -16
- package/dist/shared/{get-log-filter-semyr3Lj.d.mts → get-log-filter-BpNVNJ5-.d.mts} +1 -1
- package/dist/shared/{load-config-BwBgui4p.mjs → load-config-CYjpnIlH.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-Lc1YQk0q.mjs → parse-Vf7R2RjR.mjs} +1 -1
- package/dist/shared/{resolve-tsconfig-Cwoo4h_o.mjs → resolve-tsconfig-D8Galy_A.mjs} +1 -1
- package/dist/shared/{rolldown-WowDTCZP.mjs → rolldown-BFjamCgT.mjs} +1 -1
- package/dist/shared/{rolldown-build-DIb-iqkO.mjs → rolldown-build-BodFrzFa.mjs} +41 -62
- package/dist/shared/{transform-kP3ISMFT.d.mts → transform-DEcsn5bq.d.mts} +2 -2
- package/dist/shared/{utils-KRVeJqya.d.mts → utils-CA_QYuaU.d.mts} +1 -1
- package/dist/shared/{watch-B81_EvN-.mjs → watch-Dt8HdCIN.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/{binding-CaVxb0SV.d.mts → binding-Ba2kzvIy.d.mts} +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
- /package/dist/shared/{prompt-U5ajztzG.mjs → prompt-DewH0PjV.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-Dh93Higz.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,12 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
210
210
|
...post
|
|
211
211
|
];
|
|
212
212
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
213
|
+
const DEFAULT_CONFIG = {
|
|
214
|
+
lang: void 0,
|
|
215
|
+
message: void 0,
|
|
216
|
+
abortEarly: void 0,
|
|
217
|
+
abortPipeEarly: void 0
|
|
218
|
+
};
|
|
216
219
|
/**
|
|
217
220
|
* Returns the global configuration.
|
|
218
221
|
*
|
|
@@ -222,50 +225,14 @@ let store$4;
|
|
|
222
225
|
*/
|
|
223
226
|
/* @__NO_SIDE_EFFECTS__ */
|
|
224
227
|
function getGlobalConfig(config$1) {
|
|
228
|
+
if (!config$1 && true) return DEFAULT_CONFIG;
|
|
225
229
|
return {
|
|
226
|
-
lang: config$1?.lang ??
|
|
230
|
+
lang: config$1?.lang ?? void 0,
|
|
227
231
|
message: config$1?.message,
|
|
228
|
-
abortEarly: config$1?.abortEarly ??
|
|
229
|
-
abortPipeEarly: config$1?.abortPipeEarly ??
|
|
232
|
+
abortEarly: config$1?.abortEarly ?? void 0,
|
|
233
|
+
abortPipeEarly: config$1?.abortPipeEarly ?? void 0
|
|
230
234
|
};
|
|
231
235
|
}
|
|
232
|
-
let store$3;
|
|
233
|
-
/**
|
|
234
|
-
* Returns a global error message.
|
|
235
|
-
*
|
|
236
|
-
* @param lang The language of the message.
|
|
237
|
-
*
|
|
238
|
-
* @returns The error message.
|
|
239
|
-
*/
|
|
240
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
241
|
-
function getGlobalMessage(lang) {
|
|
242
|
-
return store$3?.get(lang);
|
|
243
|
-
}
|
|
244
|
-
let store$2;
|
|
245
|
-
/**
|
|
246
|
-
* Returns a schema error message.
|
|
247
|
-
*
|
|
248
|
-
* @param lang The language of the message.
|
|
249
|
-
*
|
|
250
|
-
* @returns The error message.
|
|
251
|
-
*/
|
|
252
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
253
|
-
function getSchemaMessage(lang) {
|
|
254
|
-
return store$2?.get(lang);
|
|
255
|
-
}
|
|
256
|
-
let store$1;
|
|
257
|
-
/**
|
|
258
|
-
* Returns a specific error message.
|
|
259
|
-
*
|
|
260
|
-
* @param reference The identifier reference.
|
|
261
|
-
* @param lang The language of the message.
|
|
262
|
-
*
|
|
263
|
-
* @returns The error message.
|
|
264
|
-
*/
|
|
265
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
266
|
-
function getSpecificMessage(reference, lang) {
|
|
267
|
-
return store$1?.get(reference)?.get(lang);
|
|
268
|
-
}
|
|
269
236
|
/**
|
|
270
237
|
* Stringifies an unknown input to a literal or type string.
|
|
271
238
|
*
|
|
@@ -313,12 +280,13 @@ function _addIssue(context, label, dataset, config$1, other) {
|
|
|
313
280
|
abortPipeEarly: config$1.abortPipeEarly
|
|
314
281
|
};
|
|
315
282
|
const isSchema = context.kind === "schema";
|
|
316
|
-
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);
|
|
317
284
|
if (message$1 !== void 0) issue.message = typeof message$1 === "function" ? message$1(issue) : message$1;
|
|
318
285
|
if (isSchema) dataset.typed = false;
|
|
319
286
|
if (dataset.issues) dataset.issues.push(issue);
|
|
320
287
|
else dataset.issues = [issue];
|
|
321
288
|
}
|
|
289
|
+
const _standardCache = /* @__PURE__ */ new WeakMap();
|
|
322
290
|
/**
|
|
323
291
|
* Returns the Standard Schema properties.
|
|
324
292
|
*
|
|
@@ -328,13 +296,18 @@ function _addIssue(context, label, dataset, config$1, other) {
|
|
|
328
296
|
*/
|
|
329
297
|
/* @__NO_SIDE_EFFECTS__ */
|
|
330
298
|
function _getStandardProps(context) {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
299
|
+
let cached = _standardCache.get(context);
|
|
300
|
+
if (!cached) {
|
|
301
|
+
cached = {
|
|
302
|
+
version: 1,
|
|
303
|
+
vendor: "valibot",
|
|
304
|
+
validate(value$1) {
|
|
305
|
+
return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
_standardCache.set(context, cached);
|
|
309
|
+
}
|
|
310
|
+
return cached;
|
|
338
311
|
}
|
|
339
312
|
/**
|
|
340
313
|
* Disallows inherited object properties and prevents object prototype
|
|
@@ -349,7 +322,7 @@ function _getStandardProps(context) {
|
|
|
349
322
|
*/
|
|
350
323
|
/* @__NO_SIDE_EFFECTS__ */
|
|
351
324
|
function _isValidObjectKey(object$1, key) {
|
|
352
|
-
return Object.
|
|
325
|
+
return Object.prototype.hasOwnProperty.call(object$1, key) && key !== "__proto__" && key !== "prototype" && key !== "constructor";
|
|
353
326
|
}
|
|
354
327
|
/**
|
|
355
328
|
* Joins multiple `expects` values with the given separator.
|
|
@@ -473,6 +446,7 @@ function returnsAsync(schema) {
|
|
|
473
446
|
}
|
|
474
447
|
};
|
|
475
448
|
}
|
|
449
|
+
const ABORT_EARLY_CONFIG = { abortEarly: true };
|
|
476
450
|
/**
|
|
477
451
|
* Returns the fallback value of the schema.
|
|
478
452
|
*
|
|
@@ -510,7 +484,7 @@ function getDefault(schema, dataset, config$1) {
|
|
|
510
484
|
*/
|
|
511
485
|
/* @__NO_SIDE_EFFECTS__ */
|
|
512
486
|
function is(schema, input) {
|
|
513
|
-
return !schema["~run"]({ value: input },
|
|
487
|
+
return !schema["~run"]({ value: input }, ABORT_EARLY_CONFIG).issues;
|
|
514
488
|
}
|
|
515
489
|
/**
|
|
516
490
|
* Creates an any schema.
|
|
@@ -1122,7 +1096,7 @@ function undefined_(message$1) {
|
|
|
1122
1096
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1123
1097
|
function _subIssues(datasets) {
|
|
1124
1098
|
let issues;
|
|
1125
|
-
if (datasets) for (const dataset of datasets) if (issues)
|
|
1099
|
+
if (datasets) for (const dataset of datasets) if (issues) for (const issue of dataset.issues) issues.push(issue);
|
|
1126
1100
|
else issues = dataset.issues;
|
|
1127
1101
|
return issues;
|
|
1128
1102
|
}
|
|
@@ -1520,6 +1494,7 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1520
1494
|
eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
|
|
1521
1495
|
missingGlobalName: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.globals` option is missing when needed")),
|
|
1522
1496
|
missingNameOptionForIifeExport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.name` option is missing when needed")),
|
|
1497
|
+
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")),
|
|
1523
1498
|
mixedExports: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the way to export values is ambiguous")),
|
|
1524
1499
|
unresolvedEntry: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an entrypoint cannot be resolved")),
|
|
1525
1500
|
unresolvedImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an import cannot be resolved")),
|
|
@@ -1535,7 +1510,8 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1535
1510
|
pluginTimings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when plugins take significant time during the build process")),
|
|
1536
1511
|
duplicateShebang: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when both the code and postBanner contain shebang")),
|
|
1537
1512
|
unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
|
|
1538
|
-
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting"))
|
|
1513
|
+
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting")),
|
|
1514
|
+
largeBarrelModules: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000)"))
|
|
1539
1515
|
});
|
|
1540
1516
|
const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1541
1517
|
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
@@ -1653,7 +1629,10 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1653
1629
|
onDemandWrapping: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1654
1630
|
incrementalBuild: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1655
1631
|
nativeMagicString: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1656
|
-
chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()
|
|
1632
|
+
chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1633
|
+
mergeCommonChunks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1634
|
+
avoidRedundantChunkLoads: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1635
|
+
})])),
|
|
1657
1636
|
lazyBarrel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1658
1637
|
})),
|
|
1659
1638
|
transform: /* @__PURE__ */ optional(TransformOptionsSchema),
|
|
@@ -2877,7 +2856,7 @@ function createConsola(options = {}) {
|
|
|
2877
2856
|
defaults: { level },
|
|
2878
2857
|
stdout: process.stdout,
|
|
2879
2858
|
stderr: process.stderr,
|
|
2880
|
-
prompt: (...args) => import("./prompt-
|
|
2859
|
+
prompt: (...args) => import("./prompt-DewH0PjV.mjs").then((m) => m.prompt(...args)),
|
|
2881
2860
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
2882
2861
|
...options
|
|
2883
2862
|
});
|
|
@@ -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-Ba2kzvIy.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-Dh93Higz.mjs";
|
|
3
|
+
import { h as arraify } from "./composable-filters-BcLvc0mh.mjs";
|
|
4
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-BodFrzFa.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-u6fgq_tm.js";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-DDQjQ68j.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.132.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.132.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.132.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-Ba2kzvIy.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-DEcsn5bq.mjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.132.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-Vf7R2RjR.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-D8Galy_A.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.132.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.132.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.132.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
|
|
File without changes
|