https://github.com/strml/babel-broken-legacy-decorators
Reproduction for loganfsmyth/babel-plugin-transform-decorators-legacy#19
https://github.com/strml/babel-broken-legacy-decorators
Last synced: about 1 year ago
JSON representation
Reproduction for loganfsmyth/babel-plugin-transform-decorators-legacy#19
- Host: GitHub
- URL: https://github.com/strml/babel-broken-legacy-decorators
- Owner: STRML
- Created: 2016-02-08T21:41:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-08T22:40:07.000Z (about 10 years ago)
- Last Synced: 2025-03-11T09:18:25.058Z (about 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Babel 6.5 Regression
In Babel 6.5, plugin order appears to have been changed, breaking
[babel-plugin-transform-decorators-legacy](https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy)
and possibly others.
See the [reference issue](https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues/19).
### Reproduction:
```bash
$ node build
/project/babel-broken-decorators/node_modules/babel-core/lib/transformation/file/index.js:585
throw err;
^
SyntaxError: /project/babel-broken-decorators/index.jsx: Decorators are not supported yet in 6.x pending proposal update.
3 |
4 | @ReactMixin({componentDidUpdate: console.log})
> 5 | class Foo extends React.Component {
| ^
6 | render() {
7 | return Bar;
8 | }
at File.buildCodeFrameError (/project/babel-broken-decorators/node_modules/babel-core/lib/transformation/file/index.js:436:15)
```