Repository navigation
modules: preserve import requests with attributes - #4
Merged
Merged
Conversation
Keep distinct requests for attribute-aware normalizers so hosts can resolve the same specifier with different import types. Preserve the existing behavior for legacy normalizers.
yorkiemakoto
force-pushed
the
codex/fix-import-attribute-requests
branch
from
November 12, 2026 10:13
1857f63 to
f01e4f0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A host with an attributes-aware module normalizer cannot distinguish imports of the same specifier with different attributes because the parser merges the requests before calling the host. Preserve separate requests when an attributes-aware normalizer is configured, allowing the host to produce distinct module identities. Legacy normalizers retain their existing behavior.
The tests cover typed and plain imports in both orders and confirm that unsupported types still fail for legacy and null normalizers. The macOS runner update keeps CI on a supported image.
Bytecode serialization is out of scope and tracked separately in #5. No generated files are changed.
Validation:
make codegenproduces no generated-file diffink-scriptingand real image/plain asset import regression testsMerge using a merge commit before the dependent rquickjs PR so the pinned commit remains reachable. If squashed or rebased, update the downstream pointer and rerun validation.
Refs: https://github.com/jsar-project/ink/issues/667