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 Mar 25, 2022
1 parent 2cca925 commit fae3676
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 @@ -40,5 +40,9 @@ export default declare((api, 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 fae3676

Please sign in to comment.