@moluoxixi/vite-config 0.0.35 → 0.0.36
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/es/index.d.ts +2 -2
- package/es/src/_types/index.d.ts +11 -0
- package/lib/index.d.ts +2 -2
- package/lib/src/_types/index.d.ts +11 -0
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AutoRoutesConfig, CDNOptions, CompressionPlugin, ImageminPlugin, PluginConfig, PluginType, QiankunPlugin, VisualizerOptions, ViteConfigType } from './src/_types';
|
|
1
|
+
import { AutoRoutesConfig, CDNOptions, CompressionPlugin, ImageminPlugin, PluginConfig, PluginType, QiankunPlugin, VisualizerOptions, ViteConfigType, ViteFeatureContext } from './src/_types';
|
|
2
2
|
import { createViteConfig, getViteConfig } from './src/index.ts';
|
|
3
3
|
export default createViteConfig;
|
|
4
4
|
export { wrapperEnv } from './src/_utils/index.ts';
|
|
5
5
|
export { getViteConfig, createViteConfig as ViteConfig };
|
|
6
|
-
export type { AutoRoutesConfig, CDNOptions, CompressionPlugin, ImageminPlugin, PluginConfig, PluginType, QiankunPlugin, VisualizerOptions, ViteConfigType };
|
|
6
|
+
export type { AutoRoutesConfig, CDNOptions, CompressionPlugin, ImageminPlugin, PluginConfig, PluginType, QiankunPlugin, VisualizerOptions, ViteConfigType, ViteFeatureContext };
|
package/es/src/_types/index.d.ts
CHANGED
|
@@ -186,4 +186,15 @@ export type PluginType = PluginOption & {
|
|
|
186
186
|
export interface PluginMap {
|
|
187
187
|
[key: string]: PluginOption;
|
|
188
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* Vite feature 配置上下文
|
|
191
|
+
*/
|
|
192
|
+
export interface ViteFeatureContext {
|
|
193
|
+
/** Vite 环境变量 */
|
|
194
|
+
viteEnv: Record<string, any>;
|
|
195
|
+
/** 构建模式 */
|
|
196
|
+
mode: string;
|
|
197
|
+
/** 应用代码 */
|
|
198
|
+
appCode: string;
|
|
199
|
+
}
|
|
189
200
|
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AutoRoutesConfig, CDNOptions, CompressionPlugin, ImageminPlugin, PluginConfig, PluginType, QiankunPlugin, VisualizerOptions, ViteConfigType } from './src/_types';
|
|
1
|
+
import { AutoRoutesConfig, CDNOptions, CompressionPlugin, ImageminPlugin, PluginConfig, PluginType, QiankunPlugin, VisualizerOptions, ViteConfigType, ViteFeatureContext } from './src/_types';
|
|
2
2
|
import { createViteConfig, getViteConfig } from './src/index.ts';
|
|
3
3
|
export default createViteConfig;
|
|
4
4
|
export { wrapperEnv } from './src/_utils/index.ts';
|
|
5
5
|
export { getViteConfig, createViteConfig as ViteConfig };
|
|
6
|
-
export type { AutoRoutesConfig, CDNOptions, CompressionPlugin, ImageminPlugin, PluginConfig, PluginType, QiankunPlugin, VisualizerOptions, ViteConfigType };
|
|
6
|
+
export type { AutoRoutesConfig, CDNOptions, CompressionPlugin, ImageminPlugin, PluginConfig, PluginType, QiankunPlugin, VisualizerOptions, ViteConfigType, ViteFeatureContext };
|
|
@@ -186,4 +186,15 @@ export type PluginType = PluginOption & {
|
|
|
186
186
|
export interface PluginMap {
|
|
187
187
|
[key: string]: PluginOption;
|
|
188
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* Vite feature 配置上下文
|
|
191
|
+
*/
|
|
192
|
+
export interface ViteFeatureContext {
|
|
193
|
+
/** Vite 环境变量 */
|
|
194
|
+
viteEnv: Record<string, any>;
|
|
195
|
+
/** 构建模式 */
|
|
196
|
+
mode: string;
|
|
197
|
+
/** 应用代码 */
|
|
198
|
+
appCode: string;
|
|
199
|
+
}
|
|
189
200
|
export {};
|