-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Add preact/compat aliases by default #12403
Conversation
Hey @developit, thanks for this fix! We're getting some build errors in CI based on these changes. Can you take a look?
|
Co-authored-by: Kristoffer K. <[email protected]>
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
What is happening ?
|
react: require.resolve('preact/compat'), | ||
'react-dom': require.resolve('preact/compat'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
react: require.resolve('preact/compat'), | |
'react-dom': require.resolve('preact/compat'), | |
react: path.dirname(require.resolve('preact/compat/package.json')), | |
'react-dom': path.dirname(require.resolve('preact/compat/package.json')), |
My bad, needs to get the entry path otherwise node will load from main
instead of letting webpack load from module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same thing
it creates nice path
but the end result is that ui is stuck
It compiles well, shows storybook controls and then stuck with a loader...
@developit Is this supposed to work? |
Hey ! |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Closing in favour of #14555. |
What I did
Added aliases for
react
andreact-dom
so they point topreact/compat
by default when using thepreact
template.How to test