/* Disable commonjs while building for webpack-2 tree shake */

const buildPreset = require('babel-preset-es2015').buildPreset;

const BABEL_ENV = process.env.BABEL_ENV;

module.exports = {
  presets: [
    [buildPreset, {
      loose: true,
      modules: BABEL_ENV === 'es' ? false : 'commonjs',
    }],
  ],
};

@@ -1,8 +1,45 @@
 /* 
-D
+For webpack 2 tree shake, we need to d
 isab
@@ -69,33 +69,8 @@
 ing 
-for webpack-2 tree shake 
 */%0A%0A

Update comment