vike 0.4.239-commit-050a4a3 → 0.4.239-commit-59f1017

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.
Files changed (53) hide show
  1. package/dist/cjs/node/prerender/runPrerender.js +1 -0
  2. package/dist/cjs/node/runtime/globalContext.js +9 -0
  3. package/dist/cjs/node/vite/onLoad.js +1 -1
  4. package/dist/cjs/node/vite/plugins/pluginBuild/handleAssetsManifest.js +20 -5
  5. package/dist/cjs/node/vite/plugins/pluginBuild/pluginBuildConfig.js +15 -3
  6. package/dist/cjs/node/vite/plugins/pluginBuild/pluginModuleBanner.js +13 -7
  7. package/dist/cjs/node/vite/plugins/pluginBuild.js +1 -0
  8. package/dist/cjs/node/vite/plugins/pluginEnvVars.js +4 -5
  9. package/dist/cjs/node/vite/plugins/pluginExtractAssets.js +9 -5
  10. package/dist/cjs/node/vite/plugins/pluginExtractExportNames.js +11 -5
  11. package/dist/cjs/node/vite/plugins/pluginFileEnv.js +43 -30
  12. package/dist/cjs/node/vite/plugins/pluginNonRunnableDev.js +19 -7
  13. package/dist/cjs/node/vite/plugins/pluginReplaceConstants.js +23 -5
  14. package/dist/cjs/node/vite/plugins/pluginVirtualFiles.js +12 -7
  15. package/dist/cjs/utils/PROJECT_VERSION.js +1 -1
  16. package/dist/cjs/utils/virtualFileId.js +15 -11
  17. package/dist/esm/client/runtime-client-routing/createPageContextClientSide.d.ts +1 -1
  18. package/dist/esm/client/runtime-client-routing/getPageContextFromHooks.d.ts +2 -2
  19. package/dist/esm/client/runtime-client-routing/globalContext.d.ts +1 -1
  20. package/dist/esm/client/runtime-client-routing/renderPageClientSide.d.ts +3 -3
  21. package/dist/esm/client/runtime-client-routing/renderPageClientSide.js +14 -1
  22. package/dist/esm/client/runtime-server-routing/createPageContextClientSide.d.ts +1 -1
  23. package/dist/esm/client/runtime-server-routing/globalContext.d.ts +1 -1
  24. package/dist/esm/client/shared/createGetGlobalContextClient.d.ts +1 -1
  25. package/dist/esm/node/prerender/runPrerender.d.ts +4 -2
  26. package/dist/esm/node/prerender/runPrerender.js +2 -1
  27. package/dist/esm/node/runtime/globalContext.d.ts +13 -2
  28. package/dist/esm/node/runtime/globalContext.js +10 -1
  29. package/dist/esm/node/runtime/renderPage/createPageContextServerSide.d.ts +4 -2
  30. package/dist/esm/node/runtime/renderPage/loadPageConfigsLazyServerSide.d.ts +4 -2
  31. package/dist/esm/node/runtime/renderPage/renderPageAfterRoute.d.ts +8 -4
  32. package/dist/esm/node/runtime/renderPage.d.ts +4 -2
  33. package/dist/esm/node/vite/onLoad.js +1 -1
  34. package/dist/esm/node/vite/plugins/pluginBuild/handleAssetsManifest.d.ts +4 -0
  35. package/dist/esm/node/vite/plugins/pluginBuild/handleAssetsManifest.js +21 -6
  36. package/dist/esm/node/vite/plugins/pluginBuild/pluginBuildConfig.js +16 -4
  37. package/dist/esm/node/vite/plugins/pluginBuild/pluginModuleBanner.js +14 -8
  38. package/dist/esm/node/vite/plugins/pluginBuild.js +1 -0
  39. package/dist/esm/node/vite/plugins/pluginCommon.js +1 -1
  40. package/dist/esm/node/vite/plugins/pluginEnvVars.js +4 -5
  41. package/dist/esm/node/vite/plugins/pluginExtractAssets.js +9 -3
  42. package/dist/esm/node/vite/plugins/pluginExtractExportNames.js +11 -5
  43. package/dist/esm/node/vite/plugins/pluginFileEnv.js +43 -30
  44. package/dist/esm/node/vite/plugins/pluginNonRunnableDev.js +20 -8
  45. package/dist/esm/node/vite/plugins/pluginReplaceConstants.d.ts +11 -0
  46. package/dist/esm/node/vite/plugins/pluginReplaceConstants.js +22 -5
  47. package/dist/esm/node/vite/plugins/pluginVirtualFiles.js +13 -8
  48. package/dist/esm/shared/createGlobalContextShared.d.ts +3 -3
  49. package/dist/esm/utils/PROJECT_VERSION.d.ts +1 -1
  50. package/dist/esm/utils/PROJECT_VERSION.js +1 -1
  51. package/dist/esm/utils/virtualFileId.d.ts +4 -0
  52. package/dist/esm/utils/virtualFileId.js +14 -11
  53. package/package.json +5 -5
