ejs-loader
ejs-loader copied to clipboard
ES2015
I've translated the syntax to ES2015. This way you can make use of the import destructure operator to only include the functions you really need. This will reduce the file size and improves the performance overall.
to only include the functions you really need
No, this is not how restructuring in imports/requires works. Your change won't affect the bundle size.
Another problem with your change is that destructuring doesn't work in Node 4 so you need to upgrade / specify engines
in package.json
to make Node 6 an explicit dependency.