@forsakringskassan/vite-lib-config 6.0.0 → 6.0.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/vite.config.cjs +5 -0
- package/dist/vite.config.mjs +5 -0
- package/package.json +1 -1
package/dist/vite.config.cjs
CHANGED
|
@@ -8636,6 +8636,11 @@ function overwriteMerge(_a, b) {
|
|
|
8636
8636
|
return b;
|
|
8637
8637
|
}
|
|
8638
8638
|
function defineConfig(rootDir2, config = {}) {
|
|
8639
|
+
if (typeof rootDir2 !== "string") {
|
|
8640
|
+
throw new TypeError(
|
|
8641
|
+
`Expected first argument to be a "string", got "${typeof rootDir2}"`
|
|
8642
|
+
);
|
|
8643
|
+
}
|
|
8639
8644
|
return (0, import_vite2.defineConfig)(({ mode }) => {
|
|
8640
8645
|
return fkDefineConfig(rootDir2, mode, config);
|
|
8641
8646
|
});
|
package/dist/vite.config.mjs
CHANGED
|
@@ -8630,6 +8630,11 @@ function overwriteMerge(_a, b) {
|
|
|
8630
8630
|
return b;
|
|
8631
8631
|
}
|
|
8632
8632
|
function defineConfig(rootDir2, config = {}) {
|
|
8633
|
+
if (typeof rootDir2 !== "string") {
|
|
8634
|
+
throw new TypeError(
|
|
8635
|
+
`Expected first argument to be a "string", got "${typeof rootDir2}"`
|
|
8636
|
+
);
|
|
8637
|
+
}
|
|
8633
8638
|
return viteDefineConfig(({ mode }) => {
|
|
8634
8639
|
return fkDefineConfig(rootDir2, mode, config);
|
|
8635
8640
|
});
|