The compliance-portal scaffold had an index.html pointing at a src/main.tsx that did not exist, and carried stale config copied from another app, so the bundle could not build. Add the React entrypoint (main.tsx, App.tsx), a Tailwind index.css wired to the standalone v2 theme, and vite-env.d.ts for the CSS side-effect import and env typing. Scope the Tailwind @source scan to packages/ui/src/v2 since this is a v2-only build, and use v2 color and type scales in index.html and App. Drop the deprecated baseUrl from tsconfig.app.json and remove the invalid react() babel relay option, which is unsupported by @vitejs/plugin-react 6 and unneeded until Relay queries exist. Signed-off-by: Émile Ré <emile@probo.com>
31 lines
750 B
JSON
31 lines
750 B
JSON
{
|
|
"compilerOptions": {
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
"target": "ES2020",
|
|
"useDefineForClassFields": true,
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": false,
|
|
"verbatimModuleSyntax": true,
|
|
"moduleDetection": "force",
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
"paths": {
|
|
"#/*": ["./src/*"]
|
|
},
|
|
|
|
/* Linting */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"erasableSyntaxOnly": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedSideEffectImports": true
|
|
},
|
|
"include": ["src"]
|
|
}
|