yarn add -D typescript-plugin-css-modules
This allow using CSS modules with the noPropertyAccessFromIndexSignature
option.
If I won't add this, and won't generate TypeScript declerations from the css modules file -
the TS will error about missing styles.someClassName
because it's been accessed but not declared.
- Remove types
- Update jsx to the new react 17. BTW - it has seperated transformations for dev and prod builds.
- incremental? for faster builds
- https://www.typescriptlang.org/tsconfig#assumeChangesOnlyAffectDirectDependencies
tsc --watch --assumeChangesOnlyAffectDirectDependencies