Skip to content

Commit

Permalink
fix defaults accesibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyek committed Jul 23, 2017
1 parent e88de9f commit 4dd8860
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-bootstrap-toggle",
"version": "1.1.0",
"version": "1.1.1",
"description": "A VueJS wrapper for Bootstrap Toggle.",
"main": "dist/index.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
<script>
import merge from 'merge'
export const defaults = {}
if (!jQuery().bootstrapToggle) {
require('bootstrap-toggle')
}
const defaults = {}
export default {
defaults,
props: {
value: Boolean,
options: {
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
output: {
path: path.join(__dirname, 'dist'),
filename: 'index.js',
libraryTarget: 'umd'
libraryTarget: 'commonjs2'
},
resolve: {
extensions: ['.vue', '.js'],
Expand Down

0 comments on commit 4dd8860

Please sign in to comment.