Skip to content

Commit

Permalink
Alias more extensions as 11ty.js
Browse files Browse the repository at this point in the history
Allow more extensions to be treated at the `11ty.js` template engine. This builds on the work of 11ty#2249 and solves 11ty#2248. A user could run Eleventy via `ts-node` or `esbuild-register` and have the appropriate behavior now.
  • Loading branch information
pspeter3 committed Mar 16, 2022
1 parent 1c28f18 commit 47e32bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/EleventyExtensionMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ class EleventyExtensionMap {
liquid: "liquid",
"11ty.js": "11ty.js",
"11ty.cjs": "11ty.js",
"11ty.jsx": "11ty.js",
"11ty.ts": "11ty.js",
"11ty.tsx": "11ty.js",
};

if ("extensionMap" in this.config) {
Expand Down

0 comments on commit 47e32bc

Please sign in to comment.