I have require which executes itself and saves result into variable
var $ = require('gulp-load-plugins')();
I am playing with Babel and trying to figure out how to do this in ES6. Now obviously I could do something like
import gulpLoadPlugins from 'gulp-load-plugins';
const $ = gulpLoadPlugins();
But I was wondering if there is some nice one liner way to do it, like with require.