@opentf/afw-build 0.7.0 → 0.8.0

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/package.json +1 -1
  2. package/server.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentf/afw-build",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "The toolchain-neutral core of AFW's build: compiler client, compile targets and file-based routing.",
5
5
  "type": "module",
6
6
  "scripts": {
package/server.js CHANGED
@@ -235,7 +235,10 @@ export async function serverModule(host, root, { exclude = [], i18n = null, page
235
235
  ` });\n` +
236
236
  ` };\n` +
237
237
  `}\n`
238
- : "";
238
+ // No page renders on the server: still export the name, as `undefined`, so a server
239
+ // entry that checks `app.createPageRenderer` (the app starter's) bundles without an
240
+ // "import will always be undefined" warning.
241
+ : `export const createPageRenderer = undefined;\n`;
239
242
  const code =
240
243
  `import { createApiHandler, createFetchHandler, createLoaderRegistry, createMiddleware, createServerFunctions } from "@opentf/afw/server";\n` +
241
244
  [r.imports, m.imports, l.imports, fns.imports].filter(Boolean).join("\n") + "\n" +