Closed luogao closed 2 years ago
BTW, I follow the doc and add the simple script react-native esbuild-start
to my package.json, will throw this Error
seems like the default options do not work... any idea?
Hi, very odd, what versions of react-native and @react-native-community/cli-*
are you running? Could you set up a minimal reproducible example repo that I can try out? Since I see this is a TS file, can you try using an import instead of a require statement?
Hi, I'm using react-native 0.63.2 @react-native-community/cli-*
Aha, that’s a very outdated version. This lib supports 0.68 and up,
okay I see. But my project fixed version. Thanks anyway!
Great work Btw, I always want to tree shaking when build a bundle. hahhaaa
I'm using react-native-esbuild v0.3.1 and I met this error when try react-native esbuild-start
here is my start script:
and my react-native.config.js
Any idea to solve this problem?