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(react): improve option for react-refresh #455

Closed
wants to merge 1 commit into from

Conversation

Copy link

netlify bot commented Apr 19, 2024

Deploy Preview for melodious-froyo-4871f8 ready!

Name Link
🔨 Latest commit 4413bdd
🔍 Latest deploy log https://app.netlify.com/sites/melodious-froyo-4871f8/deploys/66223785cf8baf0009779371
😎 Deploy Preview https://deploy-preview-455--melodious-froyo-4871f8.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

Comment on lines +104 to +122
allowExportNames: isUsingNext
? [
'config',
'generateStaticParams',
'metadata',
'generateMetadata',
'viewport',
'generateViewport',
]
: isUsingRemix
? [
'meta',
'links',
'headers',
'loader',
'action',
]
: undefined,
},
Copy link
Owner

Choose a reason for hiding this comment

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

I would allow all of them directly without checking the packages - would that have any bad side-effects?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it should be a big problem, but when using pure vite and react, if the exported name coincides with the preset, it will still affect fast refresh.

@antfu antfu changed the title fix: improve option for react-refresh fix(react): improve option for react-refresh Apr 22, 2024
@antfu
Copy link
Owner

antfu commented Apr 25, 2024

I couldn't push to your branch - did you unchecked the "allow edit from maintainer" box?

@antfu antfu closed this in #461 Apr 25, 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.

None yet

2 participants