-
Notifications
You must be signed in to change notification settings - Fork 61
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
Fix bootstrap error #77
base: master
Are you sure you want to change the base?
Conversation
lib/index.js
Outdated
bsDropdown = BS.dropdown; | ||
} | ||
} catch (e) { | ||
console.log('No bootstap'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The console.log shouldn't be necessary- not having bootstrap is supported & handled below
lib/index.js
Outdated
var React = require('react'); | ||
var objectAssign = require('object-assign'); | ||
var getOptions = require('./get-options.js'); | ||
var bsMultiselect = require('./bootstrap-multiselect.js'); | ||
var bsDropdown; | ||
|
||
var BS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like BS is only used within try
- it would help readability for the variable declaration to go there.
It looks like it doesn't really solve the problem completely, the code is runnable but webpack still log an error when building, it's still an improvment |
@jducro what Webpack error are you seeing? |
Fixes issues #73