vike-lite 1.0.11 → 1.0.12

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 (2) hide show
  1. package/dist/vite.mjs +3 -1
  2. package/package.json +1 -1
package/dist/vite.mjs CHANGED
@@ -191,7 +191,9 @@ function routerPlugin({ pagesDir = "pages", serverEntry = "server/index.ts", api
191
191
  `;
192
192
  if (id === resolvedVirtualEntryServerId) {
193
193
  const normalizedServerEntry = path.join(viteConfigRoot, serverEntry).replaceAll("\\", "/");
194
- return `import '${virtualSetupId}';\n${fs.readFileSync(normalizedServerEntry, "utf8")}`;
194
+ return `import '${virtualSetupId}';
195
+ export * from '${normalizedServerEntry}'
196
+ export { default } from '${normalizedServerEntry}'`;
195
197
  }
196
198
  },
197
199
  configureServer(server) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike-lite",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",