Skip to content

Fix webpack compatibility#1007

Merged
jbolda merged 1 commit intothefrontside:v3from
rrthomas:v3
Jul 20, 2025
Merged

Fix webpack compatibility#1007
jbolda merged 1 commit intothefrontside:v3from
rrthomas:v3

Conversation

@rrthomas
Copy link
Copy Markdown

This is related to PR #935. Unfortunately, webpack follows even dynamic
imports unless told not to. This one-line change adds the magic comment to
tell webpack not to try to import ‘node:process’.

Motivation

This PR fixes webpack compatibility.

Approach

This PR adds a single comment to tell webpack not to try to import
node:process.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jul 19, 2025

Open in StackBlitz

npm i https://pkg.pr.new/thefrontside/effection@1007

commit: f8858af

@jbolda
Copy link
Copy Markdown
Member

jbolda commented Jul 19, 2025

Appreciate the PR!

Two quick asks, and we can get it merged a published.

  • The comment previous to this has a preview package that you can test it out with. Give it a quick test to confirm. (Feel free to use this until the updated version comes out as well.)
  • Do you have a link or reference to documentation that notes this? If you do, we could add that as a comment in the code. It would be helpful to reference in continuing to maintain support with future / past webpack versions.

rrthomas added a commit to ursalang/ursa that referenced this pull request Jul 19, 2025
This is related to PR thefrontside#935. Unfortunately, webpack follows even dynamic
imports unless told not to. This one-line change adds the magic comment to
tell webpack not to try to import ‘node:process’.
@rrthomas
Copy link
Copy Markdown
Author

Many thanks for the quick review. I have added a comment with a link to webpack documentation. I will test the preview package and report back.

@rrthomas
Copy link
Copy Markdown
Author

Confirmed that the PR preview package fixes working with webpack for me.

rrthomas added a commit to ursalang/ursa that referenced this pull request Jul 19, 2025
Copy link
Copy Markdown
Member

@jbolda jbolda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks! Will get it published right quick too!

@jbolda jbolda merged commit eb2a433 into thefrontside:v3 Jul 20, 2025
3 checks passed
taras pushed a commit that referenced this pull request Nov 12, 2025
Fix webpack compatibility
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