-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: upgrading babel #653
fix: upgrading babel #653
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just make sure to remove the only
in the test before submitting
@@ -2,7 +2,7 @@ const pluginTest = require('./utils/test-transform').pluginTest( | |||
require('../index') | |||
); | |||
|
|||
describe('Element import', () => { | |||
describe.only('Element import', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove only
@@ -47,8 +47,9 @@ module.exports = function () { | |||
function extractLWCDecorator(node) { | |||
if (node.decorators) { | |||
for (const decorator of node.decorators) { | |||
if (isLWCDecorator(decorator.callee.name)) { | |||
return decorator.callee.name; | |||
const name = decorator.expression.name || decorator.expression.callee.name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apapko this was the issue
Benchmark resultsBase commit: lwc-engine-benchmark
|
@@ -7,7 +7,12 @@ const baseConfig = { | |||
babelrc: false, | |||
filename: 'test.js', | |||
parserOpts: { | |||
plugins: ['*'], | |||
plugins: [ | |||
['asyncGenerators', {}], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't support async generators: https://babeljs.io/docs/en/babel-plugin-proposal-async-generator-functions.
Benchmark resultsBase commit: lwc-engine-benchmark
|
Details