Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Remove legacyDecorators option
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Nov 7, 2018
1 parent f8cb746 commit 8203ff6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ const { parseSync: parse, traverse } = require("@babel/core");
const tt = require("@babel/parser").tokTypes;

module.exports = function(code, options) {
const legacyDecorators =
options.ecmaFeatures && options.ecmaFeatures.legacyDecorators;

const opts = {
sourceType: options.sourceType,
parserOpts: {
Expand All @@ -24,9 +21,6 @@ module.exports = function(code, options) {
"asyncGenerators",
"classConstructorCall",
"classProperties",
legacyDecorators
? "decorators-legacy"
: ["decorators", { decoratorsBeforeExport: false }],
"doExpressions",
"exponentiationOperator",
"exportDefaultFrom",
Expand Down

0 comments on commit 8203ff6

Please sign in to comment.