[Vuejs]-Vueify and Babel 7

0👍

You are right ! Vueify stopped maintaining their repository. Although, I was able to use the following fork : "vueify":"github:stendahls/vueify#master" which adds support for Babel 7 and @babel/preset-env. I will fork it myself but my tests were conclusive.

Then, in my Gulpfile I could use the following :

gulp.task('vueapp', () => {
    return browserify('assets/vueapp/js/main.js')
        .transform(vueify)
        .transform(babelify, {
            presets: ["@babel/preset-env"]
        })
        .bundle()
        .pipe(source('vueapp.js'))
        .pipe(gulp.dest('public/build/vueapp/js/'));
});

Leave a comment