-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ESM #260
Comments
This is 100% something we need to look into. To be honest, I am strongly considering migrating |
PlopJS 3 is releasing this Saturday, with ESM support! It's stable and has a changelog today ( #293 ) but won't be launched until Saturday so that, in the event something goes wrong, I can support immediately. |
ESM modules in Plop are now supported as-of Plop 3! |
Follow up for #148
Since 2 years ago, there have been many new things in Node such as support for ECMAScript modules
It would be great to enable ESM support, at least to some extent.
Currently
plopfile
exports a function. The easiest workaround 1️⃣ I can think of is for theplopfile
to export a function or a promise resolving a function. Then the plopfile could look like2️⃣ Another more robust solution could be
But after having a brief look on
node-plop
, it seems that this way would be more complicated, most likely a breaking change, becauseconfigPath
is not used only for loading theplopfile
🤔3️⃣ I'm sure there are other options as well 😄
What do you think, are the ES modules something worth supporting in
plop
?The text was updated successfully, but these errors were encountered: