Closed vovkasm closed 1 year ago
Cool, would you mind making a PR out of this?
Cool, would you mind making a PR out of this?
I can, but not so fast, sorry. PR would require to deal with deps and testing, but I will have spare time only at the end of the week hopefully. So to help others prefer to just drop my patch (which I use with patch-package currently).
For the info, it seems that things went wrong from esbuild 0.16+.
With esbuild@0.16.7:
react-native esbuild-bundle
succeeds.react-native esbuild-start
fails:
X [ERROR] [plugin build-status] Must specify "kind" when calling "resolve"
../../node_modules/esbuild/lib/main.js:1259:18:
1259 │ throw new Error(`Must specify "kind" when calling "resolve"`);
kind
option missing, as added by @vovkasm above.
Hi! esbuild has changed interface for watch/serve/incremental stuff, also some other changes.
My patch to make it work with 0.17+ (but it contains also additional option to create metafile for analyzing with Bundle Size Analyzer)