Skip to content
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

Update plop.load docs regarding async/await requirement in es6 modules #378

Merged
merged 1 commit into from
Jun 18, 2023

Conversation

JanThiel
Copy link
Contributor

Using plop.load within es6 modules requires the usage of async/await. This is well documented within plops unit tests. It is sadly not documented anywhere else (yet) ;-)

This PR fixes that and adds the missing parts to the documentation. Reducing frustration of first-time-ploppers within modern JS projects.

@amwmedia
Copy link
Member

@crutchcorn Can you verify that the documentation update represents the preferred approach when using plop.load with the newer es6 module changes?

Copy link
Member

@crutchcorn crutchcorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, thank you!

@crutchcorn crutchcorn merged commit f0742f2 into plopjs:main Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants