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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ export default declare((api, options) => {
const { legacy, decoratorsBeforeExport, version } = options; const { legacy, decoratorsBeforeExport, version } = options;
if (legacy) { if (legacy || version === "legacy") {
return { return {
name: "proposal-decorators", name: "proposal-decorators",
inherits: syntaxDecorators, inherits: syntaxDecorators,