vike 0.4.246-commit-0dbb3ec → 0.4.246-commit-1ceb8ac

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,38 +21,21 @@ function pluginDev() {
21
21
  handler() {
22
22
  return {
23
23
  appType: 'custom',
24
- // TO-DO/next-major-release: remove (AFAICT we only need to use config.optimizeDeps for the old design)
25
24
  optimizeDeps: {
26
25
  exclude: [
27
- // We exclude Vike's client runtime to be able to use Vite's import.meta.glob()
26
+ // We must exclude Vike's client runtime so it can import virtual modules
28
27
  'vike/client',
29
28
  'vike/client/router',
30
- // It seems like client-side/isomorphic imports also need to be excluded, in order to avoid the following:
31
- // ```
32
- // Client runtime loaded twice https://vike.dev/client-runtime-duplicated
33
- // ```
34
- 'vike/routing',
35
- 'vike/getPageContext',
36
- // We exclude @brillout/json-serializer and @brillout/picocolors to avoid:
29
+ ],
30
+ include: [
31
+ // Avoid:
37
32
  // ```
38
33
  // 9:28:58 AM [vite] ✨ new dependencies optimized: @brillout/json-serializer/parse
39
34
  // 9:28:58 AM [vite] ✨ optimized dependencies changed. reloading
40
35
  // ```
41
- '@brillout/json-serializer/parse',
42
- '@brillout/json-serializer/stringify',
43
- '@brillout/picocolors',
44
- // We exclude all packages that depend on any optimizeDeps.exclude entry because, otherwise, the entry cannot be resolved when using pnpm. For example:
45
- // ```
46
- // Failed to resolve import "@brillout/json-serializer/parse" from "../../packages/vike-react-query/dist/renderer/VikeReactQueryWrapper.js". Does the file exist?
47
- // 343| // ../../node_modules/.pnpm/react-streaming@0.3.16_react-dom@18.2.0_react@18.2.0/node_modules/react-streaming/dist/esm/client/useAsync.js
48
- // 344| import { parse as parse2 } from "@brillout/json-serializer/parse";
49
- // ```
50
- // The source map is confusing, the import actually lives at node_modules/.vite/deps/vike-react-query_renderer_VikeReactQueryWrapper.js which contains:
51
- // ```js
52
- // // ../../node_modules/.pnpm/react-streaming@0.3.16_react-dom@18.2.0_react@18.2.0/node_modules/react-streaming/dist/esm/client/useAsync.js
53
- // import { parse as parse2 } from "@brillout/json-serializer/parse";
54
- // ```
55
- 'react-streaming',
36
+ 'vike > @brillout/json-serializer/parse',
37
+ 'vike > @brillout/json-serializer/stringify',
38
+ 'vike > @brillout/picocolors',
56
39
  ],
57
40
  },
58
41
  };
@@ -73,8 +73,10 @@ function resolveImportPathWithNode(pointerImportData, importerFilePath, userRoot
73
73
  });
74
74
  if (!filePathAbsoluteFilesystem) {
75
75
  assert(!isImportPathRelative(pointerImportData.importPath));
76
+ /* This assertion fails if the npm package has a wrongly defined package.json#exports
76
77
  // Libraries don't use path aliases => filePathAbsoluteFilesystem should be defined
77
- assert(!importerFilePathAbsolute.includes('node_modules'));
78
+ assert(!importerFilePathAbsolute.includes('node_modules'))
79
+ */
78
80
  }
79
81
  return filePathAbsoluteFilesystem;
80
82
  }
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.246-commit-0dbb3ec";
1
+ export declare const PROJECT_VERSION: "0.4.246-commit-1ceb8ac";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.246-commit-0dbb3ec';
2
+ export const PROJECT_VERSION = '0.4.246-commit-1ceb8ac';
@@ -41,7 +41,7 @@ function assert(condition, debugInfo) {
41
41
  return null;
42
42
  }
43
43
  const debugInfoSerialized = typeof debugInfo === 'string' ? debugInfo : JSON.stringify(debugInfo);
44
- return pc.dim(`Debug info for Vike maintainers (you can ignore this): ${debugInfoSerialized}`);
44
+ return pc.dim(`Debug for maintainers (you can ignore this): ${debugInfoSerialized}`);
45
45
  })();
46
46
  const link = pc.underline('https://github.com/vikejs/vike/issues/new?template=bug.yml');
47
47
  let errMsg = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.246-commit-0dbb3ec",
3
+ "version": "0.4.246-commit-1ceb8ac",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {