Skip to content

(fix): ensure Babel presets are merged#473

Merged
swyxio merged 1 commit into
jaredpalmer:masterfrom
agilgur5:fix-babel-preset-merge
Feb 2, 2020
Merged

(fix): ensure Babel presets are merged#473
swyxio merged 1 commit into
jaredpalmer:masterfrom
agilgur5:fix-babel-preset-merge

Conversation

@agilgur5

Copy link
Copy Markdown
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
Copy Markdown
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