babel-preset-expo
Advanced tools
Comparing version
@@ -65,3 +65,8 @@ "use strict"; | ||
} | ||
else if (!['InterfaceDeclaration', 'TSTypeAliasDeclaration', 'TypeAlias'].includes(exportPath.node.declaration.type)) { | ||
else if (![ | ||
'InterfaceDeclaration', | ||
'TSInterfaceDeclaration', | ||
'TSTypeAliasDeclaration', | ||
'TypeAlias', | ||
].includes(exportPath.node.declaration.type)) { | ||
// TODO: What is this type? | ||
@@ -133,3 +138,4 @@ console.warn(`[babel-preset-expo] Unsupported export specifier for "use ${type}":`, exportPath.node.declaration.type); | ||
// HACK: Mock out the polyfill that doesn't run through the normal bundler pipeline. | ||
if (filePath.endsWith('@react-native/js-polyfills/console.js')) { | ||
if (filePath.endsWith('@react-native/js-polyfills/console.js') || | ||
filePath.endsWith('@react-native\\js-polyfills\\console.js')) { | ||
// Clear the body | ||
@@ -136,0 +142,0 @@ path.node.body = []; |
{ | ||
"name": "babel-preset-expo", | ||
"version": "12.0.3", | ||
"version": "12.0.4", | ||
"description": "The Babel preset for Expo projects", | ||
@@ -50,3 +50,3 @@ "main": "build/index.js", | ||
"@babel/preset-typescript": "^7.23.0", | ||
"@react-native/babel-preset": "0.76.3", | ||
"@react-native/babel-preset": "0.76.5", | ||
"babel-plugin-react-native-web": "~0.19.13", | ||
@@ -74,3 +74,3 @@ "react-refresh": "^0.14.2" | ||
}, | ||
"gitHead": "728158f99d680cf64fb06f08301d3806c18c6f63" | ||
"gitHead": "1faceb8d22bebee4571ef3a2f9578bec33dc26b1" | ||
} |
124168
0.24%2338
0.26%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed