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

Set preferUnplugged to true #4

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

checkraisefold
Copy link
Contributor

@checkraisefold checkraisefold commented Jul 11, 2024

When using Yarn, the package is installed through Yarn PnP. This causes it to be stored in a zip, using either virtual folders or a zip filesystem. Because this is a compiled wasm plugin, and swc does not have support for loading plugins from the zipfs, the plugin fails to load when used with an obscured error.

The local workaround was to use yarn unplug which saves a dependenciesMeta field to the project package.json, but that is obviously not ideal, considering the plugin shouldn't work in any cases in which it uses PnP and it should be unplugged by default.

See https://yarnpkg.com/configuration/manifest#preferUnplugged for the docs on this package.json property.

@Havunen
Copy link
Member

Havunen commented Jul 11, 2024

LGTM

@Havunen Havunen merged commit 228cf81 into infernojs:main Jul 11, 2024
1 check passed
@checkraisefold checkraisefold deleted the checkraisefold-patch-1 branch July 11, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants