[Exampe] using-preact - package.json: react => preact-compat unnecessary? #16716
Unanswered
kevineinarsson
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Heya, I have a project that I bootstrapped from the
using-preact
example and want to add Storybook to. Because how Storybook internally uses React and then iframes your application, some issues arise from thepackage.json
configuration.Storybook won't start because some of the imports go to the version specified in package.json and others go to
react
, mixing versions of react and such.By replacing those React dependencies with normal ones and just adding
preact
as a dependency nothing seems to be broken... The app still uses Preact to render and from what I can tell the bundles don't contain anything from React since they're still being aliased topreact/compat
in the webpack config.Can anyone help me figure out why the react dep in package.json specified as
github:preact-compat/react#1.0.0
? Is there something I'm missing? Is it to make thenode_modules
directory smaller?Beta Was this translation helpful? Give feedback.
All reactions