This commit is contained in:
les 2021-09-01 11:17:59 +02:00
parent e8e08d7176
commit 87d8f1307e
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -108,11 +108,18 @@ module.exports = {
** Build configuration
*/
build: {
presets: ['@nuxt/babel-preset-app', {
useBuiltIns: 'usage', // or "entry"
corejs: 3
}],
babel: {
// envName: server, client, modern
presets ({ envName }) {
return [
[
'@nuxt/babel-preset-app',
{
corejs: { version: 3 }
}
]
]
},
plugins: [['@babel/plugin-proposal-private-methods', { loose: true }]]
},
cache: true