Open jeremy-coleman opened 5 years ago
One more method can be to add aliases in your tsconfig.json
{
"compilerOptions": {
"paths": {
"react": ["preact-compact"],
"react-dom": ["preact-compact"]
}
}
}
You would have to alias the same in your build tools as well. (Webpack etc.)
any better solution than this?lol