metro-react-native-babel-preset
Advanced tools
Comparing version 0.43.2 to 0.43.3
{ | ||
"name": "metro-react-native-babel-preset", | ||
"version": "0.43.2", | ||
"version": "0.43.3", | ||
"description": "Babel preset for React Native applications", | ||
@@ -47,6 +47,7 @@ "main": "src/index.js", | ||
"@babel/plugin-transform-template-literals": "7.0.0-beta.54", | ||
"@babel/plugin-transform-typescript": "7.0.0-beta.54", | ||
"@babel/plugin-transform-unicode-regex": "7.0.0-beta.54", | ||
"@babel/template": "7.0.0-beta.54", | ||
"metro-babel7-plugin-react-transform": "0.43.2" | ||
"metro-babel7-plugin-react-transform": "0.43.3" | ||
} | ||
} |
@@ -12,2 +12,6 @@ /** | ||
function isTypeScriptSource(fileName) { | ||
return !!fileName && (fileName.endsWith('.ts') || fileName.endsWith('.tsx')); | ||
} | ||
const defaultPlugins = [ | ||
@@ -127,4 +131,12 @@ [require('@babel/plugin-proposal-optional-catch-binding')], | ||
compact: true, | ||
plugins: defaultPlugins.concat(extraPlugins) }; | ||
plugins: defaultPlugins.concat(extraPlugins), | ||
overrides: [ | ||
{ | ||
test: isTypeScriptSource, | ||
plugins: [ | ||
[require('@babel/plugin-transform-typescript'), { isTSX: true }]] }] }; | ||
}; | ||
@@ -131,0 +143,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17833
291
30
+ Added@babel/plugin-syntax-typescript@7.0.0-beta.54(transitive)
+ Added@babel/plugin-transform-typescript@7.0.0-beta.54(transitive)
+ Addedmetro-babel7-plugin-react-transform@0.43.3(transitive)
- Removedmetro-babel7-plugin-react-transform@0.43.2(transitive)