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

Fix #1488: circular dependency issue in dist-raw #1489

Merged
merged 2 commits into from Oct 10, 2021
Merged

Fix #1488: circular dependency issue in dist-raw #1489

merged 2 commits into from Oct 10, 2021

Conversation

cspotcode
Copy link
Collaborator

@cspotcode cspotcode commented Oct 7, 2021

Fixes #1488

Can add a fairly quick regression test. Need to devise a project that triggers the same situation in the original bug report: attempting to load a .js file with allowJs turned on where a new package.json needs to be fetched into cache. This will cause the original bug, so we can prove this fix solves it.

Ideally would write a test that directly detects any require() calls happening anywhere without our require() hooks, but I don't have time for that.

@codecov
Copy link

codecov bot commented Oct 7, 2021

Codecov Report

Merging #1489 (5291105) into main (8a9ae84) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted Files Coverage Δ
dist-raw/node-package-json-reader.js 83.33% <ø> (-0.88%) ⬇️

@cspotcode cspotcode merged commit b255b0e into main Oct 10, 2021
@cspotcode cspotcode added this to the 10.3.0 milestone Oct 10, 2021
@cspotcode cspotcode deleted the fix-1488 branch October 11, 2021 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allowJs may cause circular dependency error/warning in ./dist-raw
1 participant