Skip to content

Commit

Permalink
Temporarily opt-out of EsmResolver (failing Node 22 tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Jun 19, 2024
1 parent b5571f0 commit 6edb23c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Util/Require.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const { port1, port2 } = new MessageChannel();
// ESM Cache Buster is an enhancement that works in Node 18.19+
// https://nodejs.org/docs/latest/api/module.html#moduleregisterspecifier-parenturl-options
// Fixes https:/11ty/eleventy/issues/3270
if ("register" in module) {
// Temporary: ELEVENTY_SKIP_ESM_RESOLVER to opt-out of Node 22 Ubuntu tests
if ("register" in module && !process.env.ELEVENTY_SKIP_ESM_RESOLVER) {
module.register("./EsmResolver.js", import.meta.url, {
data: {
port: port2,
Expand Down

0 comments on commit 6edb23c

Please sign in to comment.