Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Remove reliance on babel environments, make babel options merging consistent #548

Merged
merged 1 commit into from
Dec 6, 2017
Merged

Remove reliance on babel environments, make babel options merging consistent #548

merged 1 commit into from
Dec 6, 2017

Conversation

eliperelman
Copy link
Member

Fixes #542. This PR does the following:

  • Remove usages of babel option env. This makes merging babel configuration from userland a little easier by not making the user updating the options in potentially 2 different places. We fixed this for the test middleware, and this PR fixes it for the build middleware.
  • Use compile-loader to merge babel options from higher-level middleware. This was already being done by the react middleware, but the preact middleware wasn't doing this properly. @edmorley brought this to my attention at Fix inconsistencies in the react and preact docs #483 (comment), but I didn't understand the problem at the time. This should now be fixed. Thanks @edmorley!
  • I removed a couple try blocks that were leftovers from Add option to get package.json content #534. They weren't hurting anything, but it just added a potential point of confusion in the future.

@eliperelman eliperelman merged commit 16396d2 into neutrinojs:master Dec 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Migrate away from using babel configuration envs to conditional merging using when
1 participant