-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
.11ty.cjs extension not recognized as JavaScript template #826
Comments
What are the ramifications of this? Is this still accurate? https://2ality.com/2019/04/nodejs-esm-impl.html#filename-extensions If so it would seem like we should add both |
The thing with |
Sorry for all the questions, I’m pretty sure I’m totally on board with this but I’m a little new to the modules discussion and familiarizing myself. If you have any good resources to share I would greatly appreciate them! So you’re using Also thinking ahead a little bit, it seems like additional work will probably need to be done if I want Eleventy to support ESM templates by default (or with |
Added a few additional TODOs for this task at #837 |
No worries on the modules questions. I happen to know a lot of the details from a lot of different projects, so I'm a good one to ask :) I'll take it to #837 |
Describe the bug
I have a project that has to have
"type": "module"
in its package.json. For other tools simply changing configuration/plugin scripts to have a.cjs
extension has worked. Templates with.11ty.cjs
don't work for eleventy however as that extension isn't recognized as a JavaScript template type.To Reproduce
Steps to reproduce the behavior:
_includes/home.11ty.cjs
template filelayout: home.11ty.cjs
to a content fileExpected behavior
_includes/home.11ty.cjs
is treated as a JavaScript templateScreenshots
The error:
Environment:
The text was updated successfully, but these errors were encountered: