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

(fix): ensure Babel presets are merged #473

Merged
merged 1 commit into from
Feb 2, 2020

Conversation

agilgur5
Copy link
Collaborator

  • previously, if preset-env were not found in the user's presets,
    their presets would be overwritten by a single preset-env entry
    • now it properly merges their presets with an entry for preset-env

Fixes #443

I think this is good, but still need to create a test set-up for custom Babel configs. This requires installing some dependencies for automated tests. The withConfig tsdx.config.js fixture also requires installing some deps for automated tests and is currently a manual test (which means it isn't tested frequently -- I haven't tested it once in all my PRs), so would like to get that to be auto too.

- previously, if preset-env were not found in the user's presets,
  their presets would be overwritten by a single preset-env entry
  - now it properly merges their presets with an entry for preset-env
@agilgur5
Copy link
Collaborator Author

#481 was created to follow-up on the lack of test set-up here.
#627 added integration tests with a Babel fixture and a regression test was added there to ensure that Babel presets are merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using jsx in .jsx files not achievable -- Babel presets aren't used
2 participants