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(requireFn): stub Node's tty module #6026

Merged
merged 2 commits into from
Jun 27, 2024
Merged

fix(requireFn): stub Node's tty module #6026

merged 2 commits into from
Jun 27, 2024

Conversation

liady
Copy link
Contributor

@liady liady commented Jun 27, 2024

Problem:
Our sample store project uses Tailwind's plugins that are meant to run on Node, requiring tty module and breaking the twind process

Fix:
Stub the tty module. The future complete solution would be to stub all of Node builtin modules, or to run Tailwind on the server or container

Manual Tests:
I hereby swear that:

  • I opened a hydrogen project and it loaded
  • I could navigate to various routes in Preview mode

Fixes #[ticket_number] (<< pls delete this line if it's not relevant)

Copy link
Contributor

github-actions bot commented Jun 27, 2024

Try me

Copy link

relativeci bot commented Jun 27, 2024

#13213 Bundle Size — 62.37MiB (+0.16%).

7bf486e(current) vs 6339ece master#13208(baseline)

Warning

Bundle contains 51 duplicate packages – View duplicate packages

Warning

Bundle introduced 3 new packages: @twind/core, @twind/preset-tailwind, @twind/preset-autoprefix – View changed packages

Bundle metrics  Change 5 changes Regression 2 regressions
                 Current
#13213
     Baseline
#13208
Regression  Initial JS 45.43MiB(+0.23%) 45.33MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 23.25% 21.6%
No change  Chunks 30 30
No change  Assets 33 33
Change  Modules 4313(+0.19%) 4305
No change  Duplicate Modules 525 525
Change  Duplicate Code 31.79%(-0.16%) 31.84%
Regression  Packages 450(+0.45%) 448
No change  Duplicate Packages 51 51
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#13213
     Baseline
#13208
Regression  JS 62.35MiB (+0.16%) 62.25MiB
Improvement  HTML 11.16KiB (-0.33%) 11.2KiB

Bundle analysis reportBranch fix/tty-stubProject dashboard

@liady liady merged commit ba2b1e2 into master Jun 27, 2024
15 checks passed
@liady liady deleted the fix/tty-stub branch June 27, 2024 20:10
liady added a commit that referenced this pull request Dec 13, 2024
**Problem:**
Our sample store project uses Tailwind's plugins that are meant to run
on Node, requiring `tty` module and breaking the `twind` process

**Fix:**
Stub the `tty` module. The future complete solution would be to stub all
of Node builtin modules, or to run Tailwind on the server or container

**Manual Tests:**
I hereby swear that:

- [X] I opened a hydrogen project and it loaded
- [X] I could navigate to various routes in Preview mode

Fixes #[ticket_number] (<< pls delete this line if it's not relevant)
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.

3 participants