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

How to add custom import attributes? (to test polyfill ideas) #462

Open
trusktr opened this issue Feb 1, 2025 · 1 comment
Open

How to add custom import attributes? (to test polyfill ideas) #462

trusktr opened this issue Feb 1, 2025 · 1 comment

Comments

@trusktr
Copy link

trusktr commented Feb 1, 2025

Over in

I'd like some pointers on how to add a custom import attribute before jumping in, so I can make concepts (polyfills) of what new features could look like.

In this case, I want to prototype what "element modules" or "html modules" could look like as part of the Web Components CG.

@guybedford
Copy link
Owner

As a polyfill project, the best way to add a new polyfill to ES module shims for this would be to create a fork and.

Basically, following the existing pattern for JSON and CSS in the source code, it would be possible to extend the project to polyfill other features.

If these features were to achieve placement in a standardization process, we can definitely upstream them into the project as it does aim to support polyfilling all web standards.

Pluggable attribute systems is not a goal for the project though, which might explain the friction you're hitting. But forking is exactly the recommended way here since it's a feature addition to the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants