@umijs/bundler-vite 4.0.26 → 4.0.27

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.
@@ -1,6 +1,6 @@
1
1
  import type { IConfigProcessor } from '.';
2
- declare const _default: IConfigProcessor;
3
2
  /**
4
3
  * transform umi alias to vite alias
5
4
  */
5
+ declare const _default: IConfigProcessor;
6
6
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import type { IConfigProcessor } from '.';
2
2
  export declare function getBrowserlist(targets: Record<string, string | boolean>): string | string[];
3
- declare const _default: IConfigProcessor;
4
3
  /**
5
4
  * transform umi css pre-processor configs to vite postcss config
6
5
  * @note include configs:
@@ -11,4 +10,5 @@ declare const _default: IConfigProcessor;
11
10
  * - lessLoader
12
11
  * - theme
13
12
  */
13
+ declare const _default: IConfigProcessor;
14
14
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { IConfigProcessor } from '.';
2
- declare const _default: IConfigProcessor;
3
2
  /**
4
3
  * transform umi define to vite define
5
4
  */
5
+ declare const _default: IConfigProcessor;
6
6
  export default _default;
@@ -4,8 +4,8 @@ declare type ITmpUserConfig = Record<string, any>;
4
4
  * type of config processor
5
5
  */
6
6
  export declare type IConfigProcessor = (userConfig: ITmpUserConfig, currentViteConfig: Partial<ViteInlineConfig>) => Partial<ViteInlineConfig>;
7
- declare const _default: (userConfig: ITmpUserConfig) => ViteInlineConfig;
8
7
  /**
9
8
  * config transformer
10
9
  */
10
+ declare const _default: (userConfig: ITmpUserConfig) => ViteInlineConfig;
11
11
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { IConfigProcessor } from '.';
2
- declare const _default: IConfigProcessor;
3
2
  /**
4
3
  * Merge from user config
5
4
  */
5
+ declare const _default: IConfigProcessor;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { IConfigProcessor } from '.';
2
- declare const _default: IConfigProcessor;
3
2
  /**
4
3
  * enable react plugin & transform umi babel to vite babel
5
4
  */
5
+ declare const _default: IConfigProcessor;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { IConfigProcessor } from '.';
2
- declare const _default: IConfigProcessor;
3
2
  /**
4
3
  * rename umi user config fields to vite's, which can be rename directly
5
4
  */
5
+ declare const _default: IConfigProcessor;
6
6
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import type { IConfigProcessor } from '.';
2
- declare const _default: IConfigProcessor;
3
2
  /**
4
3
  * transform umi configs to vite rollup options
5
4
  * @note include configs:
@@ -8,4 +7,5 @@ declare const _default: IConfigProcessor;
8
7
  * - analyze
9
8
  * - copy
10
9
  */
10
+ declare const _default: IConfigProcessor;
11
11
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { IConfigProcessor } from '.';
2
- declare const _default: IConfigProcessor;
3
2
  /**
4
3
  * transform umi targets to vite build.target
5
4
  */
5
+ declare const _default: IConfigProcessor;
6
6
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import type { InlineConfig as ViteInlineConfig } from '../../compiled/vite';
2
2
  import type { IConfig } from '../types';
3
- declare const _default: (userConfig: IConfig) => ViteInlineConfig;
4
3
  /**
5
4
  * config with plugins
6
5
  */
6
+ declare const _default: (userConfig: IConfig) => ViteInlineConfig;
7
7
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-vite",
3
- "version": "4.0.26",
3
+ "version": "4.0.27",
4
4
  "description": "@umijs/bundler-vite",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/bundler-vite#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@svgr/core": "6.2.1",
29
- "@umijs/bundler-utils": "4.0.26",
30
- "@umijs/utils": "4.0.26",
29
+ "@umijs/bundler-utils": "4.0.27",
30
+ "@umijs/utils": "4.0.27",
31
31
  "@vitejs/plugin-react": "1.2.0",
32
32
  "postcss-preset-env": "7.5.0",
33
33
  "rollup-plugin-visualizer": "5.6.0"