Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andersdjohnson/webpack-babel-env-deps

Find dependencies to transpile with Babel.
https://github.com/andersdjohnson/webpack-babel-env-deps

babel babel-preset babel-preset-env dependencies dependency es2015 es2016 es6 es7 javascript js transpilation transpile transpiler webpack

Last synced: 9 days ago
JSON representation

Find dependencies to transpile with Babel.

Awesome Lists containing this project

README

        

# webpack-babel-env-deps

> Find dependencies to transpile with Babel.

[:book: Read the docs!](https://andersdjohnson.github.io/webpack-babel-env-deps/)

A webpack helper to find dependencies of your project that require transpilation with Babel (and [`@babel/preset-env`][@babel/preset-env])
by comparing your minimum Node.js engine against theirs ([`engines`][engines] in `package.json`), and/or by determining
their minimum Node.js engine or published
ES2015/ES6+ source ([`module`][module]/`jsnext:main` in `package.json`)
to require features provided by plugins and polyfills from [`@babel/preset-env`][@babel/preset-env].

[engines]: https://docs.npmjs.com/files/package.json#engines
[module]: https://github.com/rollup/rollup/wiki/pkg.module
[@babel/preset-env]: https://github.com/babel/babel-preset-env