vike 0.4.228-commit-51f0080 → 0.4.228-commit-d423e4f

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.
@@ -21,8 +21,11 @@ function pluginModuleBanner() {
21
21
  transform: {
22
22
  order: 'post',
23
23
  handler(code, id, options) {
24
- if (!(0, isViteServerBuild_js_1.isViteServerBuild_safe)(config, options))
24
+ if (!(0, isViteServerBuild_js_1.isViteServerBuild_safe)(config, options) &&
25
+ // Inject module banners if user sets `build.minify` to `false` for inspecting dist/client/
26
+ config.build.minify) {
25
27
  return;
28
+ }
26
29
  if (id.startsWith('\0'))
27
30
  id = id;
28
31
  id = (0, virtual_files_js_1.removeVirtualIdTag)(id);
@@ -682,15 +682,12 @@ function resolveIsGlobalValue(configDefGlobal, source, plusFilesAll) {
682
682
  return isGlobal;
683
683
  }
684
684
  function getConfigNamesSetByPlusFile(plusFile) {
685
- let configNames = [];
686
685
  if (!plusFile.isConfigFile) {
687
- configNames.push(plusFile.configName);
686
+ return [plusFile.configName];
688
687
  }
689
- if (!plusFile.isNotLoaded) {
690
- configNames.push(...Object.keys(plusFile.fileExportsByConfigName));
688
+ else {
689
+ return Object.keys(plusFile.fileExportsByConfigName);
691
690
  }
692
- configNames = (0, utils_js_1.unique)(configNames);
693
- return configNames;
694
691
  }
695
692
  function getConfigDefinitions(plusFilesRelevant, filter) {
696
693
  let configDefinitions = { ...configDefinitionsBuiltIn_js_1.configDefinitionsBuiltIn };
@@ -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.228-commit-51f0080';
5
+ exports.PROJECT_VERSION = '0.4.228-commit-d423e4f';
@@ -16,8 +16,11 @@ function pluginModuleBanner() {
16
16
  transform: {
17
17
  order: 'post',
18
18
  handler(code, id, options) {
19
- if (!isViteServerBuild_safe(config, options))
19
+ if (!isViteServerBuild_safe(config, options) &&
20
+ // Inject module banners if user sets `build.minify` to `false` for inspecting dist/client/
21
+ config.build.minify) {
20
22
  return;
23
+ }
21
24
  if (id.startsWith('\0'))
22
25
  id = id;
23
26
  id = removeVirtualIdTag(id);
@@ -677,15 +677,12 @@ function resolveIsGlobalValue(configDefGlobal, source, plusFilesAll) {
677
677
  return isGlobal;
678
678
  }
679
679
  function getConfigNamesSetByPlusFile(plusFile) {
680
- let configNames = [];
681
680
  if (!plusFile.isConfigFile) {
682
- configNames.push(plusFile.configName);
681
+ return [plusFile.configName];
683
682
  }
684
- if (!plusFile.isNotLoaded) {
685
- configNames.push(...Object.keys(plusFile.fileExportsByConfigName));
683
+ else {
684
+ return Object.keys(plusFile.fileExportsByConfigName);
686
685
  }
687
- configNames = unique(configNames);
688
- return configNames;
689
686
  }
690
687
  function getConfigDefinitions(plusFilesRelevant, filter) {
691
688
  let configDefinitions = { ...configDefinitionsBuiltIn };
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.228-commit-51f0080";
1
+ export declare const PROJECT_VERSION: "0.4.228-commit-d423e4f";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.228-commit-51f0080';
2
+ export const PROJECT_VERSION = '0.4.228-commit-d423e4f';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.228-commit-51f0080",
3
+ "version": "0.4.228-commit-d423e4f",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {
@@ -256,7 +256,7 @@
256
256
  "react-streaming": "^0.3.47",
257
257
  "rimraf": "^5.0.5",
258
258
  "typescript": "^5.8.2",
259
- "vite": "^6.2.1"
259
+ "vite": "^6.2.5"
260
260
  },
261
261
  "scripts": {
262
262
  "dev": "tsc --watch",