Skip to content
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

chore: update babel deps #3573

Merged
merged 1 commit into from
Jun 14, 2023
Merged

chore: update babel deps #3573

merged 1 commit into from
Jun 14, 2023

Conversation

nolanlawson
Copy link
Collaborator

Details

Does this pull request introduce a breaking change?

  • ✅ No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • ✅ No, it does not introduce an observable change.

@nolanlawson nolanlawson requested a review from a team as a code owner June 13, 2023 23:49
@@ -9,6 +9,9 @@ import * as babel from '@babel/core';
import babelClassPropertiesPlugin from '@babel/plugin-proposal-class-properties';
import babelObjectRestSpreadPlugin from '@babel/plugin-proposal-object-rest-spread';
import lwcClassTransformPlugin from '@lwc/babel-plugin-component';
import lockerBabelPluginTransformUnforgeables from '@locker/babel-plugin-transform-unforgeables';
import babelAsyncToGenPlugin from '@babel/plugin-transform-async-to-generator';
import babelAsyncGeneratorFunctionsPlugin from '@babel/plugin-proposal-async-generator-functions';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For whatever reason, Jest no longer likes us using the string format for Babel plugins – it fails to import it. So we can just import it directly instead.

declare module '@babel/plugin-proposal-async-generator-functions' {
const props: any;
export = props;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of these Babel plugins are typed; we already have a bunch of .d.ts files like these in the same directory

@nolanlawson
Copy link
Collaborator Author

/nucleus ignore --reason 'lwc-platform needs an update'

@nolanlawson nolanlawson merged commit bf5b3f3 into master Jun 14, 2023
@nolanlawson nolanlawson deleted the nolan/update-babel branch June 14, 2023 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants