Skip to content

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

Merged
Timeless0911 merged 1 commit intomainfrom
not-resolve
Dec 26, 2024
Merged

fix: do not handle the path that can’t be resolved#612
Timeless0911 merged 1 commit intomainfrom
not-resolve

Conversation

@fi3ework
Copy link
Copy Markdown
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
@netlify
Copy link
Copy Markdown

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
@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