oblador / react-native-esbuild

Fast bundler and dev server for react-native using esbuild
MIT License
595 stars 11 forks source link

Add in-memory cache for babel plugin #14

Closed oblador closed 2 years ago

oblador commented 2 years ago

Adds another cache layer to the babel plugin primarily aimed at dev server rebuilds. It uses file modification timestamp for cache invalidation which might cause some false negatives/positives, but should be faster than comparing the entire file contents.

In a react-native init app, this reduces rebuilds with ~20-30%.