vuetifyjs / webpack-ssr

Vuetify Webpack SSR Template
https://vuetifyjs.com/overview
62 stars 28 forks source link

Enable support for object spread operator #7

Closed dsbert closed 7 years ago

dsbert commented 7 years ago

I'll be honest, I don't really know how this works or how it should work, but for whatever reason, having the objectAssign option for buble in webpack.base.config.js is not enough to actually enable the feature. It has to be added to vue-loader.config.js.

Example:

  computed: {
    ...mapGetters({
      transactions: 'allTransactions',
    }),
  },

Without adding the option to vue-loader-config.js, the following error is reported.

Object spread operator requires specified objectAssign option with 'Object.assign' or polyfill helper.

After adding the option, it seems to transpile correctly.

Reference