Skip to content

Commit

Permalink
Fix a Babel breaking change to parsing decorators.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydenseric committed Aug 28, 2018
1 parent 2e10c18 commit 8d6727d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- Support Node.js v6+, from v8.5+.

### Patch

- Work around a Babel breaking change to parsing decorators, see [babel/babel#8562](https://github.com/babel/babel/issues/8562).

## 1.5.0

### Minor
Expand Down
2 changes: 1 addition & 1 deletion lib/jsdocCommentsFromCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const jsdocCommentsFromCode = code => {
parserOpts: {
plugins: [
'classProperties',
'decorators',
['decorators', { decoratorsBeforeExport: false }],
'dynamicImport',
'objectRestSpread'
]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"node": ">=6"
},
"dependencies": {
"@babel/core": "^7.0.0-rc.1",
"@babel/core": "^7.0.0",
"doctrine": "^2.1.0",
"github-slugger": "^1.2.0",
"globby": "^8.0.1",
Expand Down

0 comments on commit 8d6727d

Please sign in to comment.