-
Notifications
You must be signed in to change notification settings - Fork 126
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
Specifying dynamic import dependencies #201
Comments
How are you including it?
|
It is in a conditional block: if (!("URLPattern" in globalThis)) {
await import("urlpattern-polyfill");
} I tried with The version 0.5.1-alpha.4, 0.5.1-alpha.3 and 0.5.1-alpha.2 all contain the various forms that don't include the dependency when consumed via Node.js or Bun. |
Gee, yeah that looks like a bug. Will fix tomorrow |
To provide compatibility under Bun and Node.js for one of my projects, I need to dynamically import a polyfill in those environments and I can't seem to get the publish to identify that as a dependency.
I have tried adding it to the import map and even included a
package.json
as part of the project, and while the dependency is resolved locally with the Deno CLI, it is not detected on publish, and therefore on consumption the dependency is not there.There should be a way to specify dependencies that does not get elided upon "incorrect" static analysis.
The text was updated successfully, but these errors were encountered: