Open vzaidman opened 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.
minify: false
@react-native/babel-preset
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.
babel-plugin-syntax-hermes-parser
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.
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.