wffranco / vue-strap

Bootstrap components built with Vue.js
http://wffranco.github.io/vue-strap/
MIT License
338 stars 132 forks source link

Syntax error on IE 11 #98

Closed zerosrat closed 7 years ago

zerosrat commented 7 years ago

I have encountered the same same issue as #83.

My solution is to use babel-loader to tranform vue-strap module to es5 in webpack.config.js file of my project.

function resolve (dir) {
  return path.join(__dirname, '..', dir)
}

module.exports = {
  ...
  {
    test: /\.js$/,
    loader: 'babel-loader',
    include: [resolve('src'), resolve('test'), resolve('node_modules/vue-strap/src')]
  }
}

@wffranco, do you have any better suggestions?

larryu commented 7 years ago

@zerosrat I think this is the pretty better way to solve the problem.

Check this one Pretty the same.

zerosrat commented 7 years ago

@larryu Thanks for your reply. As you said, your solution is similar to mine. Both of the solutions use babel-loader to transform es6 syntax to es5.