Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: undefined export from eleventy package #267

Merged
merged 4 commits into from
Jul 31, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/OgImage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { promises as fs } from 'node:fs';
import module from 'node:module';
import { File } from '@11ty/eleventy/src/Plugins/RenderPlugin.js';
import { RenderPlugin } from '@11ty/eleventy';
/* eslint-disable import/no-unresolved */
// https://github.com/import-js/eslint-plugin-import/issues/2132
import { html as htmlToSatori } from 'satori-html';
Expand All @@ -15,6 +15,8 @@ import path from 'node:path';
import url from 'node:url';
import { sortObject } from './utils/index.js';

const { File } = RenderPlugin;
chrisburnell marked this conversation as resolved.
Show resolved Hide resolved

const require = module.createRequire(import.meta.url);

const Yoga = await initYoga(await fs.readFile(require.resolve('yoga-wasm-web/dist/yoga.wasm')));
Expand Down