Skip to content

Conversation

curran
Copy link

@curran curran commented Sep 26, 2019

Closes #173

@curran
Copy link
Author

curran commented Sep 26, 2019

This PR adds a browser build by leveraging browserify-shim, and the --standalone argument of Browserify. The output bundle expects that React and ReactDOM globals are defined, but bundles the classnames package as it's so small.

This PR also adds a minified version of the browser build.

This change will make the library usable in a browser environment.

By the way, I'm not sure why there are minor changes in dist/index.js. I'd guess it's a Babel version bump or something.

@curran
Copy link
Author

curran commented Sep 26, 2019

FWIW, in the mean time I've published the fork with the browser build here https://github.com/datavis-tech/react-dropdown-browser .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Browser Build
1 participant