Skip to content
10 changes: 4 additions & 6 deletions site/.eleventy.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@

const shiki = require("shiki");

// @ts-expect-error
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");

const dateFormatter = new Intl.DateTimeFormat("en-US", { year: "numeric", month: "long", day: "numeric" });
const listFormatter = new Intl.ListFormat("en-US", { style: "long", type: "conjunction" });

/**
*
* @param {import("@11ty/eleventy").UserConfig} eleventyConfig
*/
module.exports = function (eleventyConfig) {
module.exports = async function (eleventyConfig) {
const shiki = await import("shiki");
const { EleventyHtmlBasePlugin } = await import("@11ty/eleventy");

eleventyConfig.addPlugin(EleventyHtmlBasePlugin);

eleventyConfig.addPassthroughCopy("./src/css");
Expand Down