require('babel-register')({
  presets: ['es2015', 'flow'],
  ignore: /node_modules(?!\/haul-cli)/,
  retainLines: true,
  sourceMaps: 'inline',
});

if (process.argv.indexOf('--webpack-config') >= 0 ||
  process.argv.indexOf('--ext') >= 0) {
  module.exports = require('./webpack.config');
} else {
  require('./webpack.run');
}
require('babel-register')({
  presets: ['es2015', 'stage-0', 'flow'],
  ignore: /node_modules(?!\/haul-cli)/,
  retainLines: true,
  sourceMaps: 'inline',
});
require('babel-polyfill');

if (process.argv.indexOf('--webpack-config') >= 0 ||
  process.argv.indexOf('--ext') >= 0) {
  module.exports = require('./webpack.config');
} else {
  require('./webpack.run');
}
Add support for older Node versions
Add support for older Node versions
