@vercube/vite 1.3.0 → 1.3.1
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 +76 -6
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -296,7 +296,7 @@ declare namespace TelemetryTypes {
|
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
//#endregion
|
|
299
|
-
//#region ../../node_modules/.pnpm/evlog@2.29.0_vite@8.3.
|
|
299
|
+
//#region ../../node_modules/.pnpm/evlog@2.29.0_vite@8.3.2_@types+node@26.6.4_esbuild@0.28.2_jiti@2.7.0_tsx@4.23.15_yaml@2.9.1_/node_modules/evlog/dist/types-BFPe1ojp.d.mts
|
|
300
300
|
//#region src/shared/plugin.d.ts
|
|
301
301
|
/** Context passed to {@link EvlogPlugin.setup} when the plugin is registered. */
|
|
302
302
|
interface PluginSetupContext {
|
|
@@ -1198,7 +1198,7 @@ declare namespace LoggerTypes {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
//#endregion
|
|
1201
|
-
//#region ../../node_modules/.pnpm/c12@4.0.0-rc.2_dotenv@18.0.
|
|
1201
|
+
//#region ../../node_modules/.pnpm/c12@4.0.0-rc.2_dotenv@18.0.5_giget@3.3.1_jiti@2.7.0_magicast@0.5.5/node_modules/c12/dist/index.d.mts
|
|
1202
1202
|
interface DotenvOptions {
|
|
1203
1203
|
/**
|
|
1204
1204
|
* The project root directory (either absolute or relative to the current working directory).
|
|
@@ -1279,7 +1279,7 @@ declare global {
|
|
|
1279
1279
|
var __c12_dotenv_vars__: Map<Record<string, any>, Set<string>>;
|
|
1280
1280
|
}
|
|
1281
1281
|
//#endregion
|
|
1282
|
-
//#region ../../node_modules/.pnpm/rolldown@1.2.
|
|
1282
|
+
//#region ../../node_modules/.pnpm/rolldown@1.2.12/node_modules/rolldown/dist/shared/logging-xuHO4mAy.d.mts
|
|
1283
1283
|
//#region src/log/logging.d.ts
|
|
1284
1284
|
/** @inline */
|
|
1285
1285
|
type LogLevel = "info" | "debug" | "warn";
|
|
@@ -1329,7 +1329,7 @@ interface RolldownError extends RolldownLog {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
type LogOrStringHandler = (level: LogLevelWithError, log: RolldownLogWithString) => void;
|
|
1331
1331
|
//#endregion
|
|
1332
|
-
//#region ../../node_modules/.pnpm/@oxc-project+types@0.
|
|
1332
|
+
//#region ../../node_modules/.pnpm/@oxc-project+types@0.152.0/node_modules/@oxc-project/types/types.d.ts
|
|
1333
1333
|
// Auto-generated code, DO NOT EDIT DIRECTLY!
|
|
1334
1334
|
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/typescript.rs`.
|
|
1335
1335
|
interface Program extends Span {
|
|
@@ -2628,7 +2628,7 @@ type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
|
|
|
2628
2628
|
type UpdateOperator = "++" | "--";
|
|
2629
2629
|
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 | 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;
|
|
2630
2630
|
//#endregion
|
|
2631
|
-
//#region ../../node_modules/.pnpm/rolldown@1.2.
|
|
2631
|
+
//#region ../../node_modules/.pnpm/rolldown@1.2.12/node_modules/rolldown/dist/shared/binding-tzp6Hc_3.d.mts
|
|
2632
2632
|
interface CodegenOptions {
|
|
2633
2633
|
/**
|
|
2634
2634
|
* Remove whitespace.
|
|
@@ -3676,7 +3676,7 @@ declare class Exclude$1 {
|
|
|
3676
3676
|
constructor(expr: FilterExpression);
|
|
3677
3677
|
}
|
|
3678
3678
|
//#endregion
|
|
3679
|
-
//#region ../../node_modules/.pnpm/rolldown@1.2.
|
|
3679
|
+
//#region ../../node_modules/.pnpm/rolldown@1.2.12/node_modules/rolldown/dist/shared/define-config-kIZKjX8Q.d.mts
|
|
3680
3680
|
//#region src/types/misc.d.ts
|
|
3681
3681
|
/** @inline */
|
|
3682
3682
|
type SourcemapPathTransformOption = (relativeSourcePath: string, sourcemapPath: string) => string;
|
|
@@ -3785,6 +3785,8 @@ interface SourceMap {
|
|
|
3785
3785
|
sourcesContent: string[];
|
|
3786
3786
|
version: number;
|
|
3787
3787
|
debugId?: string;
|
|
3788
|
+
ignoreList?: number[];
|
|
3789
|
+
/** @deprecated Use `ignoreList` instead. */
|
|
3788
3790
|
x_google_ignoreList?: number[];
|
|
3789
3791
|
toString(): string;
|
|
3790
3792
|
toUrl(): string;
|
|
@@ -4621,6 +4623,10 @@ interface OutputOptions {
|
|
|
4621
4623
|
*
|
|
4622
4624
|
* > [!WARNING]
|
|
4623
4625
|
* > Enabling this option increases bundle size because wrapped modules need runtime init helpers.
|
|
4626
|
+
*
|
|
4627
|
+
* {@linkcode CodeSplittingOptions.experimentalInlineCommonChunks | experimentalInlineCommonChunks}
|
|
4628
|
+
* with a `maxSize` above `0` turns this option on when it is omitted.
|
|
4629
|
+
*
|
|
4624
4630
|
* @default false
|
|
4625
4631
|
*/
|
|
4626
4632
|
strictExecutionOrder?: boolean;
|
|
@@ -4853,6 +4859,63 @@ type CodeSplittingGroup = {
|
|
|
4853
4859
|
*/
|
|
4854
4860
|
tags?: BuiltinModuleTag[];
|
|
4855
4861
|
};
|
|
4862
|
+
/**
|
|
4863
|
+
* Options for `codeSplitting.experimentalInlineCommonChunks`.
|
|
4864
|
+
*
|
|
4865
|
+
* Small common chunks produced by automatic code splitting are replaced by a factory function
|
|
4866
|
+
* that is copied into the chunks reading them (a chunk whose static dependency already carries the
|
|
4867
|
+
* factory uses that copy). A registry in the runtime chunk makes sure the chunk's modules keep one
|
|
4868
|
+
* state, one execution and one set of export identities across all copies, so no entry downloads
|
|
4869
|
+
* code it could not reach with the option off.
|
|
4870
|
+
*
|
|
4871
|
+
* Before enabling it, check the plugins and code shapes that see a chunk's modules as one file:
|
|
4872
|
+
*
|
|
4873
|
+
* - A module of an inlined chunk appears in the `moduleIds` and `modules` of every chunk that
|
|
4874
|
+
* prints a copy, so a plugin that asks which chunk owns a module gets several answers. Vite's
|
|
4875
|
+
* CSS plugin, for example, emits a style module's CSS from every chunk whose `moduleIds` list
|
|
4876
|
+
* it; a Vite build passes `exclude: /\.(css|scss|sass|less|styl|stylus|pcss|postcss|sss)(\?|$)/`
|
|
4877
|
+
* so chunks holding styles stay files.
|
|
4878
|
+
* - A `renderChunk` hook whose rewrite yields different values in different directories makes
|
|
4879
|
+
* the copies differ, and the first chunk to run decides which text every reader sees; exclude
|
|
4880
|
+
* the modules concerned. Vite's asset URLs under a relative `base` resolve through
|
|
4881
|
+
* `import.meta.url` to the same URL from every copy and are not affected.
|
|
4882
|
+
* - The option turns `strictExecutionOrder` on when it is omitted. Strict execution order has an
|
|
4883
|
+
* open issue with top-level await inside static import cycles (rolldown/rolldown#9548), so run
|
|
4884
|
+
* the application under `strictExecutionOrder: true` before adding this option.
|
|
4885
|
+
* - Addons (`banner`, `intro`, `outro` and `footer`), including plugin hooks, apply to emitted
|
|
4886
|
+
* files. An inlined chunk shares the addon bindings of the file that registers its factory
|
|
4887
|
+
* first. Exclude modules that depend on separate file-local bindings or addon initialization order.
|
|
4888
|
+
* - A chunk that prints an inlined chunk names both sets of modules together, so a function or
|
|
4889
|
+
* class in either can get a `$1`-style suffix when the other declares the same name, and the
|
|
4890
|
+
* `.name` of an inlined chunk's function or class depends on which chunk loads first (under
|
|
4891
|
+
* `minify`, the mangled name does too). `output.keepNames` keeps every name.
|
|
4892
|
+
*
|
|
4893
|
+
* @experimental This feature is experimental. Its behavior and option shape may change in any release.
|
|
4894
|
+
*
|
|
4895
|
+
* @category Code Splitting
|
|
4896
|
+
*/
|
|
4897
|
+
type ExperimentalInlineCommonChunksOptions = {
|
|
4898
|
+
/**
|
|
4899
|
+
* Common chunks whose pre-render size (the sum of the transformed source sizes of their modules,
|
|
4900
|
+
* in bytes) is strictly smaller than this value are candidates for inlining.
|
|
4901
|
+
* Use `Infinity` to remove the size limit.
|
|
4902
|
+
*
|
|
4903
|
+
* A value greater than `0` requires `output.format: 'es'`, an explicit
|
|
4904
|
+
* `preserveEntrySignatures: false` and code splitting, and it turns on
|
|
4905
|
+
* {@linkcode OutputOptions.strictExecutionOrder | strictExecutionOrder} when that option is
|
|
4906
|
+
* omitted. `output.strictExecutionOrder: false` is an error, `output.preserveModules`,
|
|
4907
|
+
* `experimental.devMode` and `experimental.onDemandWrapping` must be off.
|
|
4908
|
+
*
|
|
4909
|
+
* @default 0
|
|
4910
|
+
*/
|
|
4911
|
+
maxSize?: number;
|
|
4912
|
+
/**
|
|
4913
|
+
* A matcher for module ids, or an array of them: a string (matched as a regular expression), a
|
|
4914
|
+
* RegExp, or a function, each applied like {@linkcode CodeSplittingGroup.test | test}. A common
|
|
4915
|
+
* chunk is kept as a file when any of its modules matches any matcher.
|
|
4916
|
+
*/
|
|
4917
|
+
exclude?: StringOrRegExp | CodeSplittingTestFunction | Array<StringOrRegExp | CodeSplittingTestFunction>;
|
|
4918
|
+
};
|
|
4856
4919
|
/**
|
|
4857
4920
|
* Configuration options for advanced code splitting.
|
|
4858
4921
|
*
|
|
@@ -4887,6 +4950,12 @@ type CodeSplittingOptions = {
|
|
|
4887
4950
|
* Groups to be used for code splitting.
|
|
4888
4951
|
*/
|
|
4889
4952
|
groups?: CodeSplittingGroup[];
|
|
4953
|
+
/**
|
|
4954
|
+
* Replace small automatic common chunks with factory copies in their consumers.
|
|
4955
|
+
*
|
|
4956
|
+
* @experimental This feature is experimental. Its behavior and option shape may change in any release.
|
|
4957
|
+
*/
|
|
4958
|
+
experimentalInlineCommonChunks?: ExperimentalInlineCommonChunksOptions;
|
|
4890
4959
|
};
|
|
4891
4960
|
//#endregion
|
|
4892
4961
|
//#region src/binding-magic-string.d.ts
|
|
@@ -5987,6 +6056,7 @@ interface ExistingRawSourceMap {
|
|
|
5987
6056
|
sourcesContent?: (string | null | undefined)[] | undefined;
|
|
5988
6057
|
sourceRoot?: string | undefined;
|
|
5989
6058
|
version?: number | undefined;
|
|
6059
|
+
ignoreList?: number[] | undefined;
|
|
5990
6060
|
x_google_ignoreList?: number[] | undefined;
|
|
5991
6061
|
}
|
|
5992
6062
|
/** @inline @category Plugin APIs */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/vite",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Vite plugin integrating Vercube with the Vite Environment API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"framework"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@vercube/scan": "1.3.
|
|
33
|
+
"@vercube/scan": "1.3.1",
|
|
34
34
|
"chokidar": "5.0.0",
|
|
35
35
|
"defu": "6.1.7",
|
|
36
|
-
"env-runner": "0.3.
|
|
36
|
+
"env-runner": "0.3.3",
|
|
37
37
|
"pathe": "2.0.3",
|
|
38
|
-
"rou3": "0.
|
|
38
|
+
"rou3": "1.0.0",
|
|
39
39
|
"srvx": "1.0.5"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"vite": "^8.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@vercube/core": "1.3.
|
|
45
|
+
"@vercube/core": "1.3.1",
|
|
46
46
|
"vite": "^8.2.1"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|