Skip to content

test: update stale remote-assets runtime API snapshot - #248

Merged
antfu merged 1 commit into
mainfrom
fix/remote-assets-runtime-snapshot
Aug 17, 2026
Merged

test: update stale remote-assets runtime API snapshot#248
antfu merged 1 commit into
mainfrom
fix/remote-assets-runtime-snapshot

Conversation

@antfubot

Copy link
Copy Markdown
Collaborator

Summary

tests/exports.test.ts > devframe > runtime: ./utils/remote-assets was failing: the runtime API snapshot for devframe/utils/remote-assets still expected an inline function declaration, but the built output now re-exports the function from a shared chunk.

Why

resolveStaticAssetsSource is imported from multiple entry points (adapters/initiate.ts, adapters/build.ts, node/host-views.ts) in addition to being its own entry, so rolldown's multi-entry code-splitting hoists it into a shared chunk — utils/remote-assets.mjs now does export { resolveStaticAssetsSource } instead of declaring it inline. The exported function's signature/arity is unchanged. A prior snapshot-fix commit (2838098e) updated the type-declaration snapshots for the remote-assets changes but missed this entry's runtime .js snapshot.

Change

Regenerated the stale tests/__snapshots__/tsnapi/devframe/utils/remote-assets.snapshot.js snapshot to match current build output. The .d.ts snapshot was already correct.


Created with the help of an agent.

resolveStaticAssetsSource is now imported by multiple entry points
(adapters/initiate, adapters/build, node/host-views) in addition to
being its own entry, so rolldown's multi-entry code-splitting hoists
it into a shared chunk and utils/remote-assets.mjs re-exports it
instead of declaring it inline. The signature is unchanged; only the
prior snapshot fix (2838098) missed this entry's runtime snapshot.
@netlify

netlify Bot commented Aug 17, 2026

Copy link
Copy Markdown

Deploy Preview for devfra ready!

Name Link
🔨 Latest commit 00692b5
🔍 Latest deploy log https://app.netlify.com/projects/devfra/deploys/6a8295095582e30008d2232a
😎 Deploy Preview https://deploy-preview-248--devfra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@antfu
antfu merged commit 8f744b7 into main Aug 17, 2026
12 checks passed
@antfu
antfu deleted the fix/remote-assets-runtime-snapshot branch August 17, 2026 05:11
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.

2 participants