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

Allow TS sourcemaps in production #88

Merged
merged 1 commit into from
Feb 7, 2025
Merged

Allow TS sourcemaps in production #88

merged 1 commit into from
Feb 7, 2025

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Feb 7, 2025

Problem

Debugging in production is hard with transpiled sources

Solution

Enable TS sourcemap in production as explained at https://marmelab.com/react-admin/Vite.html#sourcemaps-in-production

How To Test

  • make build
  • npm run preview
  • check that all react-admin related packages load their files from their src directory

@djhi djhi added the RFR label Feb 7, 2025
@fzaninotto fzaninotto merged commit 1fd3bdf into main Feb 7, 2025
5 checks passed
@fzaninotto fzaninotto deleted the production-sources branch February 7, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants