vike 0.4.228-commit-51f0080 → 0.4.228-commit-67e28cd

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);
@@ -11,6 +11,8 @@ exports.ignorePatternsBuiltIn = [
11
11
  // +Page.telefunc.js
12
12
  // ```
13
13
  '**/*.telefunc.*',
14
+ // https://github.com/vikejs/vike/issues/1589#issuecomment-2031925598
15
+ '**/.history/**',
14
16
  // https://github.com/vikejs/vike/discussions/2222
15
17
  '**/*.generated.*'
16
18
  ];
@@ -126,7 +126,7 @@ async function transpileWithEsbuild(filePath, userRootDir, transformImports, esb
126
126
  // - Sitll required for esbuild@0.24.0 (November 2024).
127
127
  // - Let's try to remove this workaround again later.
128
128
  if (resolved.errors.length > 0) {
129
- const resolvedWithNode = (0, utils_js_1.requireResolveOptional)(path, args.resolveDir);
129
+ const resolvedWithNode = (0, utils_js_1.requireResolveOptional)(path, (0, utils_js_1.toPosixPath)(args.resolveDir));
130
130
  if (debugEsbuildResolve.isActivated)
131
131
  debugEsbuildResolve('resolvedWithNode', resolvedWithNode);
132
132
  if (resolvedWithNode)
@@ -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-67e28cd';
@@ -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);
@@ -1 +1 @@
1
- export declare const ignorePatternsBuiltIn: readonly ["**/node_modules/**", "**/ejected/**", "**/*.telefunc.*", "**/*.generated.*"];
1
+ export declare const ignorePatternsBuiltIn: readonly ["**/node_modules/**", "**/ejected/**", "**/*.telefunc.*", "**/.history/**", "**/*.generated.*"];
@@ -8,6 +8,8 @@ export const ignorePatternsBuiltIn = [
8
8
  // +Page.telefunc.js
9
9
  // ```
10
10
  '**/*.telefunc.*',
11
+ // https://github.com/vikejs/vike/issues/1589#issuecomment-2031925598
12
+ '**/.history/**',
11
13
  // https://github.com/vikejs/vike/discussions/2222
12
14
  '**/*.generated.*'
13
15
  ];
@@ -121,7 +121,7 @@ async function transpileWithEsbuild(filePath, userRootDir, transformImports, esb
121
121
  // - Sitll required for esbuild@0.24.0 (November 2024).
122
122
  // - Let's try to remove this workaround again later.
123
123
  if (resolved.errors.length > 0) {
124
- const resolvedWithNode = requireResolveOptional(path, args.resolveDir);
124
+ const resolvedWithNode = requireResolveOptional(path, toPosixPath(args.resolveDir));
125
125
  if (debugEsbuildResolve.isActivated)
126
126
  debugEsbuildResolve('resolvedWithNode', resolvedWithNode);
127
127
  if (resolvedWithNode)
@@ -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-67e28cd";
@@ -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-67e28cd';
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-67e28cd",
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",