-
Notifications
You must be signed in to change notification settings - Fork 102
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
Something rewrote my import to from 'npm:lit@^2.2.7';
and now I can't build with esbuild
#139
Comments
Bill Mill found a workaround using esbuild_deno_loader: |
The |
The fix is in #172 |
We previously only transpiled ts sources, but we need to transpile js sources as well to be able to rewrite imports like turning `import ... from "npm:lit@^2.2.7"` into `import ... from "lit";`. Fixes #139
Thanks, this works for me now! Notes here: https://til.simonwillison.net/javascript/jsr-esbuild#user-content-and-now-it-works |
Thanks for updating the blog post. Yeah it was just a bug on our end. Happy to see it resolved 👍 |
My original source code here: https:/simonw/datasette-table/blob/0.1.0/datasette-table.js
After I published it to
jsr.io
it was rewritten like this: https://jsr.io/@datasette/table/0.1.0/datasette-table.jsBut now when I try to install it and run it through
esbuild
I get an error:Error:
I asked in Discord and
marvinh
said: https://discord.com/channels/684898665143206084/1203185670508515399/1213595537505521664More of my notes here: https://til.simonwillison.net/javascript/jsr-esbuild
The text was updated successfully, but these errors were encountered: