GithubHelp home page GithubHelp logo

sdkennedy / babel-preset-target Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 2.0 21 KB

[No Maintenance Intended] Babel preset that allows for target environments to be specified along with plugins and presets. If all environments have native support for a given plugin, it will be skipped.

JavaScript 100.00%

babel-preset-target's People

Contributors

sdkennedy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pebsconsulting

babel-preset-target's Issues

IE 10 target missed using transform-es2015-block-scoping

config:

presets: [
            ["target", {
                "presets": ["es2015"],
                "targets": [
                    {"name": "ie", "version": 10}
                ]
            }]
        ],

I got this warning:

No compat-table data for version 10 falling back to 11

So finally it ended up using these presets

[ 'check-es2015-constants',
  'transform-es2015-arrow-functions',
  'transform-es2015-classes',
  'transform-es2015-computed-properties',
  'transform-es2015-destructuring',
  'transform-es2015-duplicate-keys',
  'transform-es2015-for-of',
  'transform-es2015-function-name',
  'transform-es2015-literals',
  'transform-es2015-modules-commonjs',
  'transform-es2015-object-super',
  'transform-es2015-parameters',
  'transform-es2015-shorthand-properties',
  'transform-es2015-spread',
  'transform-es2015-sticky-regex',
  'transform-es2015-template-literals',
  'transform-es2015-typeof-symbol',
  'transform-regenerator' ]

But missed

transform-es2015-block-scoping

This is awesome

Not sure if you saw but we've wanted to do something like this for a while! https://github.com/babel/notes/blob/master/2016-07/july-31.md#babel-preset-env-autoprefixer-for-babel-pr-3476

babel/babel#3476, https://github.com/babel/babel-preset-env (just started)

So we'd love to be able to work together, and move into the babel org once it's ready if that's cool.

I actually found this when searching for a name - I was thinking babel-preset-env and was looking at babel-preset-target on npm and saw it was already published!

  • I think we could also include the different modules (amd,umd,systemjs), and stage-x plugins as well so users wouldn't need to specify any of those seperately (like in https://github.com/babel/babel-preset-env)

cc @baer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.