mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
This is the same issue as the one I fixed last year in #1874 To prevent this from occurring again, I enabled the `isolatedModules` Typescript option which will warn when you export non-value identifiers without using `export type`, which will break transpilation processes what work on a per-file basis. You can find a [more detailed explanation in Typescript's doc](https://www.typescriptlang.org/tsconfig#isolatedModules)
25 lines
594 B
JSON
25 lines
594 B
JSON
{
|
|
"compilerOptions": {
|
|
"baseUrl": ".",
|
|
"declaration": true,
|
|
"paths": {
|
|
"react-native-svg": ["./src"],
|
|
"react-native-svg/css": ["./src/css/index.tsx"]
|
|
},
|
|
"preserveSymlinks": true,
|
|
"target": "es6",
|
|
"module": "ESNext",
|
|
"jsx": "react-native",
|
|
"skipLibCheck": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"moduleResolution": "node",
|
|
"lib": ["es6", "dom"],
|
|
"esModuleInterop": true,
|
|
"strict": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true
|
|
},
|
|
"include": ["src"]
|
|
}
|