Repository navigation
Commit 6121af8
committed
Fix CI build: drop "type": "module" from website package
Docusaurus does not support a "type": "module" site. Webpack infers
javascript/esm for every .js file under website/, including the generated
.docusaurus/registry.js, whose top-level require.resolveWeak() calls then
survive untransformed (CommonJsPlugin only rewrites them for
javascript/auto|dynamic) and crash SSR with "require.resolveWeak is not a
function".
Verified: build fails with the field present and succeeds without it.1 parent 3f988c8 commit 6121af8
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
0 commit comments