Skip to content

Commit 2703bde

Browse files
committed
fix(web): unblock Turbopack build of poi-source-registry
Turbopack couldn't resolve the ./types.js specifiers in poi-source-registry's index, and the package was missing from apps/web's transpilePackages list despite pointing main at raw .ts source. Drop the .js extensions and register the package for transpilation so the production web image builds again.
1 parent 7c551e8 commit 2703bde

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

apps/web/next.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const nextConfig: NextConfig = {
3535
"@openmapx/noaa-coops-data",
3636
"@openmapx/ourairports-data",
3737
"@openmapx/place-ids",
38+
"@openmapx/poi-source-registry",
3839
"@openmapx/presets",
3940
],
4041
// esbuild is loaded lazily by @openmapx/core's integration installer (only

packages/poi-source-registry/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { BBox, PoiSource } from "./types.js";
1+
import type { BBox, PoiSource } from "./types";
22

3-
export * from "./types.js";
3+
export * from "./types";
44

55
/**
66
* Canonical Redis key for the cross-process live-state hash that

0 commit comments

Comments
 (0)