You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there!
I'm looking to using this in our project and I'm wondering what the best way to add it to our project is. We're excluding node_modules/ from the JSX parsing for performance (don't want to pipe all that through Babel), which means that var Selectable = require("react-selectable"); complains about unparsed JSX.
I tried doing var Selectable = require("../../../../node_modules/react-selectable/dist/bundle.js"); but that pulls in the whole example app.
Do you think it'd be a good idea to provide a ready built JS file for people to use?
Activity
lrecknagel commentedon Jan 7, 2016
I have the same issue, when I try to use it via:
Can you please provide a solution for that. I read the article from dvdplm but I cant get it to work.
Kind Regards.
unclecheese commentedon Jan 7, 2016
Yeah, I'm still trying to figure this one out. This is the first react/npm module I've released, so I'm a bit new to it.
unclecheese commentedon Feb 2, 2016
Could this issue be solved by changing the
package.json"main": "src/react-selectable.js"to point to"dist/react-selectable.js"instead?Merge pull request unclecheese#3 from buhuitou/add-dynamic-registration