Skip to content

Commit

Permalink
Add error for wrong version
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jun 1, 2022
1 parent 6239ce0 commit d79ea77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/babel-plugin-proposal-decorators/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@ export default declare((api, options: Options) => {
inherits: syntaxDecorators,
// loose: options.loose, Not supported
});
} else {
throw new Error(
"The '.version' option must be one of 'legacy' or '2021-12'",
);
}
});

0 comments on commit d79ea77

Please sign in to comment.