datepicker
datepicker copied to clipboard
Unit tests failing after updating to v1.3.0
I still need to investigate the cause, but after updating to v1.3.0 my unit tests are now failing:
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
SyntaxError: Unexpected token ')'
at webpack:///~/vue-bulma-datepicker/src/BaseInput.js:6:0 <- index.js:32158
My project was set up using Vue Webpack template.
I was able to fix this by telling Webpack to run vue-bulma-datepicker
through babel-loader
.
{
test: /\.js$/,
loader: 'babel-loader',
include: [
resolve('src'),
resolve('test'),
resolve('node_modules/vue-click-outside'),
resolve('node_modules/vue-bulma-datepicker') // Adding this fixed the errors
]
}
To make this library easier to use, it might be nice to add a dist/
directory with pre-compiled files that can be used without any extra steps.
Yes, will do. Unpackaged vue file is not convenient.