Commit d5bd83c
committed
fix(site): alias @antv/aimapui-plot to source for CI build
Vercel does a fresh checkout where packages/plot/dist does not exist
(dist/ is gitignored). site imports @antv/aimapui-plot, whose
package.json exports point at dist/index.es.js, so vite could not
resolve its entry — build failed: 'Failed to resolve entry for package
"@antv/aimapui-plot"'.
core is already aliased to source (commit 0c83624) to avoid building
core first. Apply the same pattern to plot: alias @antv/aimapui-plot to
../plot/src/index.ts. plot's source imports only core (already
aliased), @antv/l7, react, geojson, and relative css — all resolvable
by vite. Verified by removing packages/plot/dist and building site:
62 pages generated successfully.1 parent 24e090f commit d5bd83c
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
0 commit comments