Skip to content

Conversation

@karlseguin
Copy link
Collaborator

The first time import.meta is called within a module, this callback is called and we can populate it with whatever fields we want. For WebAPI, the important field is url:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta

Also fixed a URL.stitch case, and fixed 2 module caching issues, one where we were caching after the value was needed, and one where we were potentially caching a relative URL.

Depends on: lightpanda-io/zig-v8-fork#80

The first time `import.meta` is called within a module, this callback is called
and we can populate it with whatever fields we want. For WebAPI, the important
field is `url`:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta

Depends on: lightpanda-io/zig-v8-fork#80
@karlseguin karlseguin marked this pull request as ready for review July 2, 2025 06:52
@karlseguin karlseguin merged commit 81fb71b into main Jul 3, 2025
22 of 23 checks passed
@karlseguin karlseguin deleted the SetHostInitializeImportMetaObjectCallback branch July 3, 2025 01:17
@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants