Nuxt/packages/webpack/src/config/modern.js

16 lines
308 B
JavaScript
Raw Normal View History

import WebpackClientConfig from './client'
export default class WebpackModernConfig extends WebpackClientConfig {
constructor (...args) {
super(...args)
this.name = 'modern'
this.isModern = true
}
env () {
2018-12-12 09:33:19 +00:00
return Object.assign(super.env(), {
'process.modern': true
})
}
}