-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Support import as ES module type #209
Comments
Is there any progress on this issue? 👀 It is very nice and quick to use an esmodule. No need to set up a bundler and you get all the type hints from the lsp |
It's tough work in several reasons:
For now you can use Skypack, the CDN that converts packages into ES modules. Ref: #207 (comment) |
|
ESM Supports importing from esm or cjs so that isn't an issue. Especially when using typescript as there are extra compatibility features. The type issue I found is the lack of You can easily support multiple distributions for this package, if you expect people to be bundling this then ESM support is also super important as that is the only way to treeshake. You should take a look at tsup to replace the current rollup build step you have |
Published the beta release of the next major version v4 and it's ES module. You can try it with |
Released in v4.0.0. |
It would be great if Tweakpane could support ES module (
type="module"
) import.The text was updated successfully, but these errors were encountered: