This is an example that shows how decorators are broken (in babel as of version 7.23.7).
Run the following commands to setup and run the project in order to see the error:
- Install dependencies without any changes:
yarn --immutable
- Build:
yarn build
- Run:
yarn start
Instead of passing the result of one decorator to the next, the original value of the Target
class gets passed to each decorator and as a result, the last applied decorator result overrides the preceding ones.