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

[PIN-2303] Refactor release fixes #192

Merged
merged 6 commits into from
Nov 21, 2022

Conversation

Carminepo2
Copy link
Contributor

@Carminepo2 Carminepo2 commented Nov 21, 2022

This PR fixes the @mui/icons-material bundler bug. Where the bundler itself doesn't recognize and transpile correctly the type of import of certain icons.

The fix (acc78fa) tells directly to the bundler that the library uses the cjs default export, setting the commonjs plugin's property defaultIsModuleExports to false.

This PR also removes all the React.lazy calls because currently Vite does not offer a way to inject the nonce token to the dynamic bundle's generated script tags. Looking forward for a future Vite implementation on this related issue.

Also, in this PR:

  • [ff548db] Added CSP "testing emulation" on vite preview mode.
  • [9cf39ed] Fixed a bug where the user was being logged before the token swapping if there was an expired token in the localStorage.
  • [1f65cb9] Updated packages.

@Carminepo2 Carminepo2 marked this pull request as ready for review November 21, 2022 10:05
@ruggerocastagnola ruggerocastagnola merged commit 3b474ea into 1.0.x Nov 21, 2022
@ruggerocastagnola ruggerocastagnola deleted the pin-2303-testing-refactor-release branch November 21, 2022 10:26
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