v9 switches to ESM

This commit is contained in:
Zach Leatherman
2023-11-10 16:41:13 -06:00
parent d78b03ae1d
commit 6d64bd2813
7 changed files with 22 additions and 20 deletions

View File

@@ -24,10 +24,9 @@ function eleventyComputedExcludeFromCollections() {
}
};
module.exports.eleventyComputedPermalink = eleventyComputedPermalink;
module.exports.eleventyComputedExcludeFromCollections = eleventyComputedExcludeFromCollections;
export { eleventyComputedPermalink, eleventyComputedExcludeFromCollections };
module.exports = eleventyConfig => {
export default function(eleventyConfig) {
eleventyConfig.addGlobalData("eleventyComputed.permalink", eleventyComputedPermalink);
eleventyConfig.addGlobalData("eleventyComputed.eleventyExcludeFromCollections", eleventyComputedExcludeFromCollections);