Skip to content

Commit

Permalink
Add ESM notes to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 committed Jan 21, 2024
1 parent 1af4003 commit f007f90
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,18 @@ module.exports = function(eleventyConfig) {
};
```

## ESM Support

Eleventy v3.0.0 [added bundler-free ESM support](https://www.11ty.dev/blog/canary-eleventy-v3). This plugin works with either ESM or CommonJS projects!

```js
import markdownPlugin from '@jgarber/eleventy-plugin-markdown';

export default async function(eleventyConfig) {
eleventyConfig.addPlugin(markdownPlugin);
}
```

## Acknowledgments

First and foremost, eleventy-plugin-markdown wouldn't be possible without [Zach Leatherman](https://www.zachleat.com)'s incredible work creating Eleventy and his stewardship of its community.
Expand Down

0 comments on commit f007f90

Please sign in to comment.