You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently decorators need the following two Babel plugins to work `@babel/plugin-proposal-decorators`,`"@babel/plugin-proposal-class-properties`. Latest Nuxt already adds them for us, the only thing we need is to add `loose` parameter to `@nuxt/babel-preset-app`. Just add this to nuxt-config
36
36
37
-
~~.
37
+
```js
38
38
build: {
39
39
babel: {
40
40
presets({ isServer }) {
@@ -45,18 +45,9 @@ Currently decorators need the following two Babel plugins to work `@babel/plug
45
45
]
46
46
}
47
47
}
48
-
}~~ (as there is an issue with @nuxt/babel-preset-app, meanwhile just use the following config)
Copy file name to clipboardExpand all lines: docs/index.html
+17-16Lines changed: 17 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -94,24 +94,15 @@ <h2>Install</h2>
94
94
<h3>Nuxt JS Instructions</h3>
95
95
</a>
96
96
<p>Currently decorators need the following two Babel plugins to work <code>@babel/plugin-proposal-decorators</code>,<code>"@babel/plugin-proposal-class-properties</code>. Latest Nuxt already adds them for us, the only thing we need is to add <code>loose</code> parameter to <code>@nuxt/babel-preset-app</code>. Just add this to nuxt-config</p>
0 commit comments