Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'classProperties',
['decorators', { decoratorsBeforeExport: true }],
'doExpressions',
'exponentiationOperator',
'exportExtensions',
'functionBind',
'functionSent',
'objectRestSpread',
'trailingFunctionCommas',
'optionalChaining',
],
tokens: true,
};
Object.defineProperty(tokTypes.backQuote, 'updateContext', {
value: tokTypes.backQuote.updateContext,
configurable: false
});
export default function(source: string) {
return parse(source, BABEL_PARSE_OPTIONS);
}
'classConstructorCall',
'classProperties',
['decorators', { decoratorsBeforeExport: true }],
'doExpressions',
'exponentiationOperator',
'exportExtensions',
'functionBind',
'functionSent',
'objectRestSpread',
'trailingFunctionCommas',
'optionalChaining',
],
tokens: true,
};
Object.defineProperty(tokTypes.backQuote, 'updateContext', {
value: tokTypes.backQuote.updateContext,
configurable: false
});
export default function(source: string) {
return parse(source, BABEL_PARSE_OPTIONS);
}