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: vite optimize deps usage and production build when using a workspace #31

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

lazarv
Copy link
Owner

@lazarv lazarv commented Sep 12, 2024

This PR fixes some issues around how the framework uses Vite deps optimizer in development mode.

To support production builds in a workspace, this PR needed to provide a workaround to prevent files outside of the current working directory to output assets outside of the build target directory by replacing relative path fragments.

Cache directories are moved outside of .react-server into node_modules/.react-server so a production build is not destroying a previous development mode cache directory.

Fixes a small client-side navigation issue when using browser back/forward.

This extends the Mantine example to include:

  • forms
  • charts (not working yet, but recharts@2 works!)
  • code highlights
  • notifications
  • spotlights
  • carousels
  • dropzones
  • navigation progress
  • modals
  • rich text editor

With this PR the framework now should support requirements specified in #20.

@lazarv lazarv merged commit 28ecadd into main Sep 12, 2024
7 checks passed
@lazarv lazarv deleted the fix/optimize-deps branch September 12, 2024 17:12
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.

1 participant