Skip to content
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

Added js build for webpack compatibilty #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vegetableman
Copy link

Ran in to the jsx issue when doing a require using webpack:-

ERROR in ./~/react-tabs-component/Tabs.js
Module parse failed: /Users/viven/Projects/dummy/node_modules/react-tabs-component/Tabs.js Line 62: Unexpected token <
You may need an appropriate loader to handle this file type.
|                       var isActive= tabNum===this.state.activeTabNum;
|                       return (
|                               <span
|                                       key={'tab-'+tabNum}
|                                       className={isActive? activeTabClassName : tabClassName }

The build task splits out a regular js file for easier sharing.

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.

1 participant