You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @oliviertassinari ! Thank you for such a great plugin! It makes our app much more performant in production.
Unfortunately, it doesn't work with latest version of react-navigation library or maybe library doesn't work with your plugin. I am not sure on what side the issue is.
Once you add babel-plugin-transform-react-remove-prop-types plugin in the project, which uses react-navigation code, the build fails with error TypeError: undefined is not an object (evaluating '_getPrototypeOf2.default').
But react-navigation doesn't have any prop-types in its code and the real problem is that their source code is already compiled with Babel to something like this
Hi @oliviertassinari ! Thank you for such a great plugin! It makes our app much more performant in production.
Unfortunately, it doesn't work with latest version of
react-navigation
library or maybe library doesn't work with your plugin. I am not sure on what side the issue is.Once you add
babel-plugin-transform-react-remove-prop-types
plugin in the project, which usesreact-navigation
code, the build fails with errorTypeError: undefined is not an object (evaluating '_getPrototypeOf2.default')
.But
react-navigation
doesn't have anyprop-types
in its code and the real problem is that their source code is already compiled with Babel to something like thisThey use
bob
package for building their sources https://github.com/react-native-community/bobAdding
react-navigation
toignoreFilenames
config option doesn't help.react-navigation
is a very popular library and it is often used with Expo framework. Can you investigate what is wrong and where?Here is the test repo where you can test the bug https://github.com/serhiipalash/test-transform-react-remove-prop-types/commits/master . If you don't have phone simulator installed on your pc, you can do
and open the project on your real device by screenshoting QR-code, displayed in Terminal, with Expo mobile app
The text was updated successfully, but these errors were encountered: