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
- if (importers.length > 0) {
107
- const importPaths = importers.map((importer) => (0, getFilePath_js_1.getModuleFilePathAbsolute)(importer, config));
108
- errMsg += ` by ${(0, utils_js_1.joinEnglish)(importPaths, 'and')}`;
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.';
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROJECT_VERSION = void 0;
4
4
  // Automatically updated by @brillout/release-me
5
- exports.PROJECT_VERSION = '0.4.231-commit-7a947d3';
5
+ exports.PROJECT_VERSION = '0.4.231-commit-e1c3295';
@@ -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
- if (importers.length > 0) {
102
- const importPaths = importers.map((importer) => getModuleFilePathAbsolute(importer, config));
103
- errMsg += ` by ${joinEnglish(importPaths, 'and')}`;
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-7a947d3";
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-7a947d3';
2
+ export const PROJECT_VERSION = '0.4.231-commit-e1c3295';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.231-commit-7a947d3",
3
+ "version": "0.4.231-commit-e1c3295",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {