Nuxt/examples/vue-class-component/nuxt.config.js

11 lines
247 B
JavaScript

module.exports = {
build: {
babel: {
plugins: ['transform-decorators-legacy', 'transform-class-properties']
},
extend (config) {
config.resolve.alias['nuxt-class-component'] = '@/plugins/nuxt-class-component'
}
}
}