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.
But I was wondering if there is some nice one liner way to do it, like with require.
No there is not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With