v9 switches to ESM
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user