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

feat: use jiti to load config #144

Closed
wants to merge 3 commits into from
Closed

Conversation

chenjiahan
Copy link
Member

Summary

  • Less dependencies (jiti is used by tailwindcss v3.3)
  • Faster startup time
  • Better support for monorepo
Screenshot 2023-10-08 at 10 38 58 Screenshot 2023-10-08 at 10 39 44

Related Issue

web-infra-dev/modern.js#4754

Checklist

  • I have added changeset via pnpm run change.
  • I have updated the documentation.
  • I have added tests to cover my changes.

@netlify
Copy link

netlify bot commented Oct 8, 2023

Deploy Preview for aquamarine-blini-95325f ready!

Name Link
🔨 Latest commit 632dd6e
🔍 Latest deploy log https://app.netlify.com/sites/aquamarine-blini-95325f/deploys/652242e1ab50380008d11b26
😎 Deploy Preview https://deploy-preview-144--aquamarine-blini-95325f.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 59
Accessibility: 86
Best Practices: 100
SEO: 92
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@sanyuan0704
Copy link
Contributor

The unit test in cli package seems failed after switching to jiti.

@chenjiahan
Copy link
Member Author

Yes, there is a ESM/CJS interop issue and I will try to figure it out

@chenjiahan
Copy link
Member Author

Jiti uses CommonJS transforms and this will break some dynamic imports from Rspress.

It looks like Jiti v2 may fix these issues, ref: unjs/jiti#32

This PR will be held until Jiti fixes it or we find some alternatives.

@chenjiahan chenjiahan marked this pull request as draft October 8, 2023 05:44
@chenjiahan chenjiahan closed this Oct 25, 2023
@chenjiahan chenjiahan deleted the jiti_load_config_1008 branch March 14, 2024 07:09
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