egoist / bili

Bili makes it easier to bundle JavaScript libraries.
https://bili.egoist.sh
MIT License
1.04k stars 61 forks source link

Legacy bundles & modern bundles #182

Open aleclarson opened 5 years ago

aleclarson commented 5 years ago

Issuehunt badges

Can bili output both a legacy (ES5) bundle and a "modern" bundle (for newer browsers only)?

There is a $90.00 open bounty on this issue. Add more on Issuehunt.

egoist commented 5 years ago

It's possible but you need to configure babel manully, we can implement it with a --modern flag to simplify this. like this https://cli.vuejs.org/guide/browser-compatibility.html#modern-mode

IssueHuntBot commented 5 years ago

@issuehunt has funded $90.00 to this issue.


yaodingyd commented 5 years ago

Is setting preset-env's target: esmodules to true the only thing it needs for the implementation? since there is no polyfill involved