@rolldown/browser 1.0.0-rc.16 → 1.0.0-rc.18
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 +6 -6
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/{error-DyjphrNB.js → error-Wb6U5UzX.js} +1 -1
- package/dist/experimental-index.browser.mjs +3 -3
- package/dist/experimental-index.d.mts +1 -1
- package/dist/experimental-index.mjs +3 -3
- package/dist/experimental-runtime-types.d.ts +14 -5
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/{resolve-tsconfig-wB7yLsyK.js → resolve-tsconfig-D81WVTGZ.js} +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-DyzPc6vz.js → rolldown-build-D0tGZ7Ho.js} +81 -143
- package/dist/shared/{bindingify-input-options-BM_ALGnD.mjs → bindingify-input-options-CwgInDkH.mjs} +2 -2
- package/dist/shared/{define-config-iFrqKPOQ.d.mts → define-config-Bah0mfyR.d.mts} +14 -1
- package/dist/shared/{load-config-BbGXN4n6.mjs → load-config-53AVxtku.mjs} +1 -1
- package/dist/shared/{parse-Cxk58XCS.mjs → parse-CSnBnIDb.mjs} +1 -1
- package/dist/shared/{rolldown-DrY5vEjL.mjs → rolldown-QMNic12I.mjs} +1 -1
- package/dist/shared/{rolldown-build-BMFr9KVX.mjs → rolldown-build-DTZNpSde.mjs} +80 -142
- package/dist/shared/{watch-B_mctB4m.mjs → watch-CaH0VzA9.mjs} +2 -2
- package/dist/utils-index.browser.mjs +5 -5
- package/dist/utils-index.d.mts +1 -1
- package/dist/utils-index.mjs +4 -4
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
|
|
2
2
|
import { n as BuiltinPlugin } from "./normalize-string-or-regex-D0o84ejN.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-
|
|
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-CwgInDkH.mjs";
|
|
4
4
|
import { v as unimplemented } from "./composable-filters-B2ByPP8y.mjs";
|
|
5
5
|
import { i as unwrapBindingResult } from "./error-CQ6njWsV.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
@@ -211,7 +211,7 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
211
211
|
];
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
|
-
//#region ../../node_modules/.pnpm/valibot@1.3.1_typescript@6.0.
|
|
214
|
+
//#region ../../node_modules/.pnpm/valibot@1.3.1_typescript@6.0.3/node_modules/valibot/dist/index.mjs
|
|
215
215
|
let store$4;
|
|
216
216
|
/**
|
|
217
217
|
* Returns the global configuration.
|
|
@@ -1396,9 +1396,7 @@ function styleText$1(...args) {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
//#endregion
|
|
1398
1398
|
//#region src/utils/validator.ts
|
|
1399
|
-
function isTypeTrue() {}
|
|
1400
1399
|
const StringOrRegExpSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ instance(RegExp)]);
|
|
1401
|
-
isTypeTrue();
|
|
1402
1400
|
function vFunction() {
|
|
1403
1401
|
return /* @__PURE__ */ function_();
|
|
1404
1402
|
}
|
|
@@ -1407,32 +1405,25 @@ const LogLevelSchema = /* @__PURE__ */ union([
|
|
|
1407
1405
|
/* @__PURE__ */ literal("info"),
|
|
1408
1406
|
/* @__PURE__ */ literal("warn")
|
|
1409
1407
|
]);
|
|
1410
|
-
isTypeTrue();
|
|
1411
1408
|
const LogLevelOptionSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("silent")]);
|
|
1412
|
-
isTypeTrue();
|
|
1413
1409
|
const LogLevelWithErrorSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("error")]);
|
|
1414
|
-
isTypeTrue();
|
|
1415
1410
|
const RollupLogSchema = /* @__PURE__ */ any();
|
|
1416
1411
|
const RollupLogWithStringSchema = /* @__PURE__ */ union([RollupLogSchema, /* @__PURE__ */ string()]);
|
|
1417
|
-
isTypeTrue();
|
|
1418
1412
|
const InputOptionSchema = /* @__PURE__ */ union([
|
|
1419
1413
|
/* @__PURE__ */ string(),
|
|
1420
1414
|
/* @__PURE__ */ array(/* @__PURE__ */ string()),
|
|
1421
1415
|
/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())
|
|
1422
1416
|
]);
|
|
1423
|
-
isTypeTrue();
|
|
1424
1417
|
const ExternalOptionFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
|
|
1425
1418
|
/* @__PURE__ */ string(),
|
|
1426
1419
|
/* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1427
1420
|
/* @__PURE__ */ boolean()
|
|
1428
1421
|
])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ boolean())));
|
|
1429
|
-
isTypeTrue();
|
|
1430
1422
|
const ExternalOptionSchema = /* @__PURE__ */ union([
|
|
1431
1423
|
StringOrRegExpSchema,
|
|
1432
1424
|
/* @__PURE__ */ array(StringOrRegExpSchema),
|
|
1433
1425
|
ExternalOptionFunctionSchema
|
|
1434
1426
|
]);
|
|
1435
|
-
isTypeTrue();
|
|
1436
1427
|
const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
|
|
1437
1428
|
/* @__PURE__ */ literal("asset"),
|
|
1438
1429
|
/* @__PURE__ */ literal("base64"),
|
|
@@ -1448,78 +1439,63 @@ const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @_
|
|
|
1448
1439
|
/* @__PURE__ */ literal("ts"),
|
|
1449
1440
|
/* @__PURE__ */ literal("tsx")
|
|
1450
1441
|
]));
|
|
1451
|
-
isTypeTrue();
|
|
1452
|
-
const JsxOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1453
|
-
runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
|
|
1454
|
-
development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
|
|
1455
|
-
throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
|
|
1456
|
-
pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
|
|
1457
|
-
importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
|
|
1458
|
-
pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
|
|
1459
|
-
pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
|
|
1460
|
-
refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
|
|
1461
|
-
});
|
|
1462
|
-
isTypeTrue();
|
|
1463
|
-
const HelperModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")]);
|
|
1464
|
-
const DecoratorOptionSchema = /* @__PURE__ */ object({
|
|
1465
|
-
legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1466
|
-
emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1467
|
-
});
|
|
1468
|
-
isTypeTrue();
|
|
1469
|
-
const HelpersSchema = /* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(HelperModeSchema) });
|
|
1470
|
-
isTypeTrue();
|
|
1471
|
-
const TypescriptSchema = /* @__PURE__ */ object({
|
|
1472
|
-
jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1473
|
-
jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1474
|
-
onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1475
|
-
allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1476
|
-
allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1477
|
-
removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1478
|
-
optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1479
|
-
optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1480
|
-
declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1481
|
-
stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1482
|
-
sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1483
|
-
})),
|
|
1484
|
-
rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1485
|
-
/* @__PURE__ */ literal("rewrite"),
|
|
1486
|
-
/* @__PURE__ */ literal("remove"),
|
|
1487
|
-
/* @__PURE__ */ boolean()
|
|
1488
|
-
]))
|
|
1489
|
-
});
|
|
1490
|
-
isTypeTrue();
|
|
1491
|
-
const AssumptionsSchema = /* @__PURE__ */ object({
|
|
1492
|
-
ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1493
|
-
noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1494
|
-
objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1495
|
-
pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1496
|
-
setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1497
|
-
});
|
|
1498
|
-
isTypeTrue();
|
|
1499
|
-
const TransformPluginsSchema = /* @__PURE__ */ object({
|
|
1500
|
-
styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
|
|
1501
|
-
taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1502
|
-
});
|
|
1503
|
-
isTypeTrue();
|
|
1504
1442
|
const TransformOptionsSchema = /* @__PURE__ */ object({
|
|
1505
|
-
assumptions: /* @__PURE__ */ optional(
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1443
|
+
assumptions: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1444
|
+
ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1445
|
+
noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1446
|
+
objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1447
|
+
pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1448
|
+
setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1449
|
+
})),
|
|
1450
|
+
typescript: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1451
|
+
jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1452
|
+
jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1453
|
+
onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1454
|
+
allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1455
|
+
allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1456
|
+
removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1457
|
+
optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1458
|
+
optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1459
|
+
declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1460
|
+
stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1461
|
+
sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1462
|
+
})),
|
|
1463
|
+
rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1464
|
+
/* @__PURE__ */ literal("rewrite"),
|
|
1465
|
+
/* @__PURE__ */ literal("remove"),
|
|
1466
|
+
/* @__PURE__ */ boolean()
|
|
1467
|
+
]))
|
|
1468
|
+
})),
|
|
1469
|
+
helpers: /* @__PURE__ */ optional(/* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")])) })),
|
|
1470
|
+
decorator: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1471
|
+
legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1472
|
+
emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1473
|
+
})),
|
|
1509
1474
|
jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1510
1475
|
/* @__PURE__ */ literal(false),
|
|
1511
1476
|
/* @__PURE__ */ literal("preserve"),
|
|
1512
1477
|
/* @__PURE__ */ literal("react"),
|
|
1513
1478
|
/* @__PURE__ */ literal("react-jsx"),
|
|
1514
|
-
|
|
1479
|
+
/* @__PURE__ */ strictObject({
|
|
1480
|
+
runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
|
|
1481
|
+
development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
|
|
1482
|
+
throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
|
|
1483
|
+
pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
|
|
1484
|
+
importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
|
|
1485
|
+
pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
|
|
1486
|
+
pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
|
|
1487
|
+
refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
|
|
1488
|
+
})
|
|
1515
1489
|
])),
|
|
1516
1490
|
target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
|
|
1517
1491
|
define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key:value,key2:value2)")),
|
|
1518
1492
|
inject: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ string()])]))), /* @__PURE__ */ description("Inject import statements on demand")),
|
|
1519
1493
|
dropLabels: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Remove labeled statements with these label names")),
|
|
1520
|
-
plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(
|
|
1494
|
+
plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1495
|
+
styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
|
|
1496
|
+
taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1497
|
+
})), /* @__PURE__ */ description("Third-party plugins to use"))
|
|
1521
1498
|
});
|
|
1522
|
-
isTypeTrue();
|
|
1523
1499
|
const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1524
1500
|
usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
|
|
1525
1501
|
pollInterval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Poll interval in milliseconds (only used when usePolling is true)")),
|
|
@@ -1539,7 +1515,6 @@ const WatcherOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1539
1515
|
clearScreen: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to clear the screen when a rebuild is triggered")),
|
|
1540
1516
|
onInvalidate: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(vFunction()), /* @__PURE__ */ description("An optional function that will be called immediately every time a module changes that is part of the build."))
|
|
1541
1517
|
});
|
|
1542
|
-
isTypeTrue();
|
|
1543
1518
|
const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1544
1519
|
circularDependency: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting circular dependency")),
|
|
1545
1520
|
eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
|
|
@@ -1562,53 +1537,39 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1562
1537
|
unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
|
|
1563
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"))
|
|
1564
1539
|
});
|
|
1565
|
-
isTypeTrue();
|
|
1566
|
-
const CompressOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
|
|
1567
|
-
function: /* @__PURE__ */ boolean(),
|
|
1568
|
-
class: /* @__PURE__ */ boolean()
|
|
1569
|
-
});
|
|
1570
|
-
isTypeTrue();
|
|
1571
|
-
const CompressTreeshakeOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1572
|
-
annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1573
|
-
manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1574
|
-
propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
|
|
1575
|
-
propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1576
|
-
unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1577
|
-
invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1578
|
-
});
|
|
1579
|
-
isTypeTrue();
|
|
1580
|
-
const CompressOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1581
|
-
target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
|
|
1582
|
-
dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1583
|
-
dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1584
|
-
keepNames: /* @__PURE__ */ optional(CompressOptionsKeepNamesSchema),
|
|
1585
|
-
unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
|
|
1586
|
-
joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1587
|
-
sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1588
|
-
dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1589
|
-
maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1590
|
-
treeshake: /* @__PURE__ */ optional(CompressTreeshakeOptionsSchema)
|
|
1591
|
-
});
|
|
1592
|
-
isTypeTrue();
|
|
1593
|
-
const MangleOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
|
|
1594
|
-
function: /* @__PURE__ */ boolean(),
|
|
1595
|
-
class: /* @__PURE__ */ boolean()
|
|
1596
|
-
});
|
|
1597
|
-
isTypeTrue();
|
|
1598
|
-
const MangleOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1599
|
-
toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1600
|
-
keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), MangleOptionsKeepNamesSchema])),
|
|
1601
|
-
debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1602
|
-
});
|
|
1603
|
-
isTypeTrue();
|
|
1604
|
-
const CodegenOptionsSchema = /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) });
|
|
1605
|
-
isTypeTrue();
|
|
1606
1540
|
const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1607
|
-
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(),
|
|
1608
|
-
|
|
1609
|
-
|
|
1541
|
+
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1542
|
+
target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
|
|
1543
|
+
dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1544
|
+
dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1545
|
+
keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
|
|
1546
|
+
function: /* @__PURE__ */ boolean(),
|
|
1547
|
+
class: /* @__PURE__ */ boolean()
|
|
1548
|
+
})),
|
|
1549
|
+
unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
|
|
1550
|
+
joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1551
|
+
sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1552
|
+
dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1553
|
+
maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1554
|
+
treeshake: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
|
|
1555
|
+
annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1556
|
+
manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1557
|
+
propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
|
|
1558
|
+
propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1559
|
+
unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1560
|
+
invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1561
|
+
}))
|
|
1562
|
+
})])),
|
|
1563
|
+
mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1564
|
+
toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1565
|
+
keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1566
|
+
function: /* @__PURE__ */ boolean(),
|
|
1567
|
+
class: /* @__PURE__ */ boolean()
|
|
1568
|
+
})])),
|
|
1569
|
+
debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1570
|
+
})])),
|
|
1571
|
+
codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) })]))
|
|
1610
1572
|
});
|
|
1611
|
-
isTypeTrue();
|
|
1612
1573
|
const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1613
1574
|
alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
|
|
1614
1575
|
/* @__PURE__ */ literal(false),
|
|
@@ -1626,7 +1587,6 @@ const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1626
1587
|
symlinks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1627
1588
|
tsconfigFilename: /* @__PURE__ */ optional(/* @__PURE__ */ string())
|
|
1628
1589
|
});
|
|
1629
|
-
isTypeTrue();
|
|
1630
1590
|
const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1631
1591
|
moduleSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
|
|
1632
1592
|
annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -1637,7 +1597,6 @@ const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1637
1597
|
propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")])),
|
|
1638
1598
|
propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")]))
|
|
1639
1599
|
});
|
|
1640
|
-
isTypeTrue();
|
|
1641
1600
|
const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1642
1601
|
inlineConst: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1643
1602
|
mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("all"), /* @__PURE__ */ literal("smart")])),
|
|
@@ -1645,24 +1604,19 @@ const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1645
1604
|
})])), /* @__PURE__ */ description("Enable crossmodule constant inlining")),
|
|
1646
1605
|
pifeForModuleWrappers: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use PIFE pattern for module wrappers"))
|
|
1647
1606
|
});
|
|
1648
|
-
isTypeTrue();
|
|
1649
1607
|
const LogOrStringHandlerSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([LogLevelWithErrorSchema, RollupLogWithStringSchema])));
|
|
1650
|
-
isTypeTrue();
|
|
1651
1608
|
const OnLogSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
|
|
1652
1609
|
LogLevelSchema,
|
|
1653
1610
|
RollupLogSchema,
|
|
1654
1611
|
LogOrStringHandlerSchema
|
|
1655
1612
|
])));
|
|
1656
|
-
isTypeTrue();
|
|
1657
1613
|
const OnwarnSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([RollupLogSchema, /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ union([RollupLogWithStringSchema, /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ returns(RollupLogWithStringSchema))])])))])));
|
|
1658
|
-
isTypeTrue();
|
|
1659
1614
|
const DevModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1660
1615
|
port: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1661
1616
|
host: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1662
1617
|
implement: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1663
1618
|
lazy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1664
1619
|
})]);
|
|
1665
|
-
isTypeTrue();
|
|
1666
1620
|
const InputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1667
1621
|
input: /* @__PURE__ */ optional(InputOptionSchema),
|
|
1668
1622
|
plugins: /* @__PURE__ */ optional(/* @__PURE__ */ custom(() => true)),
|
|
@@ -1715,7 +1669,6 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1715
1669
|
context: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("The value of `this` at the top level of each module.")),
|
|
1716
1670
|
tsconfig: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ string()])), /* @__PURE__ */ description("Path to the tsconfig.json file."))
|
|
1717
1671
|
});
|
|
1718
|
-
isTypeTrue();
|
|
1719
1672
|
const InputCliOverrideSchema = /* @__PURE__ */ strictObject({
|
|
1720
1673
|
input: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Entry file")),
|
|
1721
1674
|
external: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
|
|
@@ -1744,32 +1697,22 @@ const ModuleFormatSchema = /* @__PURE__ */ union([
|
|
|
1744
1697
|
/* @__PURE__ */ literal("iife"),
|
|
1745
1698
|
/* @__PURE__ */ literal("umd")
|
|
1746
1699
|
]);
|
|
1747
|
-
isTypeTrue();
|
|
1748
1700
|
const AddonFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returnsAsync(/* @__PURE__ */ unionAsync([/* @__PURE__ */ string(), /* @__PURE__ */ pipeAsync(/* @__PURE__ */ promise(), /* @__PURE__ */ awaitAsync(), /* @__PURE__ */ string())])));
|
|
1749
|
-
isTypeTrue();
|
|
1750
1701
|
const ChunkFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1751
|
-
isTypeTrue();
|
|
1752
1702
|
const ChunkFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), ChunkFileNamesFunctionSchema]);
|
|
1753
1703
|
const AssetFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1754
|
-
isTypeTrue();
|
|
1755
1704
|
const AssetFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), AssetFileNamesFunctionSchema]);
|
|
1756
1705
|
const SanitizeFileNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1757
|
-
isTypeTrue();
|
|
1758
1706
|
const SanitizeFileNameSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), SanitizeFileNameFunctionSchema]);
|
|
1759
1707
|
const GlobalsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1760
|
-
isTypeTrue();
|
|
1761
1708
|
const PathsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1762
|
-
isTypeTrue();
|
|
1763
1709
|
const ManualChunksFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
|
|
1764
|
-
isTypeTrue();
|
|
1765
1710
|
const AdvancedChunksNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
|
|
1766
|
-
isTypeTrue();
|
|
1767
1711
|
const AdvancedChunksTestFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ union([
|
|
1768
1712
|
/* @__PURE__ */ boolean(),
|
|
1769
1713
|
/* @__PURE__ */ void_(),
|
|
1770
1714
|
/* @__PURE__ */ undefined_()
|
|
1771
1715
|
])));
|
|
1772
|
-
isTypeTrue();
|
|
1773
1716
|
const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
|
|
1774
1717
|
includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1775
1718
|
minSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
@@ -1791,15 +1734,11 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
|
|
|
1791
1734
|
tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
|
|
1792
1735
|
})))
|
|
1793
1736
|
});
|
|
1794
|
-
isTypeTrue();
|
|
1795
|
-
const GeneratedCodePresetSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")]);
|
|
1796
|
-
isTypeTrue();
|
|
1797
1737
|
const GeneratedCodeOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1798
1738
|
symbols: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to use Symbol.toStringTag for namespace objects")),
|
|
1799
|
-
preset: /* @__PURE__ */ optional(
|
|
1739
|
+
preset: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")])),
|
|
1800
1740
|
profilerNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to add readable names to internal variables for profiling purposes"))
|
|
1801
1741
|
});
|
|
1802
|
-
isTypeTrue();
|
|
1803
1742
|
const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1804
1743
|
dir: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Output directory, defaults to `dist` if `file` is not set")),
|
|
1805
1744
|
file: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Single output file")),
|
|
@@ -1875,7 +1814,6 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1875
1814
|
strictExecutionOrder: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Lets modules be executed in the order they are declared.")),
|
|
1876
1815
|
strict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("auto")])), /* @__PURE__ */ description("Whether to always output `\"use strict\"` directive in non-ES module outputs."))
|
|
1877
1816
|
});
|
|
1878
|
-
isTypeTrue();
|
|
1879
1817
|
const getAddonDescription = (placement, wrapper) => {
|
|
1880
1818
|
return `Code to insert the ${styleText$1("bold", placement)} of the bundled file (${styleText$1("bold", wrapper)} the wrapper function)`;
|
|
1881
1819
|
};
|
|
@@ -2768,7 +2706,7 @@ function n(e) {
|
|
|
2768
2706
|
return e ? e !== "false" : false;
|
|
2769
2707
|
}
|
|
2770
2708
|
const I = globalThis.process?.platform || "", T = n(o.CI) || l.ci !== false, a = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY), g = n(o.DEBUG), R = t === "test" || n(o.TEST);
|
|
2771
|
-
|
|
2709
|
+
o.MINIMAL;
|
|
2772
2710
|
const A = /^win/i.test(I);
|
|
2773
2711
|
!n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM);
|
|
2774
2712
|
const C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
|
|
2
|
-
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
2
|
+
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-CwgInDkH.mjs";
|
|
3
3
|
import { h as arraify } from "./composable-filters-B2ByPP8y.mjs";
|
|
4
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
4
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-DTZNpSde.mjs";
|
|
5
5
|
import { t as aggregateBindingErrorsIntoJsError } from "./error-CQ6njWsV.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-Wb6U5UzX.js";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-D81WVTGZ.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.128.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.128.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.128.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
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-CaVxb0SV.mjs";
|
|
2
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-kP3ISMFT.mjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.128.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-CSnBnIDb.mjs";
|
|
2
2
|
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-Cwoo4h_o.mjs";
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.128.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.128.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.128.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.18",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundler",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"registry": "https://registry.npmjs.org/"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@emnapi/core": "
|
|
57
|
-
"@emnapi/runtime": "
|
|
58
|
-
"@napi-rs/wasm-runtime": "^1.1.
|
|
56
|
+
"@emnapi/core": "1.10.0",
|
|
57
|
+
"@emnapi/runtime": "1.10.0",
|
|
58
|
+
"@napi-rs/wasm-runtime": "^1.1.4"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "pnpm run build:debug",
|