use legacy visitor when version is "legacy"
This commit is contained in:
parent
938ce50695
commit
aa4d6e2525
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user