Skip to content

0.14.0 namedlazypath interface #13

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

Closed

Conversation

dasimmet
Copy link
Contributor

@dasimmet dasimmet commented Jan 11, 2025

Resolves #10
Resolves #11

on zig 0.14.0-dev.2613+0bf44c309 we can pass a LazyPath through the Dependency interface.
The advantage is we can optionally use b.lazyDependency to only optionally compile another dependency into our Build Runner, e.g. if we actually target wasm on the consumer side.

the emitted js is retrieved with "dep.namedLazyPath".

but the DataView example crashes for now

@scottredig
Copy link
Owner

Thanks for the PR, but this is not what #10 is asking to be done. Please look at the examples cited in #10, or ask for clarification in that issue if it's still not clear what it's asking for.

but the DataView example crashes for now
This is an unacceptable regression for a PR.

@scottredig scottredig closed this Jan 12, 2025
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.

Add support for generating a javascript module Change build.zig usage to use a function
2 participants