var gulp        = require( 'gulp' );
var browserify  = require( 'browserify' );
var source      = require( 'vinyl-source-stream' );
var uglify      = require( 'gulp-uglify' );
var streamify   = require( 'gulp-streamify' );

gulp.task( 'browserify', function() {
    return browserify( './index.js' )
        .bundle()
        .pipe( source( 'vip-js-sdk.js' ) )
        .pipe( streamify( uglify() ) )
        .pipe( gulp.dest( './dist/' ) );
});

var gulp        = require( 'gulp' );
var browserify  = require( 'browserify' );
var source      = require( 'vinyl-source-stream' );
var uglify      = require('gulp-uglify-es').default;;
var streamify   = require( 'gulp-streamify' );

gulp.task( 'browserify', function() {
    return browserify( './index.js' )
        .bundle()
        .pipe( source( 'vip-js-sdk.js' ) )
        .pipe( streamify( uglify() ) )
        .pipe( gulp.dest( './dist/' ) );
});

Use gulp-uglify-es instead of gulp-uglify
Use gulp-uglify-es instead of gulp-uglify

To properly build the project - has ES in spots
