babel-preset-expo 12.0.2 → 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 = [];
@@ -23,7 +23,7 @@ const RESTRICTED_MANIFEST_FIELDS = [
23
23
  'android',
24
24
  // Hide internal / build values
25
25
  'plugins',
26
- 'hooks', // hooks no longer exists in the typescript type but should still be removed
26
+ 'hooks',
27
27
  '_internal',
28
28
  // Remove metro-specific values
29
29
  'assetBundlePatterns',
@@ -31,7 +31,7 @@ module.exports = function (babel, options) {
31
31
  require('@babel/plugin-transform-modules-commonjs'),
32
32
  {
33
33
  strict: false,
34
- strictMode: false, // prevent "use strict" injections
34
+ strictMode: false,
35
35
  lazy: options.lazyImportExportTransform,
36
36
  allowTopLevelThis: true, // dont rewrite global `this` -> `undefined`
37
37
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-preset-expo",
3
- "version": "12.0.2",
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": "65ae6fda78837f77eea5a2107066fc545a211804"
73
+ "gitHead": "1faceb8d22bebee4571ef3a2f9578bec33dc26b1"
74
74
  }