@moluoxixi/vite-config 0.0.31 → 0.0.32
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 +1 -2
- package/lib/index.cjs +1 -2
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -172,8 +172,7 @@ function addScopedAndReplacePrefixPlugin({
|
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
async function getViteConfig(Config = {}, params) {
|
|
175
|
-
const
|
|
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
|
|
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 || {};
|