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: use external chalk library to stop os/tty import errors on React Native #808

Merged
merged 1 commit into from
Jul 9, 2021

Conversation

wwdrew
Copy link
Contributor

@wwdrew wwdrew commented Jul 8, 2021

Without configuring chalk as an external dependency in the React Native configuration, rollup will try to import os and tty which don't exist in the React Native environment.

In conjunction with #810 and #809, this fixes React Native support.

See #622 for more details.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 8, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e00c491:

Sandbox Source
MSW React Configuration

Copy link
Member

@kettanaito kettanaito left a comment

Choose a reason for hiding this comment

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

This looks great, thank you, @wwdrew!

@kettanaito
Copy link
Member

Welcome to contributors!

@kettanaito kettanaito merged commit cd53d6f into mswjs:master Jul 9, 2021
@wwdrew wwdrew deleted the react-native-external-chalk branch July 9, 2021 12:51
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.

2 participants