Skip to content

feat: #4 upgrade 11ty v3 and adopt ESM#17

Merged
thescientist13 merged 5 commits into
masterfrom
feat/11ty-v3-and-esm
Dec 23, 2025
Merged

feat: #4 upgrade 11ty v3 and adopt ESM#17
thescientist13 merged 5 commits into
masterfrom
feat/11ty-v3-and-esm

Conversation

@thescientist13

@thescientist13 thescientist13 commented Dec 17, 2025

Copy link
Copy Markdown
Member

resolves #4

Summary of Changes

Did a big dependency overhaul since the deps here were extremely outdated

  1. 11ty 3.x (breaking)
  2. WCC 0.18.0 (could be breaking)
  3. Package is now ESM (breaking)
  4. Update local dev Node version / GitHub actions / netlify.toml

So it looks like this upgrade kind of resolves #8 too? The custom element in the demo directory now correctly renders (I can't remember if it did before, but it wasn't working for me locally)
Screenshot 2025-12-16 at 9 16 10 PM

however, there are still wrapping <p> tags? 🤔
Screenshot 2025-12-16 at 9 54 04 PM

TODO

  1. need to find an alternative solution to cache busting on watch / reload

@thescientist13 thescientist13 added documentation Improvements or additions to documentation enhancement New feature or request breaking labels Dec 17, 2025
@thescientist13 thescientist13 self-assigned this Dec 17, 2025
@netlify

netlify Bot commented Dec 17, 2025

Copy link
Copy Markdown

Deploy Preview for legendary-starlight-75451b ready!

Name Link
🔨 Latest commit f3e42d8
🔍 Latest deploy log https://app.netlify.com/projects/legendary-starlight-75451b/deploys/6949f858221e220008456d41
😎 Deploy Preview https://deploy-preview-17--legendary-starlight-75451b.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@thescientist13 thescientist13 changed the title feat: #4 upgrade 11ty v3 feat: #4 upgrade 11ty v3 and adopt ESM Dec 17, 2025
@thescientist13 thescientist13 marked this pull request as ready for review December 17, 2025 02:55

@KaiPrince KaiPrince left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I notice the CI still hasn’t run

Comment thread .github/workflows/ci-win.yml Outdated

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The latest version for this and setup-node is actually v6

Comment thread src/index.js
delete require.cache[require.resolve(file)];
// naive cache busting solution for ESM
// https://github.com/nodejs/help/issues/2806
await import(`${file}?t=${Date.now()}`);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@thescientist13

Copy link
Copy Markdown
Member Author

@KaiPrince

I notice the CI still hasn’t run

Ah, yeah. Two od those are branch protections setting detection job checks which don't apply anymore now after this PR, the rest are still valid.
Screenshot 2025-12-22 at 8 58 42 PM

Let me remove those out of date checks, and update checkout verison.

@thescientist13 thescientist13 merged commit 7e57c34 into master Dec 23, 2025
8 checks passed
@thescientist13 thescientist13 deleted the feat/11ty-v3-and-esm branch December 23, 2025 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

avoid wrapping custom elements in <p> tags adopt ESM with 11ty

2 participants