Closed mstade closed 8 years ago
@@ master #35 diff @@
==========================================
Files 15 15
Lines 234 244 +10
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 184 198 +14
+ Misses 50 46 -4
Partials 0 0
Powered by Codecov. Last update 1d40200...2cd8284
:+1:
Ok I think this is ready to go, I added some tests to cover all the features added and mentioned, and coverage has increased somewhat. I'm probably going to merge and release proper come Monday.
Description
This changes ez-build to use babel-preset-latest instead of babel-preset-es2015. This new preset affords us a few good things:
--flags es2017
--flags modules:<format>
The latter point enables us to more easily use ez-build with tooling that expects a different module format, such as piping to Rollup.
Note: .babelrc will only be picked up when NODE_ENV is set to anything other than
test
, which is necessary to ensure we don't pick up ez-build's .babelrc when running tests. We may want to reconsider this.Motivation and Context
This change makes it easier for us to keep ez-build up to date with the latest ecmascript specifications. I also allows us to add the next specification as an experimental option, by hiding it behind the
es2017
compiler flag.How Was This Tested?
es2017
flag enableses2017
featuresTypes of changes
Checklist: