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_runner): improve resolver support for npm #3566

Merged
merged 2 commits into from
Feb 15, 2022

Conversation

kwonoj
Copy link
Member

@kwonoj kwonoj commented Feb 14, 2022

Description:

PR attempts to close #3548 to generate simple package.json.

Also change includes resolver changes for the plugin. Now plugin is a single packge to .wasm instead of having per-platform optionaldeps, instead of using custom resolver tries to reuse existing node_resolver. It seems to work reasonably, however might need second eye if it's right location to create resolver.

Related issue (if exists):

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!

@kdy1 kdy1 modified the milestones: v2.0.0-alpha.1, v1.2.140 Feb 15, 2022
@kdy1 kdy1 merged commit d6477a7 into swc-project:main Feb 15, 2022
@kwonoj kwonoj deleted the feat_plugin_resolver branch February 15, 2022 16:41
@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 29, 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.

Plugin template scaffold generates package.json for easier publish
2 participants