Skip to content

Commit

Permalink
chore: use @babel/plugin-proposal-decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
waterbeside committed Jan 12, 2023
1 parent 5d9888f commit 25de832
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
3 changes: 2 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript']
presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript'],
plugins: [['@babel/plugin-proposal-decorators', { legacy: true }]]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
"license": "GPL-3.0",
"devDependencies": {
"@babel/core": "^7.17.10",
"@babel/plugin-proposal-decorators": "^7.20.7",
"@babel/plugin-syntax-decorators": "^7.19.0",
"@babel/preset-env": "^7.17.10",
"@babel/preset-typescript": "^7.16.7",
"@jest/types": "^29.3.1",
Expand Down
30 changes: 30 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 25de832

Please sign in to comment.