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

importing rollup from esm.sh doesn't work #5375

Closed
phaux opened this issue Feb 4, 2024 · 2 comments · Fixed by #5382
Closed

importing rollup from esm.sh doesn't work #5375

phaux opened this issue Feb 4, 2024 · 2 comments · Fixed by #5382

Comments

@phaux
Copy link

phaux commented Feb 4, 2024

Rollup Version

4.9.6

Operating System (or Browser)

all

Node Version (if applicable)

deno 1.40.3

Link To Reproduction

just run deno eval 'import "https://esm.sh/rollup"'

Expected Behaviour

Docs say you can import rollup from esm.sh:

import {rollup} from "https://esm.sh/rollup@2.61.1";

Actual Behaviour

Version from the docs works but the latest version fails to build at esm.sh and others:

https://esm.sh/rollup@4.9.6 (error at https://esm.sh/v135/rollup@4.9.6/es2022/dist/native.js)
https://esm.run/rollup@4.9.6
https://cdn.skypack.dev/rollup@4.9.6

@TrickyPi
Copy link
Member

TrickyPi commented Feb 5, 2024

Thanks for spotting. As a workaround, use @rollup/browser instead. I will update the docs later.

Copy link

This issue has been resolved via #5382 as part of rollup@4.10.0. You can test it via npm install rollup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants