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

@@ -1,7 +1,7 @@
const path = require("path");
const eleventyImage = require("@11ty/eleventy-img");
import path from "path";
import eleventyImage from "@11ty/eleventy-img";
module.exports = eleventyConfig => {
export default function(eleventyConfig) {
function relativeToInputPath(inputPath, relativeFilePath) {
let split = inputPath.split("/");
split.pop();