vue-bulma / tooltip

Tooltip Component for Vue Bulma
MIT License
15 stars 14 forks source link

ERROR in static/js/vendor.90b0fa6ef7bb953cc3ff.js from UglifyJs #6

Closed holic-cl closed 7 years ago

holic-cl commented 7 years ago

Hi, i was having this issue with the tooltip, when i make a npm run build i got this error:

ERROR in static/js/vendor.90b0fa6ef7bb953cc3ff.js from UglifyJs
Unexpected token: operator (>) [static/js/vendor.90b0fa6ef7bb953cc3ff.js:20501,24]

I am using this:

At the moment i can solve this by editing the webpack config (webpack.base.conf.js):

      {
        test: /\.js$/,
        loader: 'babel-loader',
        include: [resolve('src'), resolve('test'), resolve('node_modules/vue-bulma-tooltip')]
      },

Greetings.

luventa commented 7 years ago

Yes @holic-cl , this component is not compiled by babel yet. Babel loader config in vue-admin could be helpful:

{
  test: /\.js$/,
  loader: 'babel-loader',
  include: YOU_DIR,
  exclude: [new RegExp(`node_modules\\${path.sep}(?!vue-bulma-.*)`)]
}

We will package all vue-bulma components later. Thanks!