@vercube/core 0.0.45 → 0.0.46
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 +74 -31
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
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.0-rc.9/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts
|
|
24
|
+
//#region ../../node_modules/.pnpm/rolldown@1.0.0-rc.12_@emnapi+core@1.9.0_@emnapi+runtime@1.9.0/node_modules/rolldown/dist/shared/logging-C6h4g8dA.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.122.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 {
|
|
@@ -1357,20 +1357,20 @@ interface JSDocUnknownType extends Span {
|
|
|
1357
1357
|
type: "TSJSDocUnknownType";
|
|
1358
1358
|
parent?: Node;
|
|
1359
1359
|
}
|
|
1360
|
-
type
|
|
1361
|
-
type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "+" | "-" | "*" | "/" | "%" | "**" | "<<" | ">>" | ">>>" | "|" | "^" | "&" | "in" | "instanceof";
|
|
1362
|
-
type LogicalOperator = "||" | "&&" | "??";
|
|
1363
|
-
type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
|
|
1364
|
-
type UpdateOperator = "++" | "--";
|
|
1360
|
+
type ModuleKind = "script" | "module" | "commonjs";
|
|
1365
1361
|
interface Span {
|
|
1366
1362
|
start: number;
|
|
1367
1363
|
end: number;
|
|
1368
1364
|
range?: [number, number];
|
|
1369
1365
|
}
|
|
1370
|
-
type
|
|
1366
|
+
type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??=";
|
|
1367
|
+
type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "+" | "-" | "*" | "/" | "%" | "**" | "<<" | ">>" | ">>>" | "|" | "^" | "&" | "in" | "instanceof";
|
|
1368
|
+
type LogicalOperator = "||" | "&&" | "??";
|
|
1369
|
+
type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
|
|
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.0-rc.9/node_modules/rolldown/dist/shared/binding-
|
|
1373
|
+
//#region ../../node_modules/.pnpm/rolldown@1.0.0-rc.12_@emnapi+core@1.9.0_@emnapi+runtime@1.9.0/node_modules/rolldown/dist/shared/binding-CYVfiOV3.d.mts
|
|
1374
1374
|
interface CodegenOptions {
|
|
1375
1375
|
/**
|
|
1376
1376
|
* Remove whitespace.
|
|
@@ -2036,15 +2036,25 @@ declare class BindingDecodedMap {
|
|
|
2036
2036
|
* Each line is an array of segments, where each segment is [generatedColumn, sourceIndex, originalLine, originalColumn, nameIndex?].
|
|
2037
2037
|
*/
|
|
2038
2038
|
get mappings(): Array<Array<Array<number>>>;
|
|
2039
|
+
/** The list of source indices that should be excluded from debugging. */
|
|
2040
|
+
get x_google_ignoreList(): Array<number> | null;
|
|
2039
2041
|
}
|
|
2040
|
-
declare class BindingMagicString
|
|
2042
|
+
declare class BindingMagicString {
|
|
2041
2043
|
constructor(source: string, options?: BindingMagicStringOptions | undefined | null);
|
|
2042
2044
|
get original(): string;
|
|
2043
2045
|
get filename(): string | null;
|
|
2046
|
+
get indentExclusionRanges(): Array<Array<number>> | Array<number> | null;
|
|
2047
|
+
get ignoreList(): boolean;
|
|
2044
2048
|
get offset(): number;
|
|
2045
2049
|
set offset(offset: number);
|
|
2046
2050
|
replace(from: string, to: string): this;
|
|
2047
2051
|
replaceAll(from: string, to: string): this;
|
|
2052
|
+
/**
|
|
2053
|
+
* Returns the UTF-16 offset past the last match, or -1 if no match was found.
|
|
2054
|
+
* The JS wrapper uses this to update `lastIndex` on the caller's RegExp.
|
|
2055
|
+
* Global/sticky behavior is derived from the regex's own flags.
|
|
2056
|
+
*/
|
|
2057
|
+
replaceRegex(from: RegExp, to: string): number;
|
|
2048
2058
|
prepend(content: string): this;
|
|
2049
2059
|
append(content: string): this;
|
|
2050
2060
|
prependLeft(index: number, content: string): this;
|
|
@@ -2065,7 +2075,7 @@ declare class BindingMagicString$1 {
|
|
|
2065
2075
|
* Returns `this` for method chaining.
|
|
2066
2076
|
*/
|
|
2067
2077
|
move(start: number, end: number, index: number): this;
|
|
2068
|
-
indent(indentor?: string | undefined | null): this;
|
|
2078
|
+
indent(indentor?: string | undefined | null, options?: BindingIndentOptions | undefined | null): this;
|
|
2069
2079
|
/** Trims whitespace or specified characters from the start and end. */
|
|
2070
2080
|
trim(charType?: string | undefined | null): this;
|
|
2071
2081
|
/** Trims whitespace or specified characters from the start. */
|
|
@@ -2080,13 +2090,15 @@ declare class BindingMagicString$1 {
|
|
|
2080
2090
|
*/
|
|
2081
2091
|
insert(index: number, content: string): void;
|
|
2082
2092
|
/** Returns a clone of the MagicString instance. */
|
|
2083
|
-
clone(): BindingMagicString
|
|
2093
|
+
clone(): BindingMagicString;
|
|
2084
2094
|
/** Returns the last character of the generated string, or an empty string if empty. */
|
|
2085
2095
|
lastChar(): string;
|
|
2086
2096
|
/** Returns the content after the last newline in the generated string. */
|
|
2087
2097
|
lastLine(): string;
|
|
2098
|
+
/** Returns the guessed indentation string, or `\t` if none is found. */
|
|
2099
|
+
getIndentString(): string;
|
|
2088
2100
|
/** Returns a clone with content outside the specified range removed. */
|
|
2089
|
-
snip(start: number, end: number): BindingMagicString
|
|
2101
|
+
snip(start: number, end: number): BindingMagicString;
|
|
2090
2102
|
/**
|
|
2091
2103
|
* Resets the portion of the string from `start` to `end` to its original content.
|
|
2092
2104
|
* This undoes any modifications made to that range.
|
|
@@ -2094,8 +2106,12 @@ declare class BindingMagicString$1 {
|
|
|
2094
2106
|
*/
|
|
2095
2107
|
reset(start: number, end: number): this;
|
|
2096
2108
|
/**
|
|
2097
|
-
* Returns the content between the specified
|
|
2109
|
+
* Returns the content between the specified UTF-16 code unit positions (JS string indices).
|
|
2098
2110
|
* Supports negative indices (counting from the end).
|
|
2111
|
+
*
|
|
2112
|
+
* When an index falls in the middle of a surrogate pair, the lone surrogate is
|
|
2113
|
+
* included in the result (matching the original magic-string / JS behavior).
|
|
2114
|
+
* This is done by returning a UTF-16 encoded JS string via `napi_create_string_utf16`.
|
|
2099
2115
|
*/
|
|
2100
2116
|
slice(start?: number | undefined | null, end?: number | undefined | null): string;
|
|
2101
2117
|
/**
|
|
@@ -2139,6 +2155,8 @@ declare class BindingSourceMap {
|
|
|
2139
2155
|
get names(): Array<string>;
|
|
2140
2156
|
/** The VLQ-encoded mappings string. */
|
|
2141
2157
|
get mappings(): string;
|
|
2158
|
+
/** The list of source indices that should be excluded from debugging. */
|
|
2159
|
+
get x_google_ignoreList(): Array<number> | null;
|
|
2142
2160
|
/** Returns the source map as a JSON string. */
|
|
2143
2161
|
toString(): string;
|
|
2144
2162
|
/** Returns the source map as a base64-encoded data URL. */
|
|
@@ -2148,7 +2166,7 @@ declare class BindingSourceMap {
|
|
|
2148
2166
|
* Minimal wrapper around a `BundleHandle` for watcher events.
|
|
2149
2167
|
* This is returned from watcher event data to allow calling `result.close()`.
|
|
2150
2168
|
*/
|
|
2151
|
-
type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post';
|
|
2169
|
+
type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post' | 'builtin:oxc-runtime';
|
|
2152
2170
|
interface BindingHookResolveIdExtraArgs {
|
|
2153
2171
|
custom?: number;
|
|
2154
2172
|
isEntry: boolean;
|
|
@@ -2163,9 +2181,14 @@ interface BindingHookResolveIdExtraArgs {
|
|
|
2163
2181
|
*/
|
|
2164
2182
|
kind: 'import-statement' | 'dynamic-import' | 'require-call' | 'import-rule' | 'url-token' | 'new-url' | 'hot-accept';
|
|
2165
2183
|
}
|
|
2184
|
+
interface BindingIndentOptions {
|
|
2185
|
+
exclude?: Array<Array<number>> | Array<number>;
|
|
2186
|
+
}
|
|
2166
2187
|
interface BindingMagicStringOptions {
|
|
2167
2188
|
filename?: string;
|
|
2168
2189
|
offset?: number;
|
|
2190
|
+
indentExclusionRanges?: Array<Array<number>> | Array<number>;
|
|
2191
|
+
ignoreList?: boolean;
|
|
2169
2192
|
}
|
|
2170
2193
|
interface BindingModules {
|
|
2171
2194
|
values: Array<BindingRenderedModule>;
|
|
@@ -2226,12 +2249,11 @@ interface PreRenderedChunk {
|
|
|
2226
2249
|
/** Exported variable names from this chunk. */
|
|
2227
2250
|
exports: Array<string>;
|
|
2228
2251
|
}
|
|
2229
|
-
/** @hidden This is only expected to be used by Vite */
|
|
2230
2252
|
interface ViteImportGlobMeta {
|
|
2231
2253
|
isSubImportsPattern?: boolean;
|
|
2232
2254
|
} //#endregion
|
|
2233
2255
|
//#endregion
|
|
2234
|
-
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-rc.
|
|
2256
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-rc.12/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts
|
|
2235
2257
|
type StringOrRegExp$1 = string | RegExp;
|
|
2236
2258
|
type PluginModuleType = 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'base64' | 'dataurl' | 'binary' | 'empty' | (string & {});
|
|
2237
2259
|
type FilterExpression = And | Or | Not | Id | ImporterId | ModuleType$1 | Code | Query;
|
|
@@ -2293,7 +2315,7 @@ declare class Exclude$1 {
|
|
|
2293
2315
|
constructor(expr: FilterExpression);
|
|
2294
2316
|
}
|
|
2295
2317
|
//#endregion
|
|
2296
|
-
//#region ../../node_modules/.pnpm/rolldown@1.0.0-rc.9/node_modules/rolldown/dist/shared/define-config-
|
|
2318
|
+
//#region ../../node_modules/.pnpm/rolldown@1.0.0-rc.12_@emnapi+core@1.9.0_@emnapi+runtime@1.9.0/node_modules/rolldown/dist/shared/define-config-BkRKRADp.d.mts
|
|
2297
2319
|
//#region src/types/misc.d.ts
|
|
2298
2320
|
/** @inline */
|
|
2299
2321
|
type SourcemapPathTransformOption = (relativeSourcePath: string, sourcemapPath: string) => string;
|
|
@@ -2742,6 +2764,16 @@ interface OutputOptions {
|
|
|
2742
2764
|
*/
|
|
2743
2765
|
sourcemapPathTransform?: SourcemapPathTransformOption;
|
|
2744
2766
|
/**
|
|
2767
|
+
* Whether to exclude the original source code from sourcemaps.
|
|
2768
|
+
*
|
|
2769
|
+
* When `true`, the `sourcesContent` field is omitted from the generated sourcemap,
|
|
2770
|
+
* reducing the sourcemap file size. The sourcemap will still contain source file paths
|
|
2771
|
+
* and mappings, so debugging works if the original files are available.
|
|
2772
|
+
*
|
|
2773
|
+
* @default false
|
|
2774
|
+
*/
|
|
2775
|
+
sourcemapExcludeSources?: boolean;
|
|
2776
|
+
/**
|
|
2745
2777
|
* A string to prepend to the bundle before {@linkcode Plugin.renderChunk | renderChunk} hook.
|
|
2746
2778
|
*
|
|
2747
2779
|
* See {@linkcode intro | output.intro}, {@linkcode postBanner | output.postBanner} as well.
|
|
@@ -3438,14 +3470,23 @@ type CodeSplittingOptions = {
|
|
|
3438
3470
|
*/
|
|
3439
3471
|
//#endregion
|
|
3440
3472
|
//#region src/binding-magic-string.d.ts
|
|
3441
|
-
interface
|
|
3473
|
+
interface RolldownMagicString extends BindingMagicString {
|
|
3442
3474
|
readonly isRolldownMagicString: true;
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3475
|
+
/** Accepts a string or RegExp pattern. RegExp supports `$&`, `$$`, and `$N` substitutions. */
|
|
3476
|
+
replace(from: string | RegExp, to: string): this;
|
|
3477
|
+
/** Accepts a string or RegExp pattern. RegExp must have the global (`g`) flag. */
|
|
3478
|
+
replaceAll(from: string | RegExp, to: string): this;
|
|
3479
|
+
}
|
|
3480
|
+
type RolldownMagicStringConstructor = Omit<typeof BindingMagicString, "prototype"> & {
|
|
3481
|
+
new (...args: ConstructorParameters<typeof BindingMagicString>): RolldownMagicString;
|
|
3482
|
+
prototype: RolldownMagicString;
|
|
3447
3483
|
};
|
|
3448
|
-
|
|
3484
|
+
/**
|
|
3485
|
+
* A native MagicString implementation powered by Rust.
|
|
3486
|
+
*
|
|
3487
|
+
* @experimental
|
|
3488
|
+
*/
|
|
3489
|
+
declare const RolldownMagicString: RolldownMagicStringConstructor; //#endregion
|
|
3449
3490
|
//#region src/log/log-handler.d.ts
|
|
3450
3491
|
type LoggingFunction = (log: RolldownLog | string | (() => RolldownLog | string)) => void;
|
|
3451
3492
|
type LoggingFunctionWithPosition = (log: RolldownLog | string | (() => RolldownLog | string), pos?: number | {
|
|
@@ -3783,6 +3824,8 @@ interface NormalizedOutputOptions {
|
|
|
3783
3824
|
hashCharacters: "base64" | "base36" | "hex";
|
|
3784
3825
|
/** @see {@linkcode OutputOptions.sourcemapDebugIds | sourcemapDebugIds} */
|
|
3785
3826
|
sourcemapDebugIds: boolean;
|
|
3827
|
+
/** @see {@linkcode OutputOptions.sourcemapExcludeSources | sourcemapExcludeSources} */
|
|
3828
|
+
sourcemapExcludeSources: boolean;
|
|
3786
3829
|
/** @see {@linkcode OutputOptions.sourcemapIgnoreList | sourcemapIgnoreList} */
|
|
3787
3830
|
sourcemapIgnoreList: boolean | SourcemapIgnoreListOption | StringOrRegExp | undefined;
|
|
3788
3831
|
/** @see {@linkcode OutputOptions.sourcemapPathTransform | sourcemapPathTransform} */
|
|
@@ -3964,8 +4007,6 @@ interface PluginContextMeta {
|
|
|
3964
4007
|
}
|
|
3965
4008
|
/** @category Plugin APIs */
|
|
3966
4009
|
interface MinimalPluginContext {
|
|
3967
|
-
/** @hidden */
|
|
3968
|
-
readonly pluginName: string;
|
|
3969
4010
|
/**
|
|
3970
4011
|
* Similar to {@linkcode warn | this.warn}, except that it will also abort
|
|
3971
4012
|
* the bundling process with an error.
|
|
@@ -4617,7 +4658,7 @@ type ResolveIdResult = string | NullValue | false | PartialResolvedId;
|
|
|
4617
4658
|
type LoadResult = NullValue | string | SourceDescription;
|
|
4618
4659
|
/** @inline @category Plugin APIs */
|
|
4619
4660
|
type TransformResult = NullValue | string | (Omit<SourceDescription, "code"> & {
|
|
4620
|
-
code?: string |
|
|
4661
|
+
code?: string | RolldownMagicString;
|
|
4621
4662
|
});
|
|
4622
4663
|
type RenderedChunkMeta = {
|
|
4623
4664
|
/**
|
|
@@ -4630,7 +4671,7 @@ type RenderedChunkMeta = {
|
|
|
4630
4671
|
* Use this to perform string transformations with automatic source map support.
|
|
4631
4672
|
* This is only available when `experimental.nativeMagicString` is enabled.
|
|
4632
4673
|
*/
|
|
4633
|
-
magicString?:
|
|
4674
|
+
magicString?: RolldownMagicString;
|
|
4634
4675
|
};
|
|
4635
4676
|
/** @category Plugin APIs */
|
|
4636
4677
|
interface FunctionPluginHooks {
|
|
@@ -4737,7 +4778,7 @@ interface FunctionPluginHooks {
|
|
|
4737
4778
|
*/
|
|
4738
4779
|
[DEFINED_HOOK_NAMES.transform]: (this: TransformPluginContext, code: string, id: string, meta: BindingTransformHookExtraArgs & {
|
|
4739
4780
|
moduleType: ModuleType;
|
|
4740
|
-
magicString?:
|
|
4781
|
+
magicString?: RolldownMagicString;
|
|
4741
4782
|
ast?: Program;
|
|
4742
4783
|
}) => TransformResult;
|
|
4743
4784
|
/**
|
|
@@ -4790,8 +4831,8 @@ interface FunctionPluginHooks {
|
|
|
4790
4831
|
*
|
|
4791
4832
|
* @group Output Generation Hooks
|
|
4792
4833
|
*/
|
|
4793
|
-
[DEFINED_HOOK_NAMES.renderChunk]: (this: PluginContext, code: string, chunk: RenderedChunk, outputOptions: NormalizedOutputOptions, meta: RenderedChunkMeta) => NullValue | string |
|
|
4794
|
-
code: string |
|
|
4834
|
+
[DEFINED_HOOK_NAMES.renderChunk]: (this: PluginContext, code: string, chunk: RenderedChunk, outputOptions: NormalizedOutputOptions, meta: RenderedChunkMeta) => NullValue | string | RolldownMagicString | {
|
|
4835
|
+
code: string | RolldownMagicString;
|
|
4795
4836
|
map?: SourceMapInput;
|
|
4796
4837
|
};
|
|
4797
4838
|
/**
|
|
@@ -5643,6 +5684,8 @@ interface InputOptions {
|
|
|
5643
5684
|
*
|
|
5644
5685
|
* These options only take effect when running with the [`--watch`](/apis/cli#w-watch) flag, or using {@linkcode watch | watch()} API.
|
|
5645
5686
|
*
|
|
5687
|
+
*
|
|
5688
|
+
*
|
|
5646
5689
|
* @experimental
|
|
5647
5690
|
*/
|
|
5648
5691
|
watch?: WatcherOptions | false;
|
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.122.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);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.46",
|
|
4
4
|
"description": "Core module for Vercube framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"defu": "6.1.4",
|
|
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.13",
|
|
31
|
+
"@vercube/di": "0.0.46",
|
|
32
|
+
"@vercube/logger": "0.0.46"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"rolldown": "1.0.0-rc.
|
|
35
|
+
"rolldown": "1.0.0-rc.12",
|
|
36
36
|
"zod": "4.3.6"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|