diff --git a/packages/dev/tsconfig.json b/packages/dev/tsconfig.json index 21f55153..9ec1fbe4 100644 --- a/packages/dev/tsconfig.json +++ b/packages/dev/tsconfig.json @@ -19,6 +19,8 @@ "target": "ES2022", "module": "ES2022", "useDefineForClassFields": false, + "resolveJsonModule": true, + "allowSyntheticDefaultImports": true, "lib": [ "ES2022", "dom" diff --git a/packages/docs/tsconfig.json b/packages/docs/tsconfig.json index a644e328..2b502b5c 100644 --- a/packages/docs/tsconfig.json +++ b/packages/docs/tsconfig.json @@ -11,6 +11,8 @@ "noEmit": true, "types": ["node", "@docusaurus/module-type-aliases", "@docusaurus/theme-classic", "docusaurus-plugin-sass"], "baseUrl": ".", + "resolveJsonModule": true, + "allowSyntheticDefaultImports": true, "paths": { "@site/*": ["./*"], "prosemirror-preset-document": ["../preset-document/src/index.ts"],