facebook / metro

🚇 The JavaScript bundler for React Native
https://metrobundler.dev
MIT License
5.24k stars 626 forks source link

Tests for preserving comments in outputs when `minify: false` fail when using the latest version of @react-native/babel-preset #1383

Open vzaidman opened 2 weeks ago

vzaidman commented 2 weeks ago

Nightly tests for preserving comments in outputs when minify: false when using the latest version of @react-native/babel-preset are now failing since Oct 24 when React Native v0.76 was released.

This happens because https://github.com/facebook/react-native/issues/46601 made babel-plugin-syntax-hermes-parser a default plugin in @react-native/babel-preset.

This is caused by the open issue https://github.com/facebook/hermes/issues/1098 where babel-plugin-syntax-hermes-parser always strips comments from any code that passes through it.