Commit 65ac7f1
Adithya Reddy
Add metro.config.js to tsconfig excluded files
In the latest RC of React Native (0.59.0-rc.3) a `metro.config.js` file is created with the following content:
```js
/**
* Metro configuration for React Native
* https://github.com/facebook/react-native
*
* @Format
*/
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
};
```
When you run `tsc`, it fails with this error:
```
metro.config.js:8:1 - error TS1208: Cannot compile namespaces when the '--isolatedModules' flag is provided.
8 module.exports = {
~~~~~~
Found 1 error.
```
This PR fixes that error by excluding the `metro.config.js` file just like we did for `babel.config.js`.1 parent a332cb6 commit 65ac7f1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
0 commit comments