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

exclude 'web' polyfills from node by default #220

Closed
mshustov opened this issue Mar 20, 2017 · 2 comments
Closed

exclude 'web' polyfills from node by default #220

mshustov opened this issue Mar 20, 2017 · 2 comments
Labels

Comments

@mshustov
Copy link

Hi, after running babel-env-preset with useBuiltIns: true for node (v7.6) environment got in console:

Using targets:
{
  "node": 7.6
}

Modules transform: false

Using plugins:
  syntax-trailing-function-commas {"node":7.6}

Using polyfills:
  es7.string.pad-start {"node":7.6}
  es7.string.pad-end {"node":7.6}
  web.timers {"node":7.6}
  web.immediate {"node":7.6}
  web.dom.iterable {"node":7.6}

So, I was surprised to find 'web' polyfills included in the final node build (I use webpack for both node and web). Of course I could use exclude option, but probably it should be default behaviour for node env.

@hzoo
Copy link
Member

hzoo commented Mar 20, 2017

Sure we can do that. Do you want to make a PR?

@existentialism
Copy link
Member

Fixed by #226

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants