Skip to content
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

can't use dnt with cliffy because of top-level await #735

Open
rubenfiszel opened this issue Sep 6, 2024 · 1 comment
Open

can't use dnt with cliffy because of top-level await #735

rubenfiszel opened this issue Sep 6, 2024 · 1 comment

Comments

@rubenfiszel
Copy link
Contributor

? await import("node:fs")

[dnt] Top level await cannot be used when distributing CommonJS/UMD (See deps/jsr.io/@cliffy/internal/1.0.0-rc.5/runtime/read_sync.ts 6:5). Please re-organize your code to not use a top level await or only distribute an ES module by setting the 'scriptModule' build option to false.
@rubenfiszel
Copy link
Contributor Author

Using scriptModule: false works in the meantime

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

No branches or pull requests

1 participant