Skip to content

chore(deps): support Remix 3.0.0-rc.2 (import maps) - #2

Merged
qisthidev merged 1 commit into
mainfrom
chore/remix-rc2
Sep 10, 2026
Merged

chore(deps): support Remix 3.0.0-rc.2 (import maps)#2
qisthidev merged 1 commit into
mainfrom
chore/remix-rc2

Conversation

@qisthidev

Copy link
Copy Markdown
Member

rc.2 (release notes) serves browser scripts through import maps instead of rewriting import specifiers, so any app or playground must render the script entry's import map before its modulepreload links and module script. The exact peer pin on 3.0.0-rc.1 also makes the package uninstallable next to rc.2 without --legacy-peer-deps.

Changes

  • peer + dev remix3.0.0-rc.2
  • playground: assets.getHref()/getPreloads()assets.getScriptEntry()
  • playground: render <ImportMap value={importMap} /> from remix/ui/server before the preloads and module script
  • playground entry: load modules via importModule() and add processClientEntryPreloads from remix/multiple-import-maps-polyfill, so browsers without support for multiple import maps still work

No src/ changes — component behaviour is untouched.

Verification

  • npm run typecheck and npm run build clean
  • playground boots and serves the expected <script data-rmx-import-map type="importmap"> with the entry's scoped mappings
  • the Playwright suite could not run on my machine (it ran out of memory mid-run; the browser download for @playwright/test 1.58.2 was also missing). CI coverage would be welcome before merge.

🤖 Generated with Claude Code

https://claude.ai/code/session_01D82KgtSg9Z1nLAEKvmQP3M

rc.2 resolves browser scripts through import maps instead of rewriting specifiers, so the
playground has to render the entry's map before its preloads and module script.

- peer/dev `remix` -> 3.0.0-rc.2
- playground: `getHref`/`getPreloads` -> `getScriptEntry()`, render `<ImportMap>` from
  `remix/ui/server`, load modules with `importModule()` + `processClientEntryPreloads`
  from `remix/multiple-import-maps-polyfill`

Verified: `npm run typecheck` and `npm run build` clean; playground renders the expected
`<script type="importmap">` and boots. Playwright suite could not be run here (machine is
out of memory), so please let CI run it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D82KgtSg9Z1nLAEKvmQP3M
@qisthidev
qisthidev merged commit 60432e3 into main Sep 10, 2026
1 check failed
@qisthidev
qisthidev deleted the chore/remix-rc2 branch September 10, 2026 00:33
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

Successfully merging this pull request may close these issues.

1 participant