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

Inverse relation for the proxy to swc_common:* for the plugins #4827

Open
kwonoj opened this issue May 28, 2022 · 0 comments
Open

Inverse relation for the proxy to swc_common:* for the plugins #4827

kwonoj opened this issue May 28, 2022 · 0 comments
Assignees
Milestone

Comments

@kwonoj
Copy link
Member

kwonoj commented May 28, 2022

Describe the feature

Currently, entrypoint to isomorphic proxy / host context is swc_plugin. I.e using swc_plugin:HANDLER provides host / or plugin specific context based on build targets. If we want #4826 works better we need to inverse this, let swc_common:* provides right context to either swc_plugin or host context. Otherwise each host's core transform needs to import swc_plugin, as well as it's easier to create circular dependencies across swc_plugin to transform visitors.

Babel plugin or link to the feature description

No response

Additional context

Subtask for #4826.

@kwonoj kwonoj self-assigned this May 28, 2022
@kdy1 kdy1 added this to the Planned milestone May 28, 2022
@kdy1 kdy1 modified the milestones: Planned, v1.2.199 Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants