-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
named exports are missing #38
Comments
Because esm.sh get named export by using
And your @lume/package/dist/LumeElement use Maybe we should try another way to get package's named export, puppeteer or something browser-like environment instead of node eval. |
Yeah, it is a browser lib that uses I think if the aim is to support Random ideas: use Babel or TypeScript compilers to get an AST, then read the exports from there. That would be a more realistic way to do it I think. It would not require running any code (that can be left to the end user to decide where they will run the code). |
results in logging
undefined
instead of the expected value.Note that the
@lume/element
package follows modern ESM standards and it works in Node.js ESM, or any tools that strictly follow Node ESM standards (like Webpack 5+).Here's what the entry looks like: https://unpkg.com/@lume/element
The text was updated successfully, but these errors were encountered: