Procházet zdrojové kódy

chore: Make dashboard tsconfig settings consistent with Vite

Michael Bromley před 2 měsíci
rodič
revize
fcf3db4f20

+ 2 - 2
docs/docs/guides/extending-the-dashboard/getting-started/index.md

@@ -98,8 +98,8 @@ to correctly resolve imports of GraphQL types & interpret JSX in your dashboard
 {
     "compilerOptions": {
         "composite": true,
-        "module": "nodenext",
-        "moduleResolution": "nodenext",
+        "module": "ESNext",
+        "moduleResolution": "bundler",
         "jsx": "react-jsx",
         "paths": {
             // Import alias for the GraphQL types

+ 2 - 2
packages/create/templates/tsconfig.dashboard.template.json

@@ -1,8 +1,8 @@
 {
   "compilerOptions": {
     "composite": true,
-    "module": "nodenext",
-    "moduleResolution": "nodenext",
+    "module": "ESNext",
+    "moduleResolution": "bundler",
     "jsx": "react-jsx",
     "paths": {
       // Import alias for the GraphQL types