noxify / gridsome-plugin-remark-image-download

MIT License
4 stars 3 forks source link

import es module #1

Closed gastonfeng closed 3 years ago

noxify commented 3 years ago

Hi,

Thanks for the PR.

What is the benefit from using import() ?

Why did you changed it only for one package and not for all?

gastonfeng commented 3 years ago

Hi, in my project: require() of ES modules is not supported. so, change require to import is ok. image-download is a ES module.

capsia37 commented 3 years ago

Hi, same here, I think it is probably related to a newer node version

capsia37 commented 3 years ago

Hi @gastonfeng , have you solved your issue? I think this merge request is still useful if someone needs to use a newer version of node. In my project I need node 14, because previous versions are not supported by the gridsome-plugin-flexsearch