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_core): allow native env plugin to use memory cache #7390

Merged
merged 2 commits into from
May 14, 2023

Conversation

kwonoj
Copy link
Member

@kwonoj kwonoj commented May 14, 2023

Description:

I just realized there could be some case who'll want plugin in native env, but without filesystem cache. If there's a custom cache implementation, it'll make a conflict to swc's caching mechanism since swc does not expose any interface to the its cache.

PR takes simple approach to expose another feature to opt in native env with memory cache for those case. Ideally we should make plugin_transform_host_native to not to opt-in any cache, and then make swc_plugin_runner to run without any cache implementation - but that'll be a breaking changes with few more involved changes.

Unverified

This user has not yet uploaded their public signing key.
@kdy1 kdy1 added this to the Planned milestone May 14, 2023
@kdy1 kdy1 enabled auto-merge (squash) May 14, 2023 05:19
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.

swc-bump:

  • swc_core

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 merged commit e3868a7 into swc-project:main May 14, 2023
@kdy1 kdy1 modified the milestones: Planned, v1.3.58 May 15, 2023
@swc-project swc-project locked as resolved and limited conversation to collaborators Jun 14, 2023
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

3 participants