this is what I have in my babel-options.js
file. My app fails to load and without any errors in the console
I also tried updating the presets to [['latest', { loose: true, modules: modules }], 'stage-3]
, but gulp complained about not being able to find the relative path to latest
babel-options.js
var path = require('path');
var paths = require('./paths');
module.exports = function(modules) {
return {
filename: '',
filenameRelative: '',
sourceMap: true,
sourceRoot: '',
moduleRoot: path.resolve('src').replace(/\\/g, '/'),
moduleIds: false,
comments: false,
compact: false,
code: true,
presets: [ ['es2015', { loose: true, modules: modules }], 'stage-1'],
plugins: [
'syntax-flow',
'transform-decorators-legacy',
'transform-flow-strip-types',
'transform-async-to-generator'
]
};
};
skeleton pack I'm using: https://github.com/aurelia/skeleton-navigation/tree/master/skeleton-esnext
sample babel-options.js
https://github.com/aurelia/skeleton-navigation/blob/master/skeleton-esnext/build/babel-options.js
npm install babel-preset-latest
when you updated the config? – loganfsmyth