Skip to content

Disable scope hoisting for production#4529

Merged
gusevda merged 1 commit intomainfrom
parcel-build-issue
Jan 15, 2025
Merged

Disable scope hoisting for production#4529
gusevda merged 1 commit intomainfrom
parcel-build-issue

Conversation

@gusevda
Copy link
Copy Markdown
Contributor

@gusevda gusevda commented Jan 15, 2025

What changed?

Parcel scope hoisting was temporarily disabled.

Why was this change made?
Currently there is a problem with production build. No errors during build time, but in a browser there is an error in JS console. And as a result, no UI is being rendered.

The error:

Uncaught ReferenceError: $36eaa93a700aaadd$import$3c7b5cc2d282a88c is not defined

Cause of the issue is the recent Parcel configuration change. Package exports support was enabled and alias for yaml package was deleted. It works as expected, yaml and other packages that have exports in their package.json are being resolved correctly, but Parcel's scope hoisting breaks production builds. Further investigation is needed, but as a temporal solution, hoisting was disabled in this PR.

@gusevda gusevda marked this pull request as ready for review January 15, 2025 17:13
@gusevda gusevda force-pushed the parcel-build-issue branch from e8cabff to 7880360 Compare January 15, 2025 17:43
@gusevda gusevda enabled auto-merge (squash) January 15, 2025 17:44
@gusevda gusevda requested a review from casibbald January 15, 2025 17:47
@gusevda gusevda merged commit d7090e9 into main Jan 15, 2025
@gusevda gusevda deleted the parcel-build-issue branch January 15, 2025 17:51
This was referenced Feb 4, 2025
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.

2 participants