Skip to content

fix: do not handle the path that can’t be resolved #612

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

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Conversation

fi3ework
Copy link
Member

Summary

Given that if a React component library, but "react" is not defined in either devDeps or peerDeps, the requested "react" in import { useEffect } from 'react' can't be resolved at all, so we should directly skipping process it and emit a warning to users.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@fi3ework fi3ework changed the title fix(create-rslib): prefer to use type import of React fix: do not handle the path that can’t be resolved Dec 26, 2024
Copy link

netlify bot commented Dec 26, 2024

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit fbb56dd
🔍 Latest deploy log https://app.netlify.com/sites/rslib/deploys/676cf9faf03f5a0008691bfd
😎 Deploy Preview https://deploy-preview-612--rslib.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.

@Timeless0911 Timeless0911 merged commit cf7ff5e into main Dec 26, 2024
16 checks passed
@Timeless0911 Timeless0911 deleted the not-resolve branch December 26, 2024 07:01
@Timeless0911 Timeless0911 mentioned this pull request Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants