I am struggling to set up grunt + browserify + tsify + babelify (with debug).
The below gruntfile setting does compile typescript, but no babel transpling is happening.
Can anybody let me know how to do this? (i might need to use gulp to do this??)
browserify: {
main: {
src: 'app/scripts/main.ts',
dest: 'app/scripts/bundle.js',
},
options: {
browserifyOptions: {
plugin: [['tsify']],
transform: [['babelify', {presets: ['es2015'], extensions: ['.ts']}]],
debug: true
}
}
}
tsconfig.json has target set to 'es2015'.