Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ES2015 on production? Not so fast

ES2015 on production? Not so fast

ES2015 is great for productivity and maintainability, but there are certain aspects that you should consider.

Siddharth Kshetrapal

February 18, 2017
Tweet

More Decks by Siddharth Kshetrapal

Other Decks in Technology

Transcript

  1. > npm install babel-preset-env --save-dev /* .babelrc */ { "presets":

    [ ["env", {"targets": {"browsers": ["chrome > 52", "ie > 9"]} }] ] }
  2. /* helpers.js */ export function foo() {return 'foo'} export function

    bar() {return 'bar'} export function baz() {return 'baz'} /* main.js */ import {foo} from './helpers';