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

Not working with jsx import extensions #14

Open
sachaw opened this issue May 11, 2023 · 0 comments
Open

Not working with jsx import extensions #14

sachaw opened this issue May 11, 2023 · 0 comments

Comments

@sachaw
Copy link

sachaw commented May 11, 2023

When using in a library/package with moduleResolution set to node16 or nodenext, file extensions are required for local imports.
for ts files, imports should end in .js and for tsx files, they should end in .jsx.

using rollup-preset-solid as-is, .js imports work fine, however any ending in .jsx fail to resolve and requires the use of @rollup/plugin-typescript

Could this behaviour be rolled into this preset, as I have seen a few people come unstuck when trying to move to modern module resolution.

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

No branches or pull requests

1 participant