Skip to content

On##> ## 📢 Type of change #17860

@saidmahamed9605-hue

Description

@saidmahamed9605-hue

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

fixes: #5180

Metro 0.83.2 changes exports from cjs:module.exports to mjs:export(default).

The named exports should not cause any issue, but modules.exports to export default requires reading .default.

💡 Motivation and Context

Since there were multiple changes in recent Metro version I believe vendoring simple modules like countLine will be more stable in the future.

💚 How did you test it?

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

Very active

Originally posted by @saidmahamed9605-hue in getsentry/sentry-react-native#5185 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions