diff --git a/starters/apps/base/package.json b/starters/apps/base/package.json index 937ec8c596d..7ba639eac33 100644 --- a/starters/apps/base/package.json +++ b/starters/apps/base/package.json @@ -26,6 +26,7 @@ "globals": "latest", "prettier": "latest", "typescript": "latest", + "typescript-plugin-css-modules": "latest", "undici": "latest", "vite": "^4.5.2", "vite-tsconfig-paths": "^4.2.1" diff --git a/starters/apps/base/tsconfig.json b/starters/apps/base/tsconfig.json index 2a2bc9fcce5..bc92b469fbd 100644 --- a/starters/apps/base/tsconfig.json +++ b/starters/apps/base/tsconfig.json @@ -18,7 +18,9 @@ "noEmit": true, "paths": { "~/*": ["./src/*"] - } + }, + /* if you do not use CSS modules, remove this line and delete the typescript-plugin-css-modules module from package.json */ + "plugins": [{ "name": "typescript-plugin-css-modules" }] }, "include": ["src", "./*.d.ts", "./*.config.ts"] }