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

feat(swc/plugin_macro): export new interface for getting plugin schema version (#5060: Part 5) #5158

Closed

Conversation

kwonoj
Copy link
Member

@kwonoj kwonoj commented Jul 8, 2022

Description:

This PR adds a new fn in plugin's macro side, returns schema version defined in swc_common at the moment of compilation. To support per-build time flags, also introduces features to the downstream pkg from top level (binding-*).

Changes are based on theoritical workflow I have in mind, which means this is possibly not correct and would require further refactorings. But having each step helps to setting up actual (manually) testable workflow.

Once this goes in, I'll pause bit and try to attempt refactor integration test for the plugin. I feel it's hitting tipping point to worth better ergonomics to test more than simple transformation execution. Probably will need node.js side testing as well for whole integrations.

BREAKING CHANGE:

Related issue (if exists):

#5060

@kdy1 kdy1 modified the milestones: v1.2.210, Planned Jul 9, 2022
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

Thanks!


swc-bump:

  • swc
  • swc_cli
  • swc_common
  • swc_plugin
  • swc_plugin_runner
  • swc_plugin_macro

@kdy1 kdy1 enabled auto-merge (squash) July 9, 2022 03:28
Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

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

Automated review comment generated by auto-rebase script

Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

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

Automated review comment generated by auto-rebase script

@kdy1 kdy1 disabled auto-merge July 9, 2022 09:02
@kwonoj kwonoj closed this Jul 9, 2022
@kdy1 kdy1 modified the milestones: Planned, v1.2.212 Jul 11, 2022
@kwonoj kwonoj deleted the feat-plugin-schema-version-export branch July 11, 2022 23:38
@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants