vike 0.4.231-commit-7a947d3 → 0.4.231-commit-e1c3295
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.
|
@@ -103,9 +103,15 @@ function pluginFileEnv() {
|
|
|
103
103
|
modulePathPretty = modulePathPretty.replaceAll(suffix, picocolors_1.default.bold(suffix));
|
|
104
104
|
}
|
|
105
105
|
errMsg = `${(0, utils_js_1.capitalizeFirstLetter)(envExpect)}-only file ${modulePathPretty} (https://vike.dev/file-env) imported on the ${envActual}-side`;
|
|
106
|
-
|
|
107
|
-
const importPaths = importers
|
|
108
|
-
|
|
106
|
+
{
|
|
107
|
+
const importPaths = importers
|
|
108
|
+
.filter((importer) =>
|
|
109
|
+
// Can be Vike's virtual module: https://github.com/vikejs/vike/issues/2483
|
|
110
|
+
(0, utils_js_1.isFilePathAbsolute)(importer))
|
|
111
|
+
.map((importer) => (0, getFilePath_js_1.getModuleFilePathAbsolute)(importer, config));
|
|
112
|
+
if (importPaths.length > 0) {
|
|
113
|
+
errMsg += ` by ${(0, utils_js_1.joinEnglish)(importPaths, 'and')}`;
|
|
114
|
+
}
|
|
109
115
|
}
|
|
110
116
|
if (onlyWarn) {
|
|
111
117
|
errMsg += ' and, therefore, Vike will prevent building your app for production.';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { pluginFileEnv };
|
|
2
|
-
import { assert, assertUsage, assertWarning, capitalizeFirstLetter, joinEnglish, rollupSourceMapRemove } from '../utils.js';
|
|
2
|
+
import { assert, assertUsage, assertWarning, capitalizeFirstLetter, isFilePathAbsolute, joinEnglish, rollupSourceMapRemove } from '../utils.js';
|
|
3
3
|
import { extractAssetsRE } from './pluginExtractAssets.js';
|
|
4
4
|
import { extractExportNamesRE } from './pluginExtractExportNames.js';
|
|
5
5
|
import pc from '@brillout/picocolors';
|
|
@@ -98,9 +98,15 @@ function pluginFileEnv() {
|
|
|
98
98
|
modulePathPretty = modulePathPretty.replaceAll(suffix, pc.bold(suffix));
|
|
99
99
|
}
|
|
100
100
|
errMsg = `${capitalizeFirstLetter(envExpect)}-only file ${modulePathPretty} (https://vike.dev/file-env) imported on the ${envActual}-side`;
|
|
101
|
-
|
|
102
|
-
const importPaths = importers
|
|
103
|
-
|
|
101
|
+
{
|
|
102
|
+
const importPaths = importers
|
|
103
|
+
.filter((importer) =>
|
|
104
|
+
// Can be Vike's virtual module: https://github.com/vikejs/vike/issues/2483
|
|
105
|
+
isFilePathAbsolute(importer))
|
|
106
|
+
.map((importer) => getModuleFilePathAbsolute(importer, config));
|
|
107
|
+
if (importPaths.length > 0) {
|
|
108
|
+
errMsg += ` by ${joinEnglish(importPaths, 'and')}`;
|
|
109
|
+
}
|
|
104
110
|
}
|
|
105
111
|
if (onlyWarn) {
|
|
106
112
|
errMsg += ' and, therefore, Vike will prevent building your app for production.';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.231-commit-
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.231-commit-e1c3295";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically updated by @brillout/release-me
|
|
2
|
-
export const PROJECT_VERSION = '0.4.231-commit-
|
|
2
|
+
export const PROJECT_VERSION = '0.4.231-commit-e1c3295';
|