Decouple client from server
Add Vite dependency and remove server side rendering to make it
possible to run the client independently.
Remove webpack config, replace with the `Vite` build tool.
GitLab: #55
Change-Id: I3a05d2e86cf6cb0ab91e77b3696f393132137575
diff --git a/client/tsconfig.json b/client/tsconfig.json
index 9af3397..3a83682 100644
--- a/client/tsconfig.json
+++ b/client/tsconfig.json
@@ -3,8 +3,12 @@
"compilerOptions": {
/* Specify what JSX code is generated. */
"jsx": "react-jsx",
+ /* Specify a set of bundled library declaration files that describe the target runtime environment. */
+ "lib": ["DOM", "DOM.Iterable", "ESNext"],
/* Specify an output folder for all emitted files. */
- "outDir": "./dist/"
+ "outDir": "dist",
+ /* Specify type package names to be included without being referenced in a source file. */
+ "types": ["@testing-library/jest-dom", "@types/jest", "node", "vite/client", "vite-plugin-svgr/client"]
},
- "include": ["src/"]
+ "include": ["src"]
}