Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: improve the polyfill importing logic of modern mode #5513

Merged
merged 6 commits into from May 25, 2020

Commits on May 22, 2020

  1. fix: correctly calculate if a custom polyfill is required with the gi…

    …ven targets
    
    partially fixed the problem mentioned in #5507
    sodatea committed May 22, 2020
    Copy the full SHA
    22959fe View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    e917b8c View commit details
    Browse the repository at this point in the history
  3. fix: set exact corejs version for preset-env

    fixes another issue mentioned in #5507
    
    Note now core-js is listed as an optional peer depedency.
    TODO: should remove it from depdencies in the next major.
    sodatea committed May 22, 2020
    Copy the full SHA
    1ae6153 View commit details
    Browse the repository at this point in the history
  4. fix(modern-mode): should use intersection of modern browsers and user…

    …-specified targets
    
    We don't need to target browsers that users don't need, even if it is
    a browser that supports `script type="module"`.
    
    With this change, with the default target of "last 2 versions", we no
    longer has to deal with the obsolete versions of evergreen browsers that
    comes with all kinds of bugs.
    This further improves the modern build bundle size. Maybe even better
    than [the `bugfixes` option of `preset-env`](https://babeljs.io/docs/en/babel-preset-env#bugfixes)
    sodatea committed May 22, 2020
    Copy the full SHA
    733ba10 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2020

  1. Copy the full SHA
    57010e2 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    53e60b2 View commit details
    Browse the repository at this point in the history