Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Update README.md #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,20 @@ npm install --save nuxt-class-component
yarn add nuxt-class-component
```

### Babel Instructions
### Babel 7 Instructions
```js
module.exports = {
build: {
babel: {
plugins: [
["@babel/plugin-proposal-decorators", { legacy: true }],
["@babel/plugin-proposal-class-properties", { loose: true }]
]
},
}
}
```
### Babel 6 Instructions

```bash
npm install --save-dev babel-plugin-transform-decorators-legacy babel-plugin-transform-class-properties
Expand Down