Transformations before logs #128

Merged
merged 3 commits into from Jan 10, 2017

Projects

None yet

3 participants

@yavorsky
Collaborator
yavorsky commented Jan 9, 2017 edited
  1. Log transformations after excluded/included processing. Fixes #127.
  2. Prevent a second iteration by replacing filtration from 2 to 1 call:

before

items
  .filter((builtInName) => isPluginRequired(targets, pluginsList))
  .filter((plugin) => exclusions.indexOf(plugin) === -1)

now

  const filterBuiltIns = filterItem.bind(null, targets, exclusions, pluginsList)
  items.filter(filterBuiltIns)
if (useBuiltIns && polyfills.length) {
+ console.log("\nUsing polyfills:");
@hzoo
hzoo Jan 9, 2017 Member

👍 noticed that too

@hzoo
hzoo approved these changes Jan 10, 2017 View changes
@hzoo hzoo added the bug label Jan 10, 2017
@hzoo hzoo merged commit 028c4ea into babel:master Jan 10, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@hzoo
Member
hzoo commented Jan 10, 2017

Would also be nice to set up a test for debug: true sometime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment