Skip to content

Commit 6121af8

Browse files
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

File tree

‎website/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "website",
33
"version": "0.0.0",
44
"private": true,
5-
"type": "module",
65
"scripts": {
76
"docusaurus": "docusaurus",
87
"start": "docusaurus start",

0 commit comments

Comments
 (0)