-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
fix: pass yarn PnP experimental loader to worker if it exists #103
Conversation
🦋 Changeset detectedLatest commit: 6b48492 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
📊 Package size report No changes
Unchanged files
🤖 This report was automatically generated by pkg-size-action |
@noahnu Can you link some references? |
Codecov Report
@@ Coverage Diff @@
## main #103 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 121 126 +5
Branches 55 55
=========================================
+ Hits 121 126 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Updated PR description. |
|
That would be appreciated! But it could be another PR for test cases, it is not related to this PR, right? |
It can definitely be added in a follow up. I'll QA this PR right now |
Yep, this PR seems to do the trick. ✅ |
This does what @lachlanhunt calls out in #98 (comment).
The reason the existing test doesn't cover this is because the existing test imports a worker.js file rather than a worker.mjs file, while the eslint resolver references a worker.mjs file.
Also digging into the tests added in the previous PR, we need a test case where
-r pnp
is not added via NODE_OPTIONS, but rather added via a "proxy" script that callsrequire('pnpapi').setup()
-- this emulates the yarn eslint sdk patch from https://github.com/yarnpkg/berry/tree/master/packages/yarnpkg-sdks.References