@@ -8,19 +8,34 @@ import { getExportNames } from '../shared/parseEsModule.js';
8
8
  import { normalizeId } from '../shared/normalizeId.js';
9
9
  import { isV1Design } from '../shared/resolveVikeConfigInternal.js';
10
10
  import { isViteServerSide, isViteServerSide_extraSafe } from '../shared/isViteServerSide.js';
11
+ const skipNodeModules = '/node_modules/'; // Only apply `.server.js` and `.client.js` to user files
12
+ const filterRolldown = {
13
+ id: {
14
+ include: ['client', 'server'].map((env) => `**/*${getSuffix(env)}*`),
15
+ exclude: [`**${skipNodeModules}**`],
16
+ },
17
+ };
18
+ const filterFunction = (id) => {
19
+ if (id.includes(skipNodeModules))
20
+ return false;
21
+ if (!id.includes(getSuffix('client')) && !id.includes(getSuffix('server')))
22
+ return false;
23
+ return true;
24
+ };
11
25
  function pluginFileEnv() {
12
26
  let config;
13
27
  let viteDevServer;
14
28
  return {
15
29
  name: 'vike:pluginFileEnv',
16
30
  load: {
31
+ filter: filterRolldown,
17
32
  handler(id, options) {
18
33
  // In build, we use generateBundle() instead of the load() hook. Using load() works for dynamic imports in dev thanks to Vite's lazy transpiling, but it doesn't work in build because Rollup transpiles any dynamically imported module even if it's never actually imported.
19
34
  if (!viteDevServer)
20
35
  return;
21
36
  if (!isV1Design())
22
37
  return;
23
- if (skip(id))
38
+ if (skip(id, config.root))
24
39
  return;
25
40
  // For `.vue` files: https://github.com/vikejs/vike/issues/1912#issuecomment-2394981475
26
41
  if (id.endsWith('?direct'))
@@ -37,12 +52,13 @@ function pluginFileEnv() {
37
52
  },
38
53
  // In production, we have to use transform() to replace modules with a runtime error because generateBundle() doesn't work for dynamic imports. In production, dynamic imports can only be verified at runtime.
39
54
  transform: {
55
+ filter: filterRolldown,
40
56
  async handler(code, id, options) {
41
57
  id = normalizeId(id);
42
58
  // In dev, only using load() is enough as it also works for dynamic imports (see sibling comment).
43
59
  if (viteDevServer)
44
60
  return;
45
- if (skip(id))
61
+ if (skip(id, config.root))
46
62
  return;
47
63
  const isServerSide = isViteServerSide_extraSafe(config, this.environment, options);
48
64
  if (!isWrongEnv(id, isServerSide))
@@ -61,7 +77,8 @@ function pluginFileEnv() {
61
77
  generateBundle: {
62
78
  handler() {
63
79
  Array.from(this.getModuleIds())
64
- .filter((id) => !skip(id))
80
+ .filter(filterFunction)
81
+ .filter((id) => !skip(id, config.root))
65
82
  .forEach((moduleId) => {
66
83
  const mod = this.getModuleInfo(moduleId);
67
84
  const { importers } = mod;
@@ -124,31 +141,27 @@ function pluginFileEnv() {
124
141
  }
125
142
  return errMsg;
126
143
  }
127
- function isWrongEnv(moduleId, isServerSide) {
128
- const modulePath = getModulePath(moduleId);
129
- const suffixWrong = getSuffix(isServerSide ? 'client' : 'server');
130
- return modulePath.includes(suffixWrong);
131
- }
132
- function skip(id) {
133
- // TO-DO/next-major-release: remove
134
- if (extractAssetsRE.test(id) || extractExportNamesRE.test(id))
135
- return true;
136
- if (!id.includes(getSuffix('client')) && !id.includes(getSuffix('server')))
137
- return true;
138
- if (getModulePath(id).endsWith('.css'))
139
- return true;
140
- // Apply `.server.js` and `.client.js` only to user files
141
- if (id.includes('/node_modules/'))
142
- return true;
143
- // Only user files
144
- if (!id.startsWith(config.root))
145
- return true;
146
- return false;
147
- }
148
- function getSuffix(env) {
149
- return `.${env}.`;
150
- }
151
- function getModulePath(moduleId) {
152
- return moduleId.split('?')[0];
153
- }
144
+ }
145
+ function isWrongEnv(moduleId, isServerSide) {
146
+ const modulePath = getModulePath(moduleId);
147
+ const suffixWrong = getSuffix(isServerSide ? 'client' : 'server');
148
+ return modulePath.includes(suffixWrong);
149
+ }
150
+ function skip(id, userRootDir) {
151
+ assert(filterFunction(id));
152
+ // TO-DO/next-major-release: remove
153
+ if (extractAssetsRE.test(id) || extractExportNamesRE.test(id))
154
+ return true;
155
+ if (getModulePath(id).endsWith('.css'))
156
+ return true;
157
+ // Skip linked dependencies
158
+ if (!id.startsWith(userRootDir))
159
+ return true;
160
+ return false;
161
+ }
162
+ function getSuffix(env) {
163
+ return `.${env}.`;
164
+ }
165
+ function getModulePath(moduleId) {
166
+ return moduleId.split('?')[0];
154
167
  }
@@ -1,9 +1,20 @@
1
1
  export { pluginNonRunnableDev };
2
- import { createViteRPC, assertIsNotProductionRuntime, requireResolveDistFile, isRunnableDevEnvironment, } from '../utils.js';
2
+ import { createViteRPC, assertIsNotProductionRuntime, requireResolveDistFile, isRunnableDevEnvironment, assert, escapeRegex, isDevCheck, } from '../utils.js';
3
3
  import { retrievePageAssetsDev } from '../../runtime/renderPage/getPageAssets/retrievePageAssetsDev.js';
4
4
  import { getViteConfigRuntime } from '../shared/getViteConfigRuntime.js';
5
5
  import { getMagicString } from '../shared/getMagicString.js';
6
6
  assertIsNotProductionRuntime();
7
+ const distFileIsNonRunnableDev = requireResolveDistFile('dist/esm/utils/isNonRunnableDev.js');
8
+ const distFileGlobalContext = requireResolveDistFile('dist/esm/node/runtime/globalContext.js');
9
+ const filterRolldown = {
10
+ id: {
11
+ include: [distFileIsNonRunnableDev, distFileGlobalContext].map((filePath) => new RegExp(`^${escapeRegex(filePath)}($|${escapeRegex('?')}.*)`)),
12
+ },
13
+ };
14
+ const filterFunction = (id) => {
15
+ const idWithoutQuery = getIdWithoutQuery(id);
16
+ return idWithoutQuery === distFileIsNonRunnableDev || idWithoutQuery === distFileGlobalContext;
17
+ };
7
18
  function getViteRpcFunctions(viteDevServer) {
8
19
  return {
9
20
  async transformIndexHtmlRPC(html) {
@@ -18,11 +29,10 @@ function getViteRpcFunctions(viteDevServer) {
18
29
  };
19
30
  }
20
31
  function pluginNonRunnableDev() {
21
- const distFileIsNonRunnableDev = requireResolveDistFile('dist/esm/utils/isNonRunnableDev.js');
22
- const distFileGlobalContext = requireResolveDistFile('dist/esm/node/runtime/globalContext.js');
23
32
  let config;
24
33
  return {
25
34
  name: 'vike:pluginNonRunnableDev',
35
+ apply: (_, configEnv) => isDevCheck(configEnv),
26
36
  configureServer: {
27
37
  handler(viteDevServer) {
28
38
  createViteRPC(viteDevServer, getViteRpcFunctions);
@@ -34,12 +44,11 @@ function pluginNonRunnableDev() {
34
44
  },
35
45
  },
36
46
  transform: {
47
+ filter: filterRolldown,
37
48
  handler(code, id) {
38
- if (!config._isDev)
39
- return;
40
- const idWithoutQuery = id.split('?')[0];
41
- if (idWithoutQuery !== distFileIsNonRunnableDev && idWithoutQuery !== distFileGlobalContext)
42
- return;
49
+ assert(config._isDev);
50
+ assert(filterFunction(id));
51
+ const idWithoutQuery = getIdWithoutQuery(id);
43
52
  if (isRunnableDevEnvironment(this.environment))
44
53
  return;
45
54
  const { magicString, getMagicStringResult } = getMagicString(code, id);
@@ -54,3 +63,6 @@ function pluginNonRunnableDev() {
54
63
  },
55
64
  };
56
65
  }
66
+ function getIdWithoutQuery(id) {
67
+ return id.split('?')[0];
68
+ }
@@ -1,3 +1,14 @@
1
1
  export { pluginReplaceConstants };
2
+ export { filterFunction };
3
+ export { filterRolldown };
2
4
  import type { Plugin } from 'vite';
5
+ declare const filterRolldown: {
6
+ id: {
7
+ exclude: string;
8
+ };
9
+ code: {
10
+ include: string;
11
+ };
12
+ };
13
+ declare const filterFunction: (id: string, code: string) => boolean;
3
14
  declare function pluginReplaceConstants(): Plugin;
@@ -1,8 +1,27 @@
1
1
  export { pluginReplaceConstants };
2
+ export { filterFunction };
3
+ export { filterRolldown };
2
4
  import { assert, assertPosixPath } from '../utils.js';
3
5
  import { normalizeId } from '../shared/normalizeId.js';
4
6
  import { isViteServerSide_extraSafe } from '../shared/isViteServerSide.js';
5
7
  import { getMagicString } from '../shared/getMagicString.js';
8
+ const skipNodeModules = '/node_modules/';
9
+ const skipIrrelevant = 'import.meta.env.';
10
+ const filterRolldown = {
11
+ id: {
12
+ exclude: `**${skipNodeModules}**`,
13
+ },
14
+ code: {
15
+ include: skipIrrelevant,
16
+ },
17
+ };
18
+ const filterFunction = (id, code) => {
19
+ if (id.includes(skipNodeModules))
20
+ return false;
21
+ if (!code.includes(skipIrrelevant))
22
+ return false;
23
+ return true;
24
+ };
6
25
  function pluginReplaceConstants() {
7
26
  let config;
8
27
  return {
@@ -15,16 +34,14 @@ function pluginReplaceConstants() {
15
34
  },
16
35
  },
17
36
  transform: {
37
+ filter: filterRolldown,
18
38
  handler(code, id, options) {
19
39
  id = normalizeId(id);
20
40
  assertPosixPath(id);
21
- if (id.includes('/node_modules/'))
22
- return;
23
41
  assertPosixPath(config.root);
24
42
  if (!id.startsWith(config.root))
25
- return;
26
- if (!code.includes('import.meta.env.'))
27
- return;
43
+ return; // skip linked dependencies
44
+ assert(filterFunction(id, code));
28
45
  const isBuild = config.command === 'build';
29
46
  assert(isBuild);
30
47
  // Used by vike.dev
@@ -2,7 +2,7 @@ export { pluginVirtualFiles };
2
2
  import { normalizePath } from 'vite';
3
3
  import { generateVirtualFilePageEntry } from './pluginVirtualFiles/generateVirtualFilePageEntry.js';
4
4
  import { generateVirtualFileGlobalEntryWithOldDesign } from './pluginVirtualFiles/generateVirtualFileGlobalEntryWithOldDesign.js';
5
- import { assert, assertPosixPath, isScriptFile, addVirtualFileIdPrefix, isVirtualFileId, removeVirtualFileIdPrefix, } from '../utils.js';
5
+ import { assert, assertPosixPath, isScriptFile, addVirtualFileIdPrefix, isVirtualFileId, removeVirtualFileIdPrefix, escapeRegex, virtualFileIdPrefix1, virtualFileIdPrefix2, } from '../utils.js';
6
6
  import { parseVirtualFileId } from '../../shared/virtualFileId.js';
7
7
  import { reloadVikeConfig, isV1Design, getVikeConfigInternalOptional } from '../shared/resolveVikeConfigInternal.js';
8
8
  import pc from '@brillout/picocolors';
@@ -12,6 +12,12 @@ import { isRunnable, updateUserFiles } from '../../runtime/globalContext.js';
12
12
  import { isPlusFile } from '../shared/resolveVikeConfigInternal/crawlPlusFiles.js';
13
13
  import { isTemporaryBuildFile } from '../shared/resolveVikeConfigInternal/transpileAndExecuteFile.js';
14
14
  import { getVikeConfigError } from '../../shared/getVikeConfigError.js';
15
+ const filterRolldown = {
16
+ id: {
17
+ include: new RegExp(`^(${escapeRegex(virtualFileIdPrefix1)}|${escapeRegex(virtualFileIdPrefix2)})`),
18
+ },
19
+ };
20
+ const filterFunction = (id) => isVirtualFileId(id);
15
21
  function pluginVirtualFiles() {
16
22
  let config;
17
23
  return {
@@ -25,10 +31,10 @@ function pluginVirtualFiles() {
25
31
  },
26
32
  },
27
33
  resolveId: {
34
+ filter: filterRolldown,
28
35
  handler(id) {
29
- if (isVirtualFileId(id)) {
30
- return addVirtualFileIdPrefix(id);
31
- }
36
+ assert(filterFunction(id));
37
+ return addVirtualFileIdPrefix(id);
32
38
  },
33
39
  },
34
40
  handleHotUpdate: {
@@ -44,9 +50,9 @@ function pluginVirtualFiles() {
44
50
  },
45
51
  },
46
52
  load: {
53
+ filter: filterRolldown,
47
54
  async handler(id, options) {
48
- if (!isVirtualFileId(id))
49
- return undefined;
55
+ assert(filterFunction(id));
50
56
  id = removeVirtualFileIdPrefix(id);
51
57
  const isDev = config._isDev;
52
58
  assert(typeof isDev === 'boolean');
@@ -136,8 +142,7 @@ async function handleHotUpdate(ctx, config) {
136
142
  // Vite already invalidates it, but *after* handleHotUpdate() and thus after server.ssrLoadModule()
137
143
  ctx.modules.forEach((mod) => server.moduleGraph.invalidateModule(mod));
138
144
  if (isRunnable(server)) {
139
- // TODO/now: await
140
- updateUserFiles();
145
+ await updateUserFiles();
141
146
  }
142
147
  }
143
148
  }
@@ -9,8 +9,8 @@ import type { GlobalContextServerInternal } from '../node/runtime/globalContext.
9
9
  import type { GlobalContextClientInternal } from '../client/runtime-client-routing/globalContext.js';
10
10
  import { type Hook } from './hooks/getHook.js';
11
11
  declare const getGlobalContextSyncErrMsg = "The global context isn't set yet, call getGlobalContextSync() later or use getGlobalContext() instead.";
12
- declare function createGlobalContextShared<GlobalContextAdded extends Record<string, any>, GlobalContextAddedAsync extends Record<string, any>>(virtualFileExportsGlobalEntry: unknown, globalObject: {
13
- globalContext?: Record<string, unknown>;
12
+ declare function createGlobalContextShared<GlobalContextAdded extends {}, GlobalContextAddedAsync extends {}>(virtualFileExportsGlobalEntry: unknown, globalObject: {
13
+ globalContext?: {};
14
14
  onCreateGlobalContextHooks?: Hook[];
15
15
  previousCreateGlobalContextPromise?: Promise<void>;
16
16
  }, addGlobalContext?: (globalContext: GlobalContextBase) => GlobalContextAdded, addGlobalContextTmp?: (globalContext: GlobalContextBase) => Promise<GlobalContextAdded>, addGlobalContextAsync?: (globalContext: GlobalContextBase) => Promise<GlobalContextAddedAsync>): Promise<{
@@ -64,7 +64,7 @@ declare function createGlobalContextShared<GlobalContextAdded extends Record<str
64
64
  _pageConfigs: PageConfigRuntime[];
65
65
  _pageConfigGlobal: import("../types/PageConfig.js").PageConfigGlobalRuntime;
66
66
  _allPageIds: string[];
67
- } & GlobalContextAdded & GlobalContextAddedAsync>;
67
+ } & GlobalContextAdded & Awaited<GlobalContextAddedAsync>>;
68
68
  type GlobalContextBasePublic = Pick<GlobalContextBase, 'config' | 'pages' | 'isGlobalContext'>;
69
69
  type GlobalContextBase = ReturnType<typeof createGlobalContextBase>;
70
70
  declare function createGlobalContextBase(virtualFileExportsGlobalEntry: unknown): {
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.239-commit-050a4a3";
1
+ export declare const PROJECT_VERSION: "0.4.239-commit-59f1017";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.239-commit-050a4a3';
2
+ export const PROJECT_VERSION = '0.4.239-commit-59f1017';
@@ -1,6 +1,10 @@
1
1
  export { isVirtualFileId };
2
2
  export { addVirtualFileIdPrefix };
3
3
  export { removeVirtualFileIdPrefix };
4
+ export { virtualFileIdPrefix1 };
5
+ export { virtualFileIdPrefix2 };
6
+ declare const virtualFileIdPrefix1 = "virtual:vike:";
7
+ declare const virtualFileIdPrefix2: "\0virtual:vike:";
4
8
  declare function isVirtualFileId(id: string): boolean;
5
9
  declare function addVirtualFileIdPrefix(id: string): string;
6
10
  declare function removeVirtualFileIdPrefix(id: string): string;
@@ -1,34 +1,37 @@
1
1
  export { isVirtualFileId };
2
2
  export { addVirtualFileIdPrefix };
3
3
  export { removeVirtualFileIdPrefix };
4
+ export { virtualFileIdPrefix1 };
5
+ export { virtualFileIdPrefix2 };
4
6
  import pc from '@brillout/picocolors';
5
7
  import { assert, assertUsage } from './assert.js';
6
8
  import { assertIsNotBrowser } from './assertIsNotBrowser.js';
7
9
  assertIsNotBrowser();
8
- const idBase = 'virtual:vike:';
10
+ const virtualFileIdPrefix1 = 'virtual:vike:';
9
11
  // https://vitejs.dev/guide/api-plugin.html#virtual-modules-convention
10
- const prefix = '\0';
12
+ const convention = '\0';
13
+ const virtualFileIdPrefix2 = `${convention}${virtualFileIdPrefix1}`;
11
14
  function isVirtualFileId(id) {
12
- if (id.startsWith(idBase))
15
+ if (id.startsWith(virtualFileIdPrefix1))
13
16
  return true;
14
- if (id.startsWith(prefix + idBase))
17
+ if (id.startsWith(virtualFileIdPrefix2))
15
18
  return true;
16
19
  // https://github.com/vikejs/vike/issues/1985
17
- assertUsage(!id.includes(idBase), `Encountered a module ID ${pc.cyan(id)} that is unexpected. Are you using a tool that modifies the ID of modules? For example, the baseUrl setting in tsconfig.json cannot be used.`);
20
+ assertUsage(!id.includes(virtualFileIdPrefix1), `Encountered a module ID ${pc.cyan(id)} that is unexpected. Are you using a tool that modifies the ID of modules? For example, the baseUrl setting in tsconfig.json cannot be used.`);
18
21
  return false;
19
22
  }
20
23
  function addVirtualFileIdPrefix(id) {
21
24
  assert(isVirtualFileId(id));
22
- if (!id.startsWith(prefix)) {
23
- id = prefix + id;
25
+ if (!id.startsWith(convention)) {
26
+ id = convention + id;
24
27
  }
25
- assert(id.startsWith(prefix));
28
+ assert(id.startsWith(convention));
26
29
  return id;
27
30
  }
28
31
  function removeVirtualFileIdPrefix(id) {
29
- if (id.startsWith(prefix)) {
30
- id = id.slice(prefix.length);
32
+ if (id.startsWith(convention)) {
33
+ id = id.slice(convention.length);
31
34
  }
32
- assert(!id.startsWith(prefix));
35
+ assert(!id.startsWith(convention));
33
36
  return id;
34
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.239-commit-050a4a3",
3
+ "version": "0.4.239-commit-59f1017",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {
@@ -132,7 +132,7 @@
132
132
  "@brillout/json-serializer": "^0.5.20",
133
133
  "@brillout/picocolors": "^1.0.26",
134
134
  "@brillout/require-shim": "^0.1.2",
135
- "@brillout/vite-plugin-server-entry": "^0.7.13",
135
+ "@brillout/vite-plugin-server-entry": "^0.7.14",
136
136
  "acorn": "^8.0.0",
137
137
  "cac": "^6.0.0",
138
138
  "es-module-lexer": "^1.0.0",
@@ -144,11 +144,11 @@
144
144
  "sirv": "^3.0.1",
145
145
  "source-map-support": "^0.5.0",
146
146
  "tinyglobby": "^0.2.10",
147
- "vite": ">=6.0.0"
147
+ "vite": ">=6.3.0"
148
148
  },
149
149
  "peerDependencies": {
150
150
  "react-streaming": ">=0.3.42",
151
- "vite": ">=6.0.0"
151
+ "vite": ">=6.3.0"
152
152
  },
153
153
  "peerDependenciesMeta": {
154
154
  "react-streaming": {
@@ -263,7 +263,7 @@
263
263
  "react-streaming": "^0.4.3",
264
264
  "rimraf": "^5.0.5",
265
265
  "typescript": "^5.8.3",
266
- "vite": "^7.1.3"
266
+ "vite": "^7.1.5"
267
267
  },
268
268
  "scripts": {
269
269
  "dev": "tsc --watch",