@moluoxixi/vite-config 0.0.31 → 0.0.33

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.mjs CHANGED
@@ -172,8 +172,7 @@ function addScopedAndReplacePrefixPlugin({
172
172
  };
173
173
  }
174
174
  async function getViteConfig(Config = {}, params) {
175
- const configResult = typeof Config === "function" ? Config(params) : Config;
176
- const config = configResult;
175
+ const config = typeof Config === "function" ? Config(params) : Config;
177
176
  const { mode = "base" } = params || {};
178
177
  const rootPath = config.rootPath || process.cwd();
179
178
  const modeConfig = config.mode || {};
package/lib/index.cjs CHANGED
@@ -195,8 +195,7 @@ function addScopedAndReplacePrefixPlugin({
195
195
  };
196
196
  }
197
197
  async function getViteConfig(Config = {}, params) {
198
- const configResult = typeof Config === "function" ? Config(params) : Config;
199
- const config = configResult;
198
+ const config = typeof Config === "function" ? Config(params) : Config;
200
199
  const { mode = "base" } = params || {};
201
200
  const rootPath = config.rootPath || process.cwd();
202
201
  const modeConfig = config.mode || {};
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
1
  {
2
2
  "name": "@moluoxixi/vite-config",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "ViteConfig 组件",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.scss"
8
8
  ],
9
9
  "peerDependencies": {
10
- "vite": "6.2.4",
11
- "vue": "3.5.18"
10
+ "vite": "^6.2.4",
11
+ "vue": "^3.5.18"
12
12
  },
13
13
  "dependencies": {
14
- "dotenv": "16.6.1",
15
- "@tailwindcss/postcss": "4.1.11",
16
- "@vitejs/plugin-react": "4.7.0",
17
- "@vitejs/plugin-vue": "5.2.4",
18
- "@vitejs/plugin-vue-jsx": "4.2.0",
19
- "autoprefixer": "10.4.21",
20
- "code-inspector-plugin": "1.3.3",
21
- "rollup-plugin-visualizer": "5.14.0",
22
- "unplugin-auto-import": "19.3.0",
23
- "unplugin-vue-components": "28.8.0",
24
- "vite-plugin-cdn-import": "1.0.1",
25
- "vite-plugin-compression": "0.5.1",
26
- "vite-plugin-html": "3.2.2",
27
- "vite-plugin-imagemin": "0.6.1",
28
- "vite-plugin-pages": "0.33.2",
29
- "vite-plugin-pwa": "1.2.0",
30
- "vite-plugin-qiankun": "1.0.15",
31
- "vite-plugin-vue-devtools": "7.7.7",
32
- "lodash-es": "4.17.21",
33
- "postcss": "8.5.6",
34
- "postcss-selector-parser": "7.1.0"
14
+ "dotenv": "^16.6.1",
15
+ "@tailwindcss/postcss": "^4.1.11",
16
+ "@vitejs/plugin-react": "^4.7.0",
17
+ "@vitejs/plugin-vue": "^5.2.4",
18
+ "@vitejs/plugin-vue-jsx": "^4.2.0",
19
+ "autoprefixer": "^10.4.21",
20
+ "code-inspector-plugin": "^1.3.3",
21
+ "rollup-plugin-visualizer": "^5.14.0",
22
+ "unplugin-auto-import": "^19.3.0",
23
+ "unplugin-vue-components": "^28.8.0",
24
+ "vite-plugin-cdn-import": "^1.0.1",
25
+ "vite-plugin-compression": "^0.5.1",
26
+ "vite-plugin-html": "^3.2.2",
27
+ "vite-plugin-imagemin": "^0.6.1",
28
+ "vite-plugin-pages": "^0.33.2",
29
+ "vite-plugin-pwa": "^1.2.0",
30
+ "vite-plugin-qiankun": "^1.0.15",
31
+ "vite-plugin-vue-devtools": "^7.7.7",
32
+ "lodash-es": "^4.17.21",
33
+ "postcss": "^8.5.6",
34
+ "postcss-selector-parser": "^7.1.0"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"