-
-
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
Module aliases not working #671
Comments
thanks! i will look into it |
you can use <script type="importmap">
{
"imports": {
"preact": "https://esm.sh/preact",
"preact/": "https://esm.sh/preact/",
"react": "https://esm.sh/preact/compat",
"react-dom": "https://esm.sh/preact/compat",
"flowbite-react": "https://esm.sh/flowbite-react@v0.4.9?external=react,react-dom"
}
}
</script> |
there is a bug of handing subpath of |
i will fix ASAP |
Good call on using Thanks for fixing the runtime aliasing issue 🙌 |
Aliasing
react
andreact-dom
topreact/compat
seems to sometimes work and sometimes not.Works:
Doesn't work because it pulls in
react-dom
even when?alias
is set:Failing module
Error message
None, because it renders nothing as
react-dom
is pulled in instead ofpreact
.Additional info
The text was updated successfully, but these errors were encountered: