@react-native/metro-babel-transformer 0.89.0-rc.0 → 0.89.0-rc.1
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.
- package/package.json +2 -2
- package/src/index.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/metro-babel-transformer",
|
|
3
|
-
"version": "0.89.0-rc.
|
|
3
|
+
"version": "0.89.0-rc.1",
|
|
4
4
|
"description": "Babel transformer for React Native applications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/core": "^7.25.2",
|
|
30
|
-
"@react-native/babel-preset": "0.89.0-rc.
|
|
30
|
+
"@react-native/babel-preset": "0.89.0-rc.1",
|
|
31
31
|
"flow-parser": "0.336.0",
|
|
32
32
|
"nullthrows": "^1.1.1"
|
|
33
33
|
},
|
package/src/index.js
CHANGED
|
@@ -199,7 +199,6 @@ const transform /*: BabelTransformer['transform'] */ = ({
|
|
|
199
199
|
src,
|
|
200
200
|
plugins,
|
|
201
201
|
}) => {
|
|
202
|
-
// $FlowFixMe[prop-missing] Remove suppression after next Metro release
|
|
203
202
|
const {babelRuntimeModuleName, babelRuntimeVersion} = options;
|
|
204
203
|
const babelConfig /*: BabelCoreOptions */ = {
|
|
205
204
|
// ES modules require sourceType='module' but OSS may not always want that
|
|
@@ -211,7 +210,6 @@ const transform /*: BabelTransformer['transform'] */ = ({
|
|
|
211
210
|
name: 'metro',
|
|
212
211
|
bundler: 'metro',
|
|
213
212
|
platform: options.platform,
|
|
214
|
-
// $FlowFixMe[prop-missing] Remove suppression after next Metro release
|
|
215
213
|
inlinePlatform: options.inlinePlatform,
|
|
216
214
|
experimentalImportSupport: options.experimentalImportSupport,
|
|
217
215
|
unstable_transformProfile: options.unstable_transformProfile,
|
|
@@ -220,6 +218,8 @@ const transform /*: BabelTransformer['transform'] */ = ({
|
|
|
220
218
|
...(babelRuntimeModuleName != null && babelRuntimeVersion != null
|
|
221
219
|
? {babelRuntimeModuleName, enableBabelRuntime: babelRuntimeVersion}
|
|
222
220
|
: null),
|
|
221
|
+
// Whether `metro:inline` specifiers will resolve.
|
|
222
|
+
supportsInlineModules: options.supportsInlineModules,
|
|
223
223
|
},
|
|
224
224
|
ast: true,
|
|
225
225
|
|