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) #5166

Merged
merged 3 commits into from
Jul 11, 2022

Conversation

kwonoj
Copy link
Member

@kwonoj kwonoj commented Jul 9, 2022

Description:

Retrying #5158 for the CI.

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 previously approved these changes 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_macro
  • swc_plugin_runner

@kwonoj kwonoj force-pushed the feat-plugin-schema-version-export-retry branch from c21d150 to 8479d6c Compare July 9, 2022 23:03
kdy1
kdy1 previously approved these changes Jul 9, 2022
@kwonoj kwonoj force-pushed the feat-plugin-schema-version-export-retry branch from 8479d6c to f00f6cd Compare July 9, 2022 23:05
kdy1
kdy1 previously approved these changes Jul 9, 2022
@kdy1 kdy1 enabled auto-merge (squash) July 9, 2022 23:07
@kwonoj kwonoj force-pushed the feat-plugin-schema-version-export-retry branch from f00f6cd to 6de12a2 Compare July 9, 2022 23:35
@kwonoj kwonoj force-pushed the feat-plugin-schema-version-export-retry branch from 6de12a2 to 4c5da7b Compare July 9, 2022 23:44
@kwonoj
Copy link
Member Author

kwonoj commented Jul 10, 2022

@kdy1 seems PR is ok now?

@kdy1 kdy1 merged commit f167198 into swc-project:main Jul 11, 2022
@kwonoj kwonoj deleted the feat-plugin-schema-version-export-retry branch July 11, 2022 23:38
GiveMe-A-Name pushed a commit to GiveMe-A-Name/swc that referenced this pull request Jul 23, 2022
@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.

None yet

2 participants