vike 0.4.153-commit-159c659 → 0.4.153-commit-3e842bb

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.
@@ -48,13 +48,18 @@ function getEntryCode(config, configVike) {
48
48
  const importerCode = [
49
49
  ` import { setImportBuildGetters } from '${importPath}';`,
50
50
  ` import * as pageFiles from '${virtualFileImportUserCode_js_1.virtualFileIdImportUserCodeServer}';`,
51
- ' setImportBuildGetters({',
52
- ` pageFiles: () => pageFiles,`,
51
+ ` {`,
52
+ // We first set the values to a variable because of a Rollup bug, and this workaround doesn't work: https://github.com/vikejs/vike/commit/d5f3a4f7aae5a8bc44192e6cbb2bcb9007be188d
53
+ ` const clientManifest = ${ASSETS_MAP};`,
54
+ ` const pluginManifest = ${JSON.stringify(vikeManifest, null, 2)};`,
55
+ ' setImportBuildGetters({',
56
+ ` pageFiles: () => pageFiles,`,
53
57
  // TODO: rename clientManifest -> assetManifest
54
- ` clientManifest: () => { return ${ASSETS_MAP} },`,
58
+ ` clientManifest: () => clientManifest,`,
55
59
  // TODO: rename pluginManifest -> vikeManifest
56
- ` pluginManifest: () => (${JSON.stringify(vikeManifest, null, 2)}),`,
57
- ' });',
60
+ ` pluginManifest: () => pluginManifest,`,
61
+ ' });',
62
+ ` }`,
58
63
  ''
59
64
  ].join('\n');
60
65
  return importerCode;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROJECT_VERSION = exports.projectInfo = void 0;
4
4
  const assertSingleInstance_js_1 = require("./assertSingleInstance.js");
5
- const PROJECT_VERSION = '0.4.153-commit-159c659';
5
+ const PROJECT_VERSION = '0.4.153-commit-3e842bb';
6
6
  exports.PROJECT_VERSION = PROJECT_VERSION;
7
7
  const projectInfo = {
8
8
  projectName: 'Vike',
@@ -42,13 +42,18 @@ function getEntryCode(config, configVike) {
42
42
  const importerCode = [
43
43
  ` import { setImportBuildGetters } from '${importPath}';`,
44
44
  ` import * as pageFiles from '${virtualFileIdImportUserCodeServer}';`,
45
- ' setImportBuildGetters({',
46
- ` pageFiles: () => pageFiles,`,
45
+ ` {`,
46
+ // We first set the values to a variable because of a Rollup bug, and this workaround doesn't work: https://github.com/vikejs/vike/commit/d5f3a4f7aae5a8bc44192e6cbb2bcb9007be188d
47
+ ` const clientManifest = ${ASSETS_MAP};`,
48
+ ` const pluginManifest = ${JSON.stringify(vikeManifest, null, 2)};`,
49
+ ' setImportBuildGetters({',
50
+ ` pageFiles: () => pageFiles,`,
47
51
  // TODO: rename clientManifest -> assetManifest
48
- ` clientManifest: () => { return ${ASSETS_MAP} },`,
52
+ ` clientManifest: () => clientManifest,`,
49
53
  // TODO: rename pluginManifest -> vikeManifest
50
- ` pluginManifest: () => (${JSON.stringify(vikeManifest, null, 2)}),`,
51
- ' });',
54
+ ` pluginManifest: () => pluginManifest,`,
55
+ ' });',
56
+ ` }`,
52
57
  ''
53
58
  ].join('\n');
54
59
  return importerCode;
@@ -1,13 +1,13 @@
1
1
  export { projectInfo };
2
2
  export type { ProjectTag };
3
3
  export { PROJECT_VERSION };
4
- declare const PROJECT_VERSION: "0.4.153-commit-159c659";
4
+ declare const PROJECT_VERSION: "0.4.153-commit-3e842bb";
5
5
  type PackageName = typeof projectInfo.npmPackageName;
6
6
  type ProjectVersion = typeof projectInfo.projectVersion;
7
7
  type ProjectTag = `[${PackageName}]` | `[${PackageName}@${ProjectVersion}]`;
8
8
  declare const projectInfo: {
9
9
  projectName: "Vike";
10
- projectVersion: "0.4.153-commit-159c659";
10
+ projectVersion: "0.4.153-commit-3e842bb";
11
11
  npmPackageName: "vike";
12
12
  githubRepository: "https://github.com/vikejs/vike";
13
13
  };
@@ -1,7 +1,7 @@
1
1
  export { projectInfo };
2
2
  export { PROJECT_VERSION };
3
3
  import { onProjectInfo } from './assertSingleInstance.js';
4
- const PROJECT_VERSION = '0.4.153-commit-159c659';
4
+ const PROJECT_VERSION = '0.4.153-commit-3e842bb';
5
5
  const projectInfo = {
6
6
  projectName: 'Vike',
7
7
  projectVersion: PROJECT_VERSION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.153-commit-159c659",
3
+ "version": "0.4.153-commit-3e842bb",
4
4
  "scripts": {
5
5
  "dev": "tsc --watch",
6
6
  "build": "rimraf dist/ && pnpm run build:esm && pnpm run build:cjs",