We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
deno run -A -r https://esm.sh init deno task esm:add react:preact/compat @radix-ui/react-slot
results in a deno.json file containing:
"imports": { "@radix-ui/react-slot": "https://esm.sh/v135/*@radix-ui/[email protected]", "react": "https://esm.sh/v135/[email protected]/compat" }, "scopes": { "https://esm.sh/v135/": { "@radix-ui/react-compose-refs": "https://esm.sh/v135/@radix-ui/[email protected]" } }
The * in the first line means that everything imported by react-slot is externalized. What I would like instead is:
*
react-slot
"imports": { "@radix-ui/react-slot": "https://esm.sh/v135/@radix-ui/[email protected]&bundle-deps&external=react", "react": "https://esm.sh/v135/[email protected]/compat" },
So that react is externalized from react-slot but other dependencies are bundled.
react
More generically, if I run deno task esm:add a b c, I want:
deno task esm:add a b c
"imports": { "a": "https://esm.sh/v135/a@[VERSION]&bundle-deps&external=b,c", "b": "https://esm.sh/v135/b@[VERSION]&bundle-deps&external=a,c", "c": "https://esm.sh/v135/c@[VERSION]&bundle-deps&external=a,b" },
Is there configuration or command options that already allow this? If not, would there be interest in a PR that adds that?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
results in a deno.json file containing:
The
*
in the first line means that everything imported byreact-slot
is externalized. What I would like instead is:So that
react
is externalized fromreact-slot
but other dependencies are bundled.More generically, if I run
deno task esm:add a b c
, I want:Is there configuration or command options that already allow this? If not, would there be interest in a PR that adds that?
The text was updated successfully, but these errors were encountered: