Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

Transformations before logs #128

Merged
merged 3 commits into from
Jan 10, 2017
Merged

Conversation

yavorsky
Copy link
Member

@yavorsky yavorsky commented Jan 9, 2017

  1. Log transformations after excluded/included processing. Fixes debug option: using plugins/using polyfills should account for includes/excludes #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:");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 noticed that too

@hzoo hzoo added the i: bug label Jan 10, 2017
@hzoo hzoo merged commit 028c4ea into babel:master Jan 10, 2017
@hzoo
Copy link
Member

hzoo commented Jan 10, 2017

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

@yavorsky yavorsky deleted the transformations-before-logs branch August 14, 2017 12:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants