From 162f48f87ef9d156fe0c7d8a807d75ff4a54ddcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Schubert?= Date: Tue, 25 Jan 2022 14:05:53 +0100 Subject: [PATCH] fix(eleventy): dynamic import of node-fetch --- .eleventy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index 102967fe12..9c70e4ba53 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,5 +1,4 @@ require('dotenv').config() -const fetch = require('node-fetch') const eleventyNavigationPlugin = require('@11ty/eleventy-navigation') const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight') const markdownIt = require('markdown-it') @@ -95,6 +94,7 @@ module.exports = function (eleventyConfig) { let commits try { + const fetch = await import('node-fetch') const res = await fetch( `https://api.github.com/repos/emdgroup-liquid/liquid/commits?path=${path}`, {