use legacy visitor when version is "legacy"

This commit is contained in:
Huáng Jùnliàng
2022-01-16 10:25:33 -05:00
committed by GitHub
parent 938ce50695
commit aa4d6e2525

View File

@@ -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,