Commit f12f251
committed
fix(bazel): esbuild ESM bundles should prioritize ESM main field
ESBuild by default with `platform: node` will prioritize `main` and then
check `module` if present. We want it the other way around as ES
modules are easier to bundle and guaranteed to work.1 parent 798dbd9 commit f12f251
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments