@ait-co/devtools 0.1.109 → 0.1.110
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/README.en.md +13 -31
- package/README.md +13 -31
- package/dist/in-app/auto.d.ts.map +1 -1
- package/dist/in-app/auto.js +40 -3
- package/dist/in-app/auto.js.map +1 -1
- package/dist/in-app/index.d.ts.map +1 -1
- package/dist/in-app/index.js +39 -2
- package/dist/in-app/index.js.map +1 -1
- package/dist/mcp/cli.d.ts +4 -16
- package/dist/mcp/cli.d.ts.map +1 -1
- package/dist/mcp/cli.js +623 -678
- package/dist/mcp/cli.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +47 -59
- package/dist/mcp/server.js.map +1 -1
- package/dist/mock/index.d.ts.map +1 -1
- package/dist/mock/index.js +21 -2
- package/dist/mock/index.js.map +1 -1
- package/dist/panel/index.js +47 -32
- package/dist/panel/index.js.map +1 -1
- package/dist/{pool-CuVMzWGB.d.ts → pool-Bf6rQci4.d.ts} +206 -44
- package/dist/pool-Bf6rQci4.d.ts.map +1 -0
- package/dist/{qr-http-server-D4EAA7Il.js → qr-http-server-BJJt3ush.js} +8 -17
- package/dist/qr-http-server-BJJt3ush.js.map +1 -0
- package/dist/{qr-http-server-A9vld8r7.cjs → qr-http-server-BVS-HZjU.cjs} +8 -17
- package/dist/qr-http-server-BVS-HZjU.cjs.map +1 -0
- package/dist/{qr-http-server-Dj3Z0NHi.cjs → qr-http-server-C1T4RNbq.cjs} +8 -17
- package/dist/qr-http-server-C1T4RNbq.cjs.map +1 -0
- package/dist/{qr-http-server-HzdCLU8s.js → qr-http-server-Cs93vEPH.js} +8 -17
- package/dist/qr-http-server-Cs93vEPH.js.map +1 -0
- package/dist/test-runner/config.d.ts +1 -1
- package/dist/test-runner/pool.d.ts +1 -1
- package/dist/{tunnel-BjJROkcj.js → tunnel-Cpn3mA4u.js} +3 -3
- package/dist/tunnel-Cpn3mA4u.js.map +1 -0
- package/dist/{tunnel-d_G9AIFn.cjs → tunnel-Dj8Kf2QS.cjs} +3 -3
- package/dist/tunnel-Dj8Kf2QS.cjs.map +1 -0
- package/dist/unplugin/index.cjs +1 -1
- package/dist/unplugin/index.d.cts +196 -34
- package/dist/unplugin/index.d.cts.map +1 -1
- package/dist/unplugin/index.d.ts +196 -34
- package/dist/unplugin/index.d.ts.map +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/unplugin/tunnel.cjs +2 -2
- package/dist/unplugin/tunnel.cjs.map +1 -1
- package/dist/unplugin/tunnel.d.cts +1 -1
- package/dist/unplugin/tunnel.d.ts +1 -1
- package/dist/unplugin/tunnel.js +2 -2
- package/dist/unplugin/tunnel.js.map +1 -1
- package/package.json +14 -14
- package/dist/pool-CuVMzWGB.d.ts.map +0 -1
- package/dist/qr-http-server-A9vld8r7.cjs.map +0 -1
- package/dist/qr-http-server-D4EAA7Il.js.map +0 -1
- package/dist/qr-http-server-Dj3Z0NHi.cjs.map +0 -1
- package/dist/qr-http-server-HzdCLU8s.js.map +0 -1
- package/dist/tunnel-BjJROkcj.js.map +0 -1
- package/dist/tunnel-d_G9AIFn.cjs.map +0 -1
package/dist/unplugin/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import SassEmbedded from "sass-embedded";
|
|
|
18
18
|
import Less from "less";
|
|
19
19
|
import Stylus from "stylus";
|
|
20
20
|
|
|
21
|
-
//#region node_modules/.pnpm/vite@8.0.
|
|
21
|
+
//#region node_modules/.pnpm/vite@8.0.16_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_terser@5.46.1_tsx@4.22.4_yaml@2.8.3/node_modules/vite/types/hmrPayload.d.ts
|
|
22
22
|
type HotPayload = ConnectedPayload | PingPayload | UpdatePayload | FullReloadPayload | CustomPayload | ErrorPayload | PrunePayload;
|
|
23
23
|
interface ConnectedPayload {
|
|
24
24
|
type: 'connected';
|
|
@@ -83,7 +83,7 @@ interface ErrorPayload {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
//#endregion
|
|
86
|
-
//#region node_modules/.pnpm/vite@8.0.
|
|
86
|
+
//#region node_modules/.pnpm/vite@8.0.16_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_terser@5.46.1_tsx@4.22.4_yaml@2.8.3/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts
|
|
87
87
|
//#region src/shared/invokeMethods.d.ts
|
|
88
88
|
interface FetchFunctionOptions {
|
|
89
89
|
cached?: boolean;
|
|
@@ -136,7 +136,7 @@ interface ViteFetchResult {
|
|
|
136
136
|
invalidate: boolean;
|
|
137
137
|
}
|
|
138
138
|
//#endregion
|
|
139
|
-
//#region node_modules/.pnpm/vite@8.0.
|
|
139
|
+
//#region node_modules/.pnpm/vite@8.0.16_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_terser@5.46.1_tsx@4.22.4_yaml@2.8.3/node_modules/vite/types/customEvent.d.ts
|
|
140
140
|
interface CustomEventMap {
|
|
141
141
|
// client events
|
|
142
142
|
'vite:beforeUpdate': UpdatePayload;
|
|
@@ -152,6 +152,7 @@ interface CustomEventMap {
|
|
|
152
152
|
/** @internal */
|
|
153
153
|
'vite:module-loaded': {
|
|
154
154
|
modules: string[];
|
|
155
|
+
clientId: string;
|
|
155
156
|
}; // server events
|
|
156
157
|
'vite:client:connect': undefined;
|
|
157
158
|
'vite:client:disconnect': undefined;
|
|
@@ -197,7 +198,7 @@ type ForwardConsolePayload = {
|
|
|
197
198
|
*/
|
|
198
199
|
type InferCustomEventPayload<T extends string> = T extends keyof CustomEventMap ? CustomEventMap[T] : any;
|
|
199
200
|
//#endregion
|
|
200
|
-
//#region node_modules/.pnpm/rolldown@1.0.
|
|
201
|
+
//#region node_modules/.pnpm/rolldown@1.0.3/node_modules/rolldown/dist/shared/logging-BSNejiLS.d.mts
|
|
201
202
|
//#region src/log/logging.d.ts
|
|
202
203
|
/** @inline */
|
|
203
204
|
type LogLevel$1 = "info" | "debug" | "warn";
|
|
@@ -247,7 +248,7 @@ interface RolldownError extends RolldownLog {
|
|
|
247
248
|
}
|
|
248
249
|
type LogOrStringHandler = (level: LogLevelWithError, log: RolldownLogWithString) => void; //#endregion
|
|
249
250
|
//#endregion
|
|
250
|
-
//#region node_modules/.pnpm/@oxc-project+types@0.
|
|
251
|
+
//#region node_modules/.pnpm/@oxc-project+types@0.133.0/node_modules/@oxc-project/types/types.d.ts
|
|
251
252
|
// Auto-generated code, DO NOT EDIT DIRECTLY!
|
|
252
253
|
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/typescript.rs`.
|
|
253
254
|
interface Program extends Span {
|
|
@@ -1546,7 +1547,7 @@ type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
|
|
|
1546
1547
|
type UpdateOperator = "++" | "--";
|
|
1547
1548
|
type Node$1 = 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;
|
|
1548
1549
|
//#endregion
|
|
1549
|
-
//#region node_modules/.pnpm/rolldown@1.0.
|
|
1550
|
+
//#region node_modules/.pnpm/rolldown@1.0.3/node_modules/rolldown/dist/shared/binding-BaCZTfMx.d.mts
|
|
1550
1551
|
interface CodegenOptions {
|
|
1551
1552
|
/**
|
|
1552
1553
|
* Remove whitespace.
|
|
@@ -1554,6 +1555,20 @@ interface CodegenOptions {
|
|
|
1554
1555
|
* @default true
|
|
1555
1556
|
*/
|
|
1556
1557
|
removeWhitespace?: boolean;
|
|
1558
|
+
/**
|
|
1559
|
+
* How to handle legal comments (comments containing `@license`, `@preserve`, or starting with `//!`/`/*!`).
|
|
1560
|
+
*
|
|
1561
|
+
* * `"none"` - Do not preserve any legal comments.
|
|
1562
|
+
* * `"inline"` - Preserve all legal comments inline.
|
|
1563
|
+
* * `"eof"` - Move all legal comments to the end of the file.
|
|
1564
|
+
* * `"external"` - Extract legal comments without linking.
|
|
1565
|
+
* * `{ linked: "path/to/legal.txt" }` - Extract legal comments and add a link comment to the given path.
|
|
1566
|
+
*
|
|
1567
|
+
* @default "none" (when minifying)
|
|
1568
|
+
*/
|
|
1569
|
+
legalComments?: 'none' | 'inline' | 'eof' | 'external' | {
|
|
1570
|
+
linked: string;
|
|
1571
|
+
};
|
|
1557
1572
|
}
|
|
1558
1573
|
interface CompressOptions$1 {
|
|
1559
1574
|
/**
|
|
@@ -1698,6 +1713,15 @@ interface TreeShakeOptions {
|
|
|
1698
1713
|
* @default 'always'
|
|
1699
1714
|
*/
|
|
1700
1715
|
propertyReadSideEffects?: boolean | 'always';
|
|
1716
|
+
/**
|
|
1717
|
+
* Whether property write accesses (assignments to member expressions) have side effects.
|
|
1718
|
+
*
|
|
1719
|
+
* When false, assignments like `obj.prop = value` are considered side-effect-free
|
|
1720
|
+
* (assuming the object and value expressions themselves are side-effect-free).
|
|
1721
|
+
*
|
|
1722
|
+
* @default true
|
|
1723
|
+
*/
|
|
1724
|
+
propertyWriteSideEffects?: boolean;
|
|
1701
1725
|
/**
|
|
1702
1726
|
* Whether accessing a global variable has side effects.
|
|
1703
1727
|
*
|
|
@@ -1836,6 +1860,18 @@ interface DecoratorOptions {
|
|
|
1836
1860
|
* @default false
|
|
1837
1861
|
*/
|
|
1838
1862
|
emitDecoratorMetadata?: boolean;
|
|
1863
|
+
/**
|
|
1864
|
+
* Aligns nullable-union `design:type` emission with `--strictNullChecks`.
|
|
1865
|
+
*
|
|
1866
|
+
* When `true` (default), `T | null` and `T | undefined` emit `Object`, matching tsc strict.
|
|
1867
|
+
* When `false`, `null` and `undefined` are elided from the union so the underlying
|
|
1868
|
+
* primitive constructor is emitted, matching tsc with `--strictNullChecks=false`
|
|
1869
|
+
* and `babel-plugin-transform-typescript-metadata`.
|
|
1870
|
+
*
|
|
1871
|
+
* @see https://www.typescriptlang.org/tsconfig/#strictNullChecks
|
|
1872
|
+
* @default true
|
|
1873
|
+
*/
|
|
1874
|
+
strictNullChecks?: boolean;
|
|
1839
1875
|
}
|
|
1840
1876
|
type HelperMode =
|
|
1841
1877
|
/**
|
|
@@ -2183,6 +2219,24 @@ interface TypeScriptOptions {
|
|
|
2183
2219
|
* Defaults to `false`.
|
|
2184
2220
|
*/
|
|
2185
2221
|
removeClassFieldsWithoutInitializer?: boolean;
|
|
2222
|
+
/**
|
|
2223
|
+
* When true, optimize const enums by inlining their values at usage sites
|
|
2224
|
+
* and removing the enum declaration.
|
|
2225
|
+
*
|
|
2226
|
+
* @default false
|
|
2227
|
+
*/
|
|
2228
|
+
optimizeConstEnums?: boolean;
|
|
2229
|
+
/**
|
|
2230
|
+
* When true, optimize regular (non-const) enums by inlining their member
|
|
2231
|
+
* accesses at usage sites when the member value is statically known.
|
|
2232
|
+
*
|
|
2233
|
+
* Non-exported enum declarations are also removed when all members are
|
|
2234
|
+
* evaluable and no references to the enum as a runtime value exist
|
|
2235
|
+
* (e.g., `console.log(Foo)`, `typeof Foo`, or passing the enum as an argument).
|
|
2236
|
+
*
|
|
2237
|
+
* @default false
|
|
2238
|
+
*/
|
|
2239
|
+
optimizeEnums?: boolean;
|
|
2186
2240
|
/**
|
|
2187
2241
|
* Also generate a `.d.ts` declaration file for TypeScript files.
|
|
2188
2242
|
*
|
|
@@ -2561,7 +2615,8 @@ interface ViteImportGlobMeta {
|
|
|
2561
2615
|
isSubImportsPattern?: boolean;
|
|
2562
2616
|
} //#endregion
|
|
2563
2617
|
//#endregion
|
|
2564
|
-
//#region node_modules/.pnpm/@rolldown+pluginutils@1.0.
|
|
2618
|
+
//#region node_modules/.pnpm/@rolldown+pluginutils@1.0.1/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts
|
|
2619
|
+
//#region src/filter/composable-filters.d.ts
|
|
2565
2620
|
type StringOrRegExp$1 = string | RegExp;
|
|
2566
2621
|
type PluginModuleType = 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'base64' | 'dataurl' | 'binary' | 'empty' | (string & {});
|
|
2567
2622
|
type FilterExpression = And | Or | Not | Id | ImporterId | ModuleType$1 | Code | Query;
|
|
@@ -2623,7 +2678,7 @@ declare class Exclude$1 {
|
|
|
2623
2678
|
constructor(expr: FilterExpression);
|
|
2624
2679
|
}
|
|
2625
2680
|
//#endregion
|
|
2626
|
-
//#region node_modules/.pnpm/rolldown@1.0.
|
|
2681
|
+
//#region node_modules/.pnpm/rolldown@1.0.3/node_modules/rolldown/dist/shared/define-config-3BX_X2Am.d.mts
|
|
2627
2682
|
//#region src/types/misc.d.ts
|
|
2628
2683
|
/** @inline */
|
|
2629
2684
|
type SourcemapPathTransformOption = (relativeSourcePath: string, sourcemapPath: string) => string;
|
|
@@ -2769,8 +2824,21 @@ interface SourceMap$2 {
|
|
|
2769
2824
|
}
|
|
2770
2825
|
/** @category Plugin APIs */
|
|
2771
2826
|
interface RenderedModule {
|
|
2827
|
+
/**
|
|
2828
|
+
* The rendered code of this module.
|
|
2829
|
+
*
|
|
2830
|
+
* The unused variables and functions are removed.
|
|
2831
|
+
*/
|
|
2772
2832
|
readonly code: string | null;
|
|
2833
|
+
/**
|
|
2834
|
+
* The length of the rendered code of this module.
|
|
2835
|
+
*/
|
|
2773
2836
|
renderedLength: number;
|
|
2837
|
+
/**
|
|
2838
|
+
* The list of exported names from this module.
|
|
2839
|
+
*
|
|
2840
|
+
* The names that are not used are not included.
|
|
2841
|
+
*/
|
|
2774
2842
|
renderedExports: string[];
|
|
2775
2843
|
}
|
|
2776
2844
|
/**
|
|
@@ -3463,8 +3531,6 @@ interface OutputOptions {
|
|
|
3463
3531
|
*
|
|
3464
3532
|
* When both `legalComments` and `comments.legal` are set, `comments.legal` takes priority.
|
|
3465
3533
|
*
|
|
3466
|
-
*
|
|
3467
|
-
*
|
|
3468
3534
|
* @default true
|
|
3469
3535
|
*/
|
|
3470
3536
|
comments?: boolean | CommentsOptions;
|
|
@@ -3508,9 +3574,18 @@ interface OutputOptions {
|
|
|
3508
3574
|
*/
|
|
3509
3575
|
preserveModulesRoot?: string;
|
|
3510
3576
|
/**
|
|
3511
|
-
* Whether to
|
|
3577
|
+
* Whether to convert top-level `let` and `const` declarations into `var` declarations.
|
|
3578
|
+
*
|
|
3579
|
+
* Enabling this option can improve runtime performance of the generated code in
|
|
3580
|
+
* certain environments by avoiding Temporal Dead Zone (TDZ) checks. Only declarations
|
|
3581
|
+
* in the module's top-level scope are rewritten — declarations inside nested scopes
|
|
3582
|
+
* (functions, blocks, etc.) are left as-is.
|
|
3512
3583
|
*
|
|
3513
|
-
*
|
|
3584
|
+
* Note:
|
|
3585
|
+
* - Top-level `class X {}` declarations are always emitted as `var X = class {}` so
|
|
3586
|
+
* rolldown can hoist them alongside other top-level bindings; this transform is
|
|
3587
|
+
* independent of `topLevelVar`.
|
|
3588
|
+
* - Top-level `function` declarations are never rewritten.
|
|
3514
3589
|
*
|
|
3515
3590
|
* @default false
|
|
3516
3591
|
*
|
|
@@ -3569,6 +3644,12 @@ interface OutputOptions {
|
|
|
3569
3644
|
*/
|
|
3570
3645
|
strict?: boolean | "auto";
|
|
3571
3646
|
}
|
|
3647
|
+
/**
|
|
3648
|
+
* Built-in module tag names computed by rolldown.
|
|
3649
|
+
*
|
|
3650
|
+
* - `'$initial'` — the module is statically imported by at least one user-defined entry point, or is part of its static dependency chain.
|
|
3651
|
+
*/
|
|
3652
|
+
type BuiltinModuleTag = "$initial";
|
|
3572
3653
|
type CodeSplittingGroup = {
|
|
3573
3654
|
/**
|
|
3574
3655
|
* 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.
|
|
@@ -3732,6 +3813,21 @@ type CodeSplittingGroup = {
|
|
|
3732
3813
|
* @default 0
|
|
3733
3814
|
*/
|
|
3734
3815
|
entriesAwareMergeThreshold?: number;
|
|
3816
|
+
/**
|
|
3817
|
+
* Filter modules by tags. Only modules that have **all** specified tags
|
|
3818
|
+
* are captured by this group. Combines with `test` and other filters —
|
|
3819
|
+
* a module must match all criteria.
|
|
3820
|
+
*
|
|
3821
|
+
* Built-in tags: `'$initial'` (module is statically imported by a user-defined entry or part of its dependency chain).
|
|
3822
|
+
*
|
|
3823
|
+
* @see {@link https://rolldown.rs/in-depth/manual-code-splitting | Manual Code Splitting}
|
|
3824
|
+
*
|
|
3825
|
+
* @example
|
|
3826
|
+
* ```js
|
|
3827
|
+
* { name: 'initial-deps', tags: ['$initial'], maxSize: 1048576 }
|
|
3828
|
+
* ```
|
|
3829
|
+
*/
|
|
3830
|
+
tags?: BuiltinModuleTag[];
|
|
3735
3831
|
};
|
|
3736
3832
|
/**
|
|
3737
3833
|
* Alias for {@linkcode CodeSplittingGroup}. Use this type for the `codeSplitting.groups` option.
|
|
@@ -3940,6 +4036,15 @@ interface ChecksOptions {
|
|
|
3940
4036
|
* */
|
|
3941
4037
|
missingNameOptionForIifeExport?: boolean;
|
|
3942
4038
|
/**
|
|
4039
|
+
* Whether to emit warnings when a `#__PURE__` / `@__PURE__` annotation has no effect due to its position.
|
|
4040
|
+
*
|
|
4041
|
+
* Annotations placed where they cannot annotate a call expression (e.g. before a non-call expression,
|
|
4042
|
+
* before a statement declaration, or between an identifier and `=` in a variable declarator) are
|
|
4043
|
+
* ignored by the parser. Matches Rollup's `INVALID_ANNOTATION` log code.
|
|
4044
|
+
* @default true
|
|
4045
|
+
* */
|
|
4046
|
+
invalidAnnotation?: boolean;
|
|
4047
|
+
/**
|
|
3943
4048
|
* Whether to emit warnings when the way to export values is ambiguous.
|
|
3944
4049
|
*
|
|
3945
4050
|
* See [`output.exports`](https://rolldown.rs/reference/OutputOptions.exports).
|
|
@@ -4047,6 +4152,17 @@ interface ChecksOptions {
|
|
|
4047
4152
|
* @default true
|
|
4048
4153
|
* */
|
|
4049
4154
|
ineffectiveDynamicImport?: boolean;
|
|
4155
|
+
/**
|
|
4156
|
+
* Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000).
|
|
4157
|
+
*
|
|
4158
|
+
* Such modules can significantly slow down module resolution. Consider using
|
|
4159
|
+
* [`@rolldown/plugin-transform-imports`](https://github.com/rolldown/plugins/tree/main/packages/transform-imports)
|
|
4160
|
+
* to rewrite barrel imports at the source level so the barrel file is never loaded.
|
|
4161
|
+
*
|
|
4162
|
+
* See [Large barrel modules](https://rolldown.rs/in-depth/lazy-barrel-optimization#large-barrel-modules) for more details.
|
|
4163
|
+
* @default true
|
|
4164
|
+
* */
|
|
4165
|
+
largeBarrelModules?: boolean;
|
|
4050
4166
|
} //#endregion
|
|
4051
4167
|
//#region src/options/transform-options.d.ts
|
|
4052
4168
|
interface TransformOptions$2 extends Omit<TransformOptions$3, "sourceType" | "lang" | "cwd" | "sourcemap" | "define" | "inject" | "jsx"> {
|
|
@@ -4919,7 +5035,7 @@ interface ExistingRawSourceMap {
|
|
|
4919
5035
|
mappings: string;
|
|
4920
5036
|
names?: string[];
|
|
4921
5037
|
sources?: (string | null)[];
|
|
4922
|
-
sourcesContent?: (string | null)[];
|
|
5038
|
+
sourcesContent?: (string | null | undefined)[];
|
|
4923
5039
|
sourceRoot?: string;
|
|
4924
5040
|
version?: number;
|
|
4925
5041
|
x_google_ignoreList?: number[];
|
|
@@ -5448,6 +5564,28 @@ type InputOption = string | string[] | Record<string, string>;
|
|
|
5448
5564
|
type ExternalOptionFunction = (id: string, parentId: string | undefined, isResolved: boolean) => NullValue<boolean>;
|
|
5449
5565
|
/** @inline */
|
|
5450
5566
|
type ExternalOption = StringOrRegExp | StringOrRegExp[] | ExternalOptionFunction;
|
|
5567
|
+
interface ChunkOptimizationOptions {
|
|
5568
|
+
/**
|
|
5569
|
+
* Merge common chunks into existing entry chunks when it is safe.
|
|
5570
|
+
*
|
|
5571
|
+
* This can reduce the number of emitted chunks by moving shared/common modules
|
|
5572
|
+
* into an entry chunk that already depends on them. Rolldown only applies the
|
|
5573
|
+
* merge when it does not create a circular chunk dependency or change strict
|
|
5574
|
+
* entry export signatures. This pass also covers safe empty-facade cleanup.
|
|
5575
|
+
*
|
|
5576
|
+
* @default true
|
|
5577
|
+
*/
|
|
5578
|
+
mergeCommonChunks?: boolean;
|
|
5579
|
+
/**
|
|
5580
|
+
* Avoid emitting redundant chunk loads for dynamic entries.
|
|
5581
|
+
*
|
|
5582
|
+
* This pass can reduce dynamic-entry dependent chunks when the shared modules
|
|
5583
|
+
* are guaranteed to be loaded by every importer of that dynamic entry.
|
|
5584
|
+
*
|
|
5585
|
+
* @default true
|
|
5586
|
+
*/
|
|
5587
|
+
avoidRedundantChunkLoads?: boolean;
|
|
5588
|
+
}
|
|
5451
5589
|
type ModuleTypes = Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css" | "asset" | "copy">;
|
|
5452
5590
|
interface WatcherFileWatcherOptions {
|
|
5453
5591
|
/**
|
|
@@ -6051,18 +6189,18 @@ interface InputOptions {
|
|
|
6051
6189
|
*/
|
|
6052
6190
|
nativeMagicString?: boolean;
|
|
6053
6191
|
/**
|
|
6054
|
-
* Control
|
|
6055
|
-
* This optimization can reduce the number of generated chunks.
|
|
6192
|
+
* Control chunk optimizations.
|
|
6056
6193
|
*
|
|
6057
|
-
*
|
|
6058
|
-
*
|
|
6194
|
+
* `true` enables both common-chunk merging and redundant dynamic chunk-load avoidance.
|
|
6195
|
+
* `false` disables all chunk optimizations. Use the object form to control
|
|
6196
|
+
* `mergeCommonChunks` and `avoidRedundantChunkLoads` separately.
|
|
6059
6197
|
*
|
|
6060
|
-
*
|
|
6061
|
-
* as
|
|
6198
|
+
* These optimizations are automatically disabled when any module uses top-level await (TLA) or contains TLA dependencies,
|
|
6199
|
+
* as they could affect execution order guarantees.
|
|
6062
6200
|
*
|
|
6063
6201
|
* @default true
|
|
6064
6202
|
*/
|
|
6065
|
-
chunkOptimization?: boolean;
|
|
6203
|
+
chunkOptimization?: boolean | ChunkOptimizationOptions;
|
|
6066
6204
|
/**
|
|
6067
6205
|
* Control whether to enable lazy barrel optimization.
|
|
6068
6206
|
*
|
|
@@ -6117,6 +6255,11 @@ interface InputOptions {
|
|
|
6117
6255
|
makeAbsoluteExternalsRelative?: MakeAbsoluteExternalsRelative;
|
|
6118
6256
|
/**
|
|
6119
6257
|
* Devtools integration options.
|
|
6258
|
+
*
|
|
6259
|
+
* When enabled, Rolldown writes JSON-lines devtools output under
|
|
6260
|
+
* `node_modules/.rolldown/{session_id}/`. Consumers can parse the output with
|
|
6261
|
+
* `@rolldown/debug` after `await bundle.close()` resolves.
|
|
6262
|
+
*
|
|
6120
6263
|
* @experimental
|
|
6121
6264
|
*/
|
|
6122
6265
|
devtools?: {
|
|
@@ -6168,7 +6311,7 @@ interface RolldownOptions extends InputOptions {
|
|
|
6168
6311
|
* @category Config
|
|
6169
6312
|
*/
|
|
6170
6313
|
//#endregion
|
|
6171
|
-
//#region node_modules/.pnpm/rolldown@1.0.
|
|
6314
|
+
//#region node_modules/.pnpm/rolldown@1.0.3/node_modules/rolldown/dist/shared/transform-7xCUVrpL.d.mts
|
|
6172
6315
|
//#endregion
|
|
6173
6316
|
//#region src/utils/transform.d.ts
|
|
6174
6317
|
/**
|
|
@@ -6183,13 +6326,13 @@ interface TransformOptions$1 extends BindingEnhancedTransformOptions {}
|
|
|
6183
6326
|
* @category Utilities
|
|
6184
6327
|
*/
|
|
6185
6328
|
//#endregion
|
|
6186
|
-
//#region node_modules/.pnpm/vite@8.0.
|
|
6329
|
+
//#region node_modules/.pnpm/vite@8.0.16_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_terser@5.46.1_tsx@4.22.4_yaml@2.8.3/node_modules/vite/types/internal/esbuildOptions.d.ts
|
|
6187
6330
|
/* eslint-enable @typescript-eslint/ban-ts-comment */
|
|
6188
6331
|
type EsbuildTarget = string | string[];
|
|
6189
6332
|
type EsbuildTransformOptions = esbuild$1.TransformOptions;
|
|
6190
6333
|
type DepsOptimizerEsbuildOptions = Omit<esbuild$1.BuildOptions, 'bundle' | 'entryPoints' | 'external' | 'write' | 'watch' | 'outdir' | 'outfile' | 'outbase' | 'outExtension' | 'metafile'>;
|
|
6191
6334
|
//#endregion
|
|
6192
|
-
//#region node_modules/.pnpm/vite@8.0.
|
|
6335
|
+
//#region node_modules/.pnpm/vite@8.0.16_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_terser@5.46.1_tsx@4.22.4_yaml@2.8.3/node_modules/vite/types/metadata.d.ts
|
|
6193
6336
|
interface AssetMetadata {
|
|
6194
6337
|
importedAssets: Set<string>;
|
|
6195
6338
|
importedCss: Set<string>;
|
|
@@ -6507,16 +6650,16 @@ interface SourceMapOptions$1 {
|
|
|
6507
6650
|
url?: string | 'inline';
|
|
6508
6651
|
}
|
|
6509
6652
|
//#endregion
|
|
6510
|
-
//#region node_modules/.pnpm/vite@8.0.
|
|
6653
|
+
//#region node_modules/.pnpm/vite@8.0.16_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_terser@5.46.1_tsx@4.22.4_yaml@2.8.3/node_modules/vite/types/internal/terserOptions.d.ts
|
|
6511
6654
|
/* eslint-enable @typescript-eslint/ban-ts-comment */
|
|
6512
6655
|
type TerserMinifyOptions = MinifyOptions;
|
|
6513
6656
|
//#endregion
|
|
6514
|
-
//#region node_modules/.pnpm/vite@8.0.
|
|
6657
|
+
//#region node_modules/.pnpm/vite@8.0.16_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_terser@5.46.1_tsx@4.22.4_yaml@2.8.3/node_modules/vite/types/internal/lightningcssOptions.d.ts
|
|
6515
6658
|
/* eslint-enable @typescript-eslint/ban-ts-comment */
|
|
6516
6659
|
type LightningCSSOptions = Omit<Lightningcss.BundleAsyncOptions<Lightningcss.CustomAtRules>, 'filename' | 'resolver' | 'minify' | 'sourceMap' | 'analyzeDependencies' // properties not overridden by Vite, but does not make sense to set by end users
|
|
6517
6660
|
| 'inputSourceMap' | 'projectRoot'>;
|
|
6518
6661
|
//#endregion
|
|
6519
|
-
//#region node_modules/.pnpm/vite@8.0.
|
|
6662
|
+
//#region node_modules/.pnpm/vite@8.0.16_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_terser@5.46.1_tsx@4.22.4_yaml@2.8.3/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts
|
|
6520
6663
|
/* eslint-enable @typescript-eslint/ban-ts-comment */
|
|
6521
6664
|
// https://github.com/type-challenges/type-challenges/issues/29285
|
|
6522
6665
|
type IsAny<T> = boolean extends (T extends never ? true : false) ? true : false;
|
|
@@ -6535,7 +6678,7 @@ declare global {
|
|
|
6535
6678
|
interface HTMLLinkElement {}
|
|
6536
6679
|
}
|
|
6537
6680
|
//#endregion
|
|
6538
|
-
//#region node_modules/.pnpm/vite@8.0.
|
|
6681
|
+
//#region node_modules/.pnpm/vite@8.0.16_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_terser@5.46.1_tsx@4.22.4_yaml@2.8.3/node_modules/vite/types/importGlob.d.ts
|
|
6539
6682
|
/**
|
|
6540
6683
|
* Declare Worker in case DOM is not added to the tsconfig lib causing
|
|
6541
6684
|
* Worker interface is not defined. For developers with DOM lib added,
|
|
@@ -6546,10 +6689,10 @@ declare global {
|
|
|
6546
6689
|
interface Worker {}
|
|
6547
6690
|
}
|
|
6548
6691
|
//#endregion
|
|
6549
|
-
//#region node_modules/.pnpm/vite@8.0.
|
|
6692
|
+
//#region node_modules/.pnpm/vite@8.0.16_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_terser@5.46.1_tsx@4.22.4_yaml@2.8.3/node_modules/vite/dist/node/index.d.ts
|
|
6550
6693
|
//#region \0rolldown/runtime.js
|
|
6551
6694
|
//#endregion
|
|
6552
|
-
//#region ../../node_modules/.pnpm/@vitejs+devtools@0.
|
|
6695
|
+
//#region ../../node_modules/.pnpm/@vitejs+devtools@0.3.1_typescript@6.0.3_vite@packages+vite/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
|
|
6553
6696
|
//#region src/node/cli-commands.d.ts
|
|
6554
6697
|
interface StartOptions {
|
|
6555
6698
|
root?: string;
|
|
@@ -6558,10 +6701,14 @@ interface StartOptions {
|
|
|
6558
6701
|
port?: string | number;
|
|
6559
6702
|
open?: boolean;
|
|
6560
6703
|
} //#endregion
|
|
6561
|
-
//#region ../../node_modules/.pnpm/@vitejs+devtools@0.
|
|
6704
|
+
//#region ../../node_modules/.pnpm/@vitejs+devtools@0.3.1_typescript@6.0.3_vite@packages+vite/node_modules/@vitejs/devtools/dist/config.d.ts
|
|
6562
6705
|
//#region src/node/config.d.ts
|
|
6563
6706
|
interface DevToolsConfig extends Partial<StartOptions> {
|
|
6564
6707
|
enabled: boolean;
|
|
6708
|
+
/**
|
|
6709
|
+
* Vite environments to enable DevTools for. Defaults to all environments.
|
|
6710
|
+
*/
|
|
6711
|
+
environments?: string[];
|
|
6565
6712
|
/**
|
|
6566
6713
|
* Disable client authentication.
|
|
6567
6714
|
*
|
|
@@ -7398,7 +7545,7 @@ interface DepOptimizationConfig {
|
|
|
7398
7545
|
type DepOptimizationOptions = DepOptimizationConfig & {
|
|
7399
7546
|
/**
|
|
7400
7547
|
* By default, Vite will crawl your `index.html` to detect dependencies that
|
|
7401
|
-
* need to be pre-bundled. If `build.
|
|
7548
|
+
* need to be pre-bundled. If `build.rolldownOptions.input` is specified, Vite
|
|
7402
7549
|
* will crawl those entry points instead.
|
|
7403
7550
|
*
|
|
7404
7551
|
* If neither of these fit your needs, you can specify custom entries using
|
|
@@ -9696,6 +9843,17 @@ interface SharedEnvironmentOptions {
|
|
|
9696
9843
|
* Optimize deps config
|
|
9697
9844
|
*/
|
|
9698
9845
|
optimizeDeps?: DepOptimizationOptions;
|
|
9846
|
+
/**
|
|
9847
|
+
* Whether this environment produces a bundled output.
|
|
9848
|
+
*
|
|
9849
|
+
* During `build`, this defaults to `true` for every environment.
|
|
9850
|
+
* During `serve`, this defaults to `true` only for the client environment
|
|
9851
|
+
* when `experimental.bundledDev` is enabled, and `false` otherwise.
|
|
9852
|
+
* Setting this explicitly on an environment always overrides the default.
|
|
9853
|
+
*
|
|
9854
|
+
* @experimental
|
|
9855
|
+
*/
|
|
9856
|
+
isBundled?: boolean;
|
|
9699
9857
|
}
|
|
9700
9858
|
interface EnvironmentOptions extends SharedEnvironmentOptions {
|
|
9701
9859
|
/**
|
|
@@ -9716,6 +9874,7 @@ type ResolvedEnvironmentOptions = {
|
|
|
9716
9874
|
optimizeDeps: DepOptimizationOptions;
|
|
9717
9875
|
dev: ResolvedDevEnvironmentOptions;
|
|
9718
9876
|
build: ResolvedBuildEnvironmentOptions;
|
|
9877
|
+
isBundled: boolean;
|
|
9719
9878
|
plugins: readonly Plugin[];
|
|
9720
9879
|
};
|
|
9721
9880
|
type DefaultEnvironmentOptions = Omit<EnvironmentOptions, "consumer" | "resolve" | "keepProcessEnv"> & {
|
|
@@ -9940,7 +10099,11 @@ interface ExperimentalOptions {
|
|
|
9940
10099
|
*/
|
|
9941
10100
|
hmrPartialAccept?: boolean;
|
|
9942
10101
|
/**
|
|
9943
|
-
* Enable full bundle mode
|
|
10102
|
+
* Enable full bundle mode during `serve`.
|
|
10103
|
+
*
|
|
10104
|
+
* This seeds the default for the client environment's `isBundled` option.
|
|
10105
|
+
* Other environments default to `false` during `serve`. Any environment
|
|
10106
|
+
* can override its `isBundled` value via `environments[name].isBundled`.
|
|
9944
10107
|
*
|
|
9945
10108
|
* This is highly experimental.
|
|
9946
10109
|
*
|
|
@@ -10000,8 +10163,7 @@ interface ResolvedConfig extends Readonly<Omit<UserConfig, "plugins" | "css" | "
|
|
|
10000
10163
|
publicDir: string;
|
|
10001
10164
|
cacheDir: string;
|
|
10002
10165
|
command: "build" | "serve";
|
|
10003
|
-
mode: string;
|
|
10004
|
-
isBundled: boolean;
|
|
10166
|
+
mode: string;
|
|
10005
10167
|
isWorker: boolean;
|
|
10006
10168
|
isProduction: boolean;
|
|
10007
10169
|
envDir: string | false;
|