@vercube/core 0.0.46 → 0.0.48
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/index.d.mts +138 -19
- package/dist/index.mjs +56 -1
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -21,7 +21,7 @@ declare class BasePlugin<T = unknown> {
|
|
|
21
21
|
use(app: App, options?: T): void | Promise<void>;
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
|
-
//#region ../../node_modules/.pnpm/rolldown@1.0.
|
|
24
|
+
//#region ../../node_modules/.pnpm/rolldown@1.0.2/node_modules/rolldown/dist/shared/logging-BSNejiLS.d.mts
|
|
25
25
|
//#region src/log/logging.d.ts
|
|
26
26
|
/** @inline */
|
|
27
27
|
type LogLevel = "info" | "debug" | "warn";
|
|
@@ -71,7 +71,7 @@ interface RolldownError extends RolldownLog {
|
|
|
71
71
|
}
|
|
72
72
|
type LogOrStringHandler = (level: LogLevelWithError, log: RolldownLogWithString) => void; //#endregion
|
|
73
73
|
//#endregion
|
|
74
|
-
//#region ../../node_modules/.pnpm/@oxc-project+types@0.
|
|
74
|
+
//#region ../../node_modules/.pnpm/@oxc-project+types@0.132.0/node_modules/@oxc-project/types/types.d.ts
|
|
75
75
|
// Auto-generated code, DO NOT EDIT DIRECTLY!
|
|
76
76
|
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/typescript.rs`.
|
|
77
77
|
interface Program extends Span {
|
|
@@ -1370,7 +1370,7 @@ type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
|
|
|
1370
1370
|
type UpdateOperator = "++" | "--";
|
|
1371
1371
|
type Node = Program | IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | ThisExpression | ArrayExpression | ObjectExpression | ObjectProperty | TemplateLiteral | TaggedTemplateExpression | TemplateElement | ComputedMemberExpression | StaticMemberExpression | PrivateFieldExpression | CallExpression | NewExpression | MetaProperty | SpreadElement | UpdateExpression | UnaryExpression | BinaryExpression | PrivateInExpression | LogicalExpression | ConditionalExpression | AssignmentExpression | ArrayAssignmentTarget | ObjectAssignmentTarget | AssignmentTargetRest | AssignmentTargetWithDefault | AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty | SequenceExpression | Super | AwaitExpression | ChainExpression | ParenthesizedExpression | Directive | Hashbang | BlockStatement | VariableDeclaration | VariableDeclarator | EmptyStatement | ExpressionStatement | IfStatement | DoWhileStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | ContinueStatement | BreakStatement | ReturnStatement | WithStatement | SwitchStatement | SwitchCase | LabeledStatement | ThrowStatement | TryStatement | CatchClause | DebuggerStatement | AssignmentPattern | ObjectPattern | BindingProperty | ArrayPattern | BindingRestElement | Function$1 | FunctionBody | ArrowFunctionExpression | YieldExpression | Class | ClassBody | MethodDefinition | PropertyDefinition | PrivateIdentifier | StaticBlock | AccessorProperty | ImportExpression | ImportDeclaration | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportAttribute | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration | ExportSpecifier | V8IntrinsicExpression | BooleanLiteral | NullLiteral | NumericLiteral | StringLiteral | BigIntLiteral | RegExpLiteral | JSXElement | JSXOpeningElement | JSXClosingElement | JSXFragment | JSXOpeningFragment | JSXClosingFragment | JSXNamespacedName | JSXMemberExpression | JSXExpressionContainer | JSXEmptyExpression | JSXAttribute | JSXSpreadAttribute | JSXIdentifier | JSXSpreadChild | JSXText | TSThisParameter | TSEnumDeclaration | TSEnumBody | TSEnumMember | TSTypeAnnotation | TSLiteralType | TSConditionalType | TSUnionType | TSIntersectionType | TSParenthesizedType | TSTypeOperator | TSArrayType | TSIndexedAccessType | TSTupleType | TSNamedTupleMember | TSOptionalType | TSRestType | TSAnyKeyword | TSStringKeyword | TSBooleanKeyword | TSNumberKeyword | TSNeverKeyword | TSIntrinsicKeyword | TSUnknownKeyword | TSNullKeyword | TSUndefinedKeyword | TSVoidKeyword | TSSymbolKeyword | TSThisType | TSObjectKeyword | TSBigIntKeyword | TSTypeReference | TSQualifiedName | TSTypeParameterInstantiation | TSTypeParameter | TSTypeParameterDeclaration | TSTypeAliasDeclaration | TSClassImplements | TSInterfaceDeclaration | TSInterfaceBody | TSPropertySignature | TSIndexSignature | TSCallSignatureDeclaration | TSMethodSignature | TSConstructSignatureDeclaration | TSIndexSignatureName | TSInterfaceHeritage | TSTypePredicate | TSModuleDeclaration | TSGlobalDeclaration | TSModuleBlock | TSTypeLiteral | TSInferType | TSTypeQuery | TSImportType | TSImportTypeQualifiedName | TSFunctionType | TSConstructorType | TSMappedType | TSTemplateLiteralType | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | Decorator | TSExportAssignment | TSNamespaceExportDeclaration | TSInstantiationExpression | JSDocNullableType | JSDocNonNullableType | JSDocUnknownType | ParamPattern;
|
|
1372
1372
|
//#endregion
|
|
1373
|
-
//#region ../../node_modules/.pnpm/rolldown@1.0.
|
|
1373
|
+
//#region ../../node_modules/.pnpm/rolldown@1.0.2/node_modules/rolldown/dist/shared/binding-DktDDYoY.d.mts
|
|
1374
1374
|
interface CodegenOptions {
|
|
1375
1375
|
/**
|
|
1376
1376
|
* Remove whitespace.
|
|
@@ -1522,6 +1522,15 @@ interface TreeShakeOptions {
|
|
|
1522
1522
|
* @default 'always'
|
|
1523
1523
|
*/
|
|
1524
1524
|
propertyReadSideEffects?: boolean | 'always';
|
|
1525
|
+
/**
|
|
1526
|
+
* Whether property write accesses (assignments to member expressions) have side effects.
|
|
1527
|
+
*
|
|
1528
|
+
* When false, assignments like `obj.prop = value` are considered side-effect-free
|
|
1529
|
+
* (assuming the object and value expressions themselves are side-effect-free).
|
|
1530
|
+
*
|
|
1531
|
+
* @default true
|
|
1532
|
+
*/
|
|
1533
|
+
propertyWriteSideEffects?: boolean;
|
|
1525
1534
|
/**
|
|
1526
1535
|
* Whether accessing a global variable has side effects.
|
|
1527
1536
|
*
|
|
@@ -1997,6 +2006,24 @@ interface TypeScriptOptions {
|
|
|
1997
2006
|
* Defaults to `false`.
|
|
1998
2007
|
*/
|
|
1999
2008
|
removeClassFieldsWithoutInitializer?: boolean;
|
|
2009
|
+
/**
|
|
2010
|
+
* When true, optimize const enums by inlining their values at usage sites
|
|
2011
|
+
* and removing the enum declaration.
|
|
2012
|
+
*
|
|
2013
|
+
* @default false
|
|
2014
|
+
*/
|
|
2015
|
+
optimizeConstEnums?: boolean;
|
|
2016
|
+
/**
|
|
2017
|
+
* When true, optimize regular (non-const) enums by inlining their member
|
|
2018
|
+
* accesses at usage sites when the member value is statically known.
|
|
2019
|
+
*
|
|
2020
|
+
* Non-exported enum declarations are also removed when all members are
|
|
2021
|
+
* evaluable and no references to the enum as a runtime value exist
|
|
2022
|
+
* (e.g., `console.log(Foo)`, `typeof Foo`, or passing the enum as an argument).
|
|
2023
|
+
*
|
|
2024
|
+
* @default false
|
|
2025
|
+
*/
|
|
2026
|
+
optimizeEnums?: boolean;
|
|
2000
2027
|
/**
|
|
2001
2028
|
* Also generate a `.d.ts` declaration file for TypeScript files.
|
|
2002
2029
|
*
|
|
@@ -2061,13 +2088,13 @@ declare class BindingMagicString {
|
|
|
2061
2088
|
prependRight(index: number, content: string): this;
|
|
2062
2089
|
appendLeft(index: number, content: string): this;
|
|
2063
2090
|
appendRight(index: number, content: string): this;
|
|
2064
|
-
overwrite(start: number, end: number, content: string): this;
|
|
2091
|
+
overwrite(start: number, end: number, content: string, options?: BindingOverwriteOptions | undefined | null): this;
|
|
2065
2092
|
toString(): string;
|
|
2066
2093
|
hasChanged(): boolean;
|
|
2067
2094
|
length(): number;
|
|
2068
2095
|
isEmpty(): boolean;
|
|
2069
2096
|
remove(start: number, end: number): this;
|
|
2070
|
-
update(start: number, end: number, content: string): this;
|
|
2097
|
+
update(start: number, end: number, content: string, options?: BindingUpdateOptions | undefined | null): this;
|
|
2071
2098
|
relocate(start: number, end: number, to: number): this;
|
|
2072
2099
|
/**
|
|
2073
2100
|
* Alias for `relocate` to match the original magic-string API.
|
|
@@ -2194,6 +2221,9 @@ interface BindingModules {
|
|
|
2194
2221
|
values: Array<BindingRenderedModule>;
|
|
2195
2222
|
keys: Array<string>;
|
|
2196
2223
|
}
|
|
2224
|
+
interface BindingOverwriteOptions {
|
|
2225
|
+
contentOnly?: boolean;
|
|
2226
|
+
}
|
|
2197
2227
|
interface BindingPluginContextResolveOptions {
|
|
2198
2228
|
/**
|
|
2199
2229
|
* - `import-statement`: `import { foo } from './lib.js';`
|
|
@@ -2227,6 +2257,9 @@ interface BindingSourceMapOptions {
|
|
|
2227
2257
|
interface BindingTransformHookExtraArgs {
|
|
2228
2258
|
moduleType: string;
|
|
2229
2259
|
}
|
|
2260
|
+
interface BindingUpdateOptions {
|
|
2261
|
+
overwrite?: boolean;
|
|
2262
|
+
}
|
|
2230
2263
|
interface BindingVitePluginCustom {
|
|
2231
2264
|
'vite:import-glob'?: ViteImportGlobMeta;
|
|
2232
2265
|
}
|
|
@@ -2253,7 +2286,7 @@ interface ViteImportGlobMeta {
|
|
|
2253
2286
|
isSubImportsPattern?: boolean;
|
|
2254
2287
|
} //#endregion
|
|
2255
2288
|
//#endregion
|
|
2256
|
-
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0
|
|
2289
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts
|
|
2257
2290
|
type StringOrRegExp$1 = string | RegExp;
|
|
2258
2291
|
type PluginModuleType = 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'base64' | 'dataurl' | 'binary' | 'empty' | (string & {});
|
|
2259
2292
|
type FilterExpression = And | Or | Not | Id | ImporterId | ModuleType$1 | Code | Query;
|
|
@@ -2315,7 +2348,7 @@ declare class Exclude$1 {
|
|
|
2315
2348
|
constructor(expr: FilterExpression);
|
|
2316
2349
|
}
|
|
2317
2350
|
//#endregion
|
|
2318
|
-
//#region ../../node_modules/.pnpm/rolldown@1.0.
|
|
2351
|
+
//#region ../../node_modules/.pnpm/rolldown@1.0.2/node_modules/rolldown/dist/shared/define-config-Bo24xyUK.d.mts
|
|
2319
2352
|
//#region src/types/misc.d.ts
|
|
2320
2353
|
/** @inline */
|
|
2321
2354
|
type SourcemapPathTransformOption = (relativeSourcePath: string, sourcemapPath: string) => string;
|
|
@@ -2461,8 +2494,21 @@ interface SourceMap {
|
|
|
2461
2494
|
}
|
|
2462
2495
|
/** @category Plugin APIs */
|
|
2463
2496
|
interface RenderedModule {
|
|
2497
|
+
/**
|
|
2498
|
+
* The rendered code of this module.
|
|
2499
|
+
*
|
|
2500
|
+
* The unused variables and functions are removed.
|
|
2501
|
+
*/
|
|
2464
2502
|
readonly code: string | null;
|
|
2503
|
+
/**
|
|
2504
|
+
* The length of the rendered code of this module.
|
|
2505
|
+
*/
|
|
2465
2506
|
renderedLength: number;
|
|
2507
|
+
/**
|
|
2508
|
+
* The list of exported names from this module.
|
|
2509
|
+
*
|
|
2510
|
+
* The names that are not used are not included.
|
|
2511
|
+
*/
|
|
2466
2512
|
renderedExports: string[];
|
|
2467
2513
|
}
|
|
2468
2514
|
/**
|
|
@@ -3147,8 +3193,6 @@ interface OutputOptions {
|
|
|
3147
3193
|
*
|
|
3148
3194
|
* When both `legalComments` and `comments.legal` are set, `comments.legal` takes priority.
|
|
3149
3195
|
*
|
|
3150
|
-
*
|
|
3151
|
-
*
|
|
3152
3196
|
* @default true
|
|
3153
3197
|
*/
|
|
3154
3198
|
comments?: boolean | CommentsOptions;
|
|
@@ -3192,9 +3236,18 @@ interface OutputOptions {
|
|
|
3192
3236
|
*/
|
|
3193
3237
|
preserveModulesRoot?: string;
|
|
3194
3238
|
/**
|
|
3195
|
-
* Whether to
|
|
3239
|
+
* Whether to convert top-level `let` and `const` declarations into `var` declarations.
|
|
3240
|
+
*
|
|
3241
|
+
* Enabling this option can improve runtime performance of the generated code in
|
|
3242
|
+
* certain environments by avoiding Temporal Dead Zone (TDZ) checks. Only declarations
|
|
3243
|
+
* in the module's top-level scope are rewritten — declarations inside nested scopes
|
|
3244
|
+
* (functions, blocks, etc.) are left as-is.
|
|
3196
3245
|
*
|
|
3197
|
-
*
|
|
3246
|
+
* Note:
|
|
3247
|
+
* - Top-level `class X {}` declarations are always emitted as `var X = class {}` so
|
|
3248
|
+
* rolldown can hoist them alongside other top-level bindings; this transform is
|
|
3249
|
+
* independent of `topLevelVar`.
|
|
3250
|
+
* - Top-level `function` declarations are never rewritten.
|
|
3198
3251
|
*
|
|
3199
3252
|
* @default false
|
|
3200
3253
|
*
|
|
@@ -3253,6 +3306,12 @@ interface OutputOptions {
|
|
|
3253
3306
|
*/
|
|
3254
3307
|
strict?: boolean | "auto";
|
|
3255
3308
|
}
|
|
3309
|
+
/**
|
|
3310
|
+
* Built-in module tag names computed by rolldown.
|
|
3311
|
+
*
|
|
3312
|
+
* - `'$initial'` — the module is statically imported by at least one user-defined entry point, or is part of its static dependency chain.
|
|
3313
|
+
*/
|
|
3314
|
+
type BuiltinModuleTag = "$initial";
|
|
3256
3315
|
type CodeSplittingGroup = {
|
|
3257
3316
|
/**
|
|
3258
3317
|
* Name of the group. It will be also used as the name of the chunk and replace the `[name]` placeholder in the {@linkcode OutputOptions.chunkFileNames | output.chunkFileNames} option.
|
|
@@ -3416,6 +3475,21 @@ type CodeSplittingGroup = {
|
|
|
3416
3475
|
* @default 0
|
|
3417
3476
|
*/
|
|
3418
3477
|
entriesAwareMergeThreshold?: number;
|
|
3478
|
+
/**
|
|
3479
|
+
* Filter modules by tags. Only modules that have **all** specified tags
|
|
3480
|
+
* are captured by this group. Combines with `test` and other filters —
|
|
3481
|
+
* a module must match all criteria.
|
|
3482
|
+
*
|
|
3483
|
+
* Built-in tags: `'$initial'` (module is statically imported by a user-defined entry or part of its dependency chain).
|
|
3484
|
+
*
|
|
3485
|
+
* @see {@link https://rolldown.rs/in-depth/manual-code-splitting | Manual Code Splitting}
|
|
3486
|
+
*
|
|
3487
|
+
* @example
|
|
3488
|
+
* ```js
|
|
3489
|
+
* { name: 'initial-deps', tags: ['$initial'], maxSize: 1048576 }
|
|
3490
|
+
* ```
|
|
3491
|
+
*/
|
|
3492
|
+
tags?: BuiltinModuleTag[];
|
|
3419
3493
|
};
|
|
3420
3494
|
/**
|
|
3421
3495
|
* Alias for {@linkcode CodeSplittingGroup}. Use this type for the `codeSplitting.groups` option.
|
|
@@ -3527,6 +3601,15 @@ interface ChecksOptions {
|
|
|
3527
3601
|
* */
|
|
3528
3602
|
missingNameOptionForIifeExport?: boolean;
|
|
3529
3603
|
/**
|
|
3604
|
+
* Whether to emit warnings when a `#__PURE__` / `@__PURE__` annotation has no effect due to its position.
|
|
3605
|
+
*
|
|
3606
|
+
* Annotations placed where they cannot annotate a call expression (e.g. before a non-call expression,
|
|
3607
|
+
* before a statement declaration, or between an identifier and `=` in a variable declarator) are
|
|
3608
|
+
* ignored by the parser. Matches Rollup's `INVALID_ANNOTATION` log code.
|
|
3609
|
+
* @default true
|
|
3610
|
+
* */
|
|
3611
|
+
invalidAnnotation?: boolean;
|
|
3612
|
+
/**
|
|
3530
3613
|
* Whether to emit warnings when the way to export values is ambiguous.
|
|
3531
3614
|
*
|
|
3532
3615
|
* See [`output.exports`](https://rolldown.rs/reference/OutputOptions.exports).
|
|
@@ -3634,6 +3717,15 @@ interface ChecksOptions {
|
|
|
3634
3717
|
* @default true
|
|
3635
3718
|
* */
|
|
3636
3719
|
ineffectiveDynamicImport?: boolean;
|
|
3720
|
+
/**
|
|
3721
|
+
* Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000).
|
|
3722
|
+
*
|
|
3723
|
+
* Such modules can significantly slow down module resolution. Consider using
|
|
3724
|
+
* [`@rolldown/plugin-transform-imports`](https://github.com/rolldown/plugins/tree/main/packages/transform-imports)
|
|
3725
|
+
* to rewrite barrel imports at the source level so the barrel file is never loaded.
|
|
3726
|
+
* @default true
|
|
3727
|
+
* */
|
|
3728
|
+
largeBarrelModules?: boolean;
|
|
3637
3729
|
} //#endregion
|
|
3638
3730
|
//#region src/options/transform-options.d.ts
|
|
3639
3731
|
interface TransformOptions extends Omit<TransformOptions$1, "sourceType" | "lang" | "cwd" | "sourcemap" | "define" | "inject" | "jsx"> {
|
|
@@ -4506,7 +4598,7 @@ interface ExistingRawSourceMap {
|
|
|
4506
4598
|
mappings: string;
|
|
4507
4599
|
names?: string[];
|
|
4508
4600
|
sources?: (string | null)[];
|
|
4509
|
-
sourcesContent?: (string | null)[];
|
|
4601
|
+
sourcesContent?: (string | null | undefined)[];
|
|
4510
4602
|
sourceRoot?: string;
|
|
4511
4603
|
version?: number;
|
|
4512
4604
|
x_google_ignoreList?: number[];
|
|
@@ -5034,6 +5126,28 @@ type InputOption = string | string[] | Record<string, string>;
|
|
|
5034
5126
|
type ExternalOptionFunction = (id: string, parentId: string | undefined, isResolved: boolean) => NullValue<boolean>;
|
|
5035
5127
|
/** @inline */
|
|
5036
5128
|
type ExternalOption = StringOrRegExp | StringOrRegExp[] | ExternalOptionFunction;
|
|
5129
|
+
interface ChunkOptimizationOptions {
|
|
5130
|
+
/**
|
|
5131
|
+
* Merge common chunks into existing entry chunks when it is safe.
|
|
5132
|
+
*
|
|
5133
|
+
* This can reduce the number of emitted chunks by moving shared/common modules
|
|
5134
|
+
* into an entry chunk that already depends on them. Rolldown only applies the
|
|
5135
|
+
* merge when it does not create a circular chunk dependency or change strict
|
|
5136
|
+
* entry export signatures. This pass also covers safe empty-facade cleanup.
|
|
5137
|
+
*
|
|
5138
|
+
* @default true
|
|
5139
|
+
*/
|
|
5140
|
+
mergeCommonChunks?: boolean;
|
|
5141
|
+
/**
|
|
5142
|
+
* Avoid emitting redundant chunk loads for dynamic entries.
|
|
5143
|
+
*
|
|
5144
|
+
* This pass can reduce dynamic-entry dependent chunks when the shared modules
|
|
5145
|
+
* are guaranteed to be loaded by every importer of that dynamic entry.
|
|
5146
|
+
*
|
|
5147
|
+
* @default true
|
|
5148
|
+
*/
|
|
5149
|
+
avoidRedundantChunkLoads?: boolean;
|
|
5150
|
+
}
|
|
5037
5151
|
type ModuleTypes = Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css" | "asset" | "copy">;
|
|
5038
5152
|
interface WatcherFileWatcherOptions {
|
|
5039
5153
|
/**
|
|
@@ -5637,18 +5751,18 @@ interface InputOptions {
|
|
|
5637
5751
|
*/
|
|
5638
5752
|
nativeMagicString?: boolean;
|
|
5639
5753
|
/**
|
|
5640
|
-
* Control
|
|
5641
|
-
* This optimization can reduce the number of generated chunks.
|
|
5754
|
+
* Control chunk optimizations.
|
|
5642
5755
|
*
|
|
5643
|
-
*
|
|
5644
|
-
*
|
|
5756
|
+
* `true` enables both common-chunk merging and redundant dynamic chunk-load avoidance.
|
|
5757
|
+
* `false` disables all chunk optimizations. Use the object form to control
|
|
5758
|
+
* `mergeCommonChunks` and `avoidRedundantChunkLoads` separately.
|
|
5645
5759
|
*
|
|
5646
|
-
*
|
|
5647
|
-
* as
|
|
5760
|
+
* These optimizations are automatically disabled when any module uses top-level await (TLA) or contains TLA dependencies,
|
|
5761
|
+
* as they could affect execution order guarantees.
|
|
5648
5762
|
*
|
|
5649
5763
|
* @default true
|
|
5650
5764
|
*/
|
|
5651
|
-
chunkOptimization?: boolean;
|
|
5765
|
+
chunkOptimization?: boolean | ChunkOptimizationOptions;
|
|
5652
5766
|
/**
|
|
5653
5767
|
* Control whether to enable lazy barrel optimization.
|
|
5654
5768
|
*
|
|
@@ -5703,6 +5817,11 @@ interface InputOptions {
|
|
|
5703
5817
|
makeAbsoluteExternalsRelative?: MakeAbsoluteExternalsRelative;
|
|
5704
5818
|
/**
|
|
5705
5819
|
* Devtools integration options.
|
|
5820
|
+
*
|
|
5821
|
+
* When enabled, Rolldown writes JSON-lines devtools output under
|
|
5822
|
+
* `node_modules/.rolldown/{session_id}/`. Consumers can parse the output with
|
|
5823
|
+
* `@rolldown/debug` after `await bundle.close()` resolves.
|
|
5824
|
+
*
|
|
5706
5825
|
* @experimental
|
|
5707
5826
|
*/
|
|
5708
5827
|
devtools?: {
|
package/dist/index.mjs
CHANGED
|
@@ -523,7 +523,7 @@ var RequestContext = class {
|
|
|
523
523
|
}
|
|
524
524
|
};
|
|
525
525
|
//#endregion
|
|
526
|
-
//#region \0@oxc-project+runtime@0.
|
|
526
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/decorate.js
|
|
527
527
|
function __decorate(decorators, target, key, desc) {
|
|
528
528
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
529
529
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -957,6 +957,7 @@ var HooksService = class {
|
|
|
957
957
|
const index = handlersOfType.findIndex((handler) => handler.id === eventId.__id);
|
|
958
958
|
if (index === -1) throw new Error("Trying to unbind event that was not bound.");
|
|
959
959
|
handlersOfType.splice(index, 1);
|
|
960
|
+
if (handlersOfType.length === 0) this.fHandlers.delete(type);
|
|
960
961
|
}
|
|
961
962
|
/**
|
|
962
963
|
* Triggers event, calling all listener callbacks. Will return Promise of number,
|
|
@@ -1515,26 +1516,80 @@ function createContainer(config) {
|
|
|
1515
1516
|
* This configuration serves as the base settings and can be overridden by user configuration.
|
|
1516
1517
|
*/
|
|
1517
1518
|
const defaultConfig = {
|
|
1519
|
+
/**
|
|
1520
|
+
* Default logging level set to 'debug' for detailed logging output
|
|
1521
|
+
*/
|
|
1518
1522
|
logLevel: "debug",
|
|
1523
|
+
/**
|
|
1524
|
+
* Production mode disabled by default
|
|
1525
|
+
*/
|
|
1519
1526
|
production: process.env.NODE_ENV === "production",
|
|
1527
|
+
/**
|
|
1528
|
+
* Development mode disabled by default
|
|
1529
|
+
*/
|
|
1520
1530
|
dev: process.env.NODE_ENV !== "production",
|
|
1531
|
+
/**
|
|
1532
|
+
* Build configuration settings
|
|
1533
|
+
*/
|
|
1521
1534
|
build: {
|
|
1535
|
+
/**
|
|
1536
|
+
* Default root directory for the application
|
|
1537
|
+
*/
|
|
1522
1538
|
root: process.cwd(),
|
|
1539
|
+
/**
|
|
1540
|
+
* Default entry point for the application
|
|
1541
|
+
*/
|
|
1523
1542
|
entry: "src/index.ts",
|
|
1543
|
+
/**
|
|
1544
|
+
* Default output settings
|
|
1545
|
+
*/
|
|
1524
1546
|
output: {
|
|
1547
|
+
/**
|
|
1548
|
+
* Main output directory for build artifacts
|
|
1549
|
+
*/
|
|
1525
1550
|
dir: "dist",
|
|
1551
|
+
/**
|
|
1552
|
+
* Directory for public assets
|
|
1553
|
+
*/
|
|
1526
1554
|
publicDir: "public"
|
|
1527
1555
|
},
|
|
1556
|
+
/**
|
|
1557
|
+
* Default bundler set to 'rolldown'
|
|
1558
|
+
*/
|
|
1528
1559
|
bundler: "rolldown"
|
|
1529
1560
|
},
|
|
1561
|
+
/**
|
|
1562
|
+
* Server configuration settings
|
|
1563
|
+
*/
|
|
1530
1564
|
server: {
|
|
1565
|
+
/**
|
|
1566
|
+
* Default runtime environment set to 'node'
|
|
1567
|
+
*/
|
|
1531
1568
|
runtime: "node",
|
|
1569
|
+
/**
|
|
1570
|
+
* Default host for local development
|
|
1571
|
+
*/
|
|
1532
1572
|
host: "localhost",
|
|
1573
|
+
/**
|
|
1574
|
+
* Default port for the development server
|
|
1575
|
+
*/
|
|
1533
1576
|
port: 3e3,
|
|
1577
|
+
/**
|
|
1578
|
+
* HTTPS disabled by default
|
|
1579
|
+
*/
|
|
1534
1580
|
https: false,
|
|
1581
|
+
/**
|
|
1582
|
+
* Default static server config
|
|
1583
|
+
*/
|
|
1535
1584
|
static: { dirs: ["public"] }
|
|
1536
1585
|
},
|
|
1586
|
+
/**
|
|
1587
|
+
* Empty experimental features configuration
|
|
1588
|
+
*/
|
|
1537
1589
|
experimental: {},
|
|
1590
|
+
/**
|
|
1591
|
+
* Empty runtime configuration
|
|
1592
|
+
*/
|
|
1538
1593
|
runtime: {}
|
|
1539
1594
|
};
|
|
1540
1595
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"description": "Core module for Vercube framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@standard-schema/spec": "1.1.0",
|
|
26
|
-
"c12": "4.0.0-beta.
|
|
27
|
-
"defu": "6.1.
|
|
26
|
+
"c12": "4.0.0-beta.5",
|
|
27
|
+
"defu": "6.1.7",
|
|
28
28
|
"pathe": "2.0.3",
|
|
29
29
|
"rou3": "0.8.1",
|
|
30
|
-
"srvx": "0.11.
|
|
31
|
-
"@vercube/di": "0.0.
|
|
32
|
-
"@vercube/logger": "0.0.
|
|
30
|
+
"srvx": "0.11.16",
|
|
31
|
+
"@vercube/di": "0.0.48",
|
|
32
|
+
"@vercube/logger": "0.0.48"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"rolldown": "1.0.
|
|
36
|
-
"zod": "4.3
|
|
35
|
+
"rolldown": "1.0.2",
|
|
36
|
+
"zod": "4.4.3"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|