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

Avoid including MSW in the bundle - option 2 #78

Closed
wants to merge 1 commit into from
Closed

Conversation

djhi
Copy link
Contributor

@djhi djhi commented Jun 9, 2024

Related marmelab/react-admin#9908

This PR avoid including MSW in the bundle by configuring the build process

@@ -1,12 +1,12 @@
{
"name": "fakerest",
"version": "3.5.0",
"version": "4.0.0-beta.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lock file wasn't updated at release time

@@ -0,0 +1,42 @@
<html>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this file to test the UMD bundle

output: {
// Provide global variables to use in the UMD build
// for externalized deps
globals: {
lodash: '_',
msw: 'MockServiceWorker',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@djhi djhi changed the title Avoid including MSW in the bundle Avoid including MSW in the bundle - option 2 Jun 9, 2024
@djhi djhi closed this Jun 10, 2024
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