ejs-loader icon indicating copy to clipboard operation
ejs-loader copied to clipboard

ES2015

Open marcobiedermann opened this issue 6 years ago • 1 comments

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.

marcobiedermann avatar Oct 18 '17 21:10 marcobiedermann

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.

okonet avatar Feb 17 '18 08:02 okonet