babel-preset-expo 12.0.3 → 12.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,7 +62,12 @@ function reactClientReferencesPlugin(api) {
62
62
  callback(exportName);
63
63
  }
64
64
  }
65
- else if (!['InterfaceDeclaration', 'TSTypeAliasDeclaration', 'TypeAlias'].includes(exportPath.node.declaration.type)) {
65
+ else if (![
66
+ 'InterfaceDeclaration',
67
+ 'TSInterfaceDeclaration',
68
+ 'TSTypeAliasDeclaration',
69
+ 'TypeAlias',
70
+ ].includes(exportPath.node.declaration.type)) {
66
71
  // TODO: What is this type?
67
72
  console.warn(`[babel-preset-expo] Unsupported export specifier for "use ${type}":`, exportPath.node.declaration.type);
68
73
  }
@@ -129,7 +134,8 @@ function reactClientReferencesPlugin(api) {
129
134
  return;
130
135
  }
131
136
  // HACK: Mock out the polyfill that doesn't run through the normal bundler pipeline.
132
- if (filePath.endsWith('@react-native/js-polyfills/console.js')) {
137
+ if (filePath.endsWith('@react-native/js-polyfills/console.js') ||
138
+ filePath.endsWith('@react-native\\js-polyfills\\console.js')) {
133
139
  // Clear the body
134
140
  path.node.body = [];
135
141
  path.node.directives = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-preset-expo",
3
- "version": "12.0.3",
3
+ "version": "12.0.4",
4
4
  "description": "The Babel preset for Expo projects",
5
5
  "main": "build/index.js",
6
6
  "files": [
@@ -47,7 +47,7 @@
47
47
  "@babel/plugin-transform-parameters": "^7.22.15",
48
48
  "@babel/preset-react": "^7.22.15",
49
49
  "@babel/preset-typescript": "^7.23.0",
50
- "@react-native/babel-preset": "0.76.3",
50
+ "@react-native/babel-preset": "0.76.5",
51
51
  "babel-plugin-react-native-web": "~0.19.13",
52
52
  "react-refresh": "^0.14.2"
53
53
  },
@@ -70,5 +70,5 @@
70
70
  "jest": "^29.2.1",
71
71
  "react-compiler-runtime": "^19.0.0-beta-8a03594-20241020"
72
72
  },
73
- "gitHead": "728158f99d680cf64fb06f08301d3806c18c6f63"
73
+ "gitHead": "1faceb8d22bebee4571ef3a2f9578bec33dc26b1"
74
74
  }