-
-
Notifications
You must be signed in to change notification settings - Fork 533
What is the appropriate way to import & setup react-tooltip as of 5.10.5? #1002
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
Comments
Hi @tliu30, thanks for reporting, we are trying to decrease the bundle size removing the unnecessary things, but we are not removing those files. We'll take a look as soon as we have time this week at this issue. Thank you so much! |
Hi, can you test this beta release and let us know, please? Beta version:
or
|
Not 100% sure, but it's probably related: I can add EDIT: test / watch / build - all work fine. it's just the lint step that fails. |
Please test the official release |
Works for me - thank you for the hard work! |
Hi react-tooltip devs!
I was attempting to upgrade from 5.10.0 to 5.10.5, and noticed what seem to be some changes in the build. I wasn't sure if these changes were expected (the
README
doesn't seem to have changed), so wanted to ask you directly.Here's what I see on my local machine after using npm to install version 5.10.5:
First, there is no longer a non-minified CSS file, i.e., there is no longer a
react-tooltip.css
. Was that intentional? I'm noticing that the README still refers to the non-minified file; the README also states that are minified and non-minified versions of each module.Second, trying to import directly as
react-tooltip
doesn't seem to work anymore - i think possibly because instead of havingesm
andcjs
modes, there's now just a*.cjs
or*.mjs
. What's the correct way to import those files? By specifying, e.g.,import XXX from @react-tooltip.mjs
?Thanks again!
tliu30
The text was updated successfully, but these errors were encountered: