diff --git a/packages/babel-plugin-proposal-decorators/src/index.ts b/packages/babel-plugin-proposal-decorators/src/index.ts index f98c07c6f2..25acc312ae 100644 --- a/packages/babel-plugin-proposal-decorators/src/index.ts +++ b/packages/babel-plugin-proposal-decorators/src/index.ts @@ -14,7 +14,7 @@ export default declare((api, options) => { const { legacy, decoratorsBeforeExport, version } = options; - if (legacy) { + if (legacy || version === "legacy") { return { name: "proposal-decorators", inherits: syntaxDecorators,