tradle / rn-nodeify

hack to allow react-native projects to use node core modules, and npm modules that use them
MIT License
619 stars 112 forks source link

fix "TypeError: main.startsWith is not a function" error #75

Closed badver closed 5 years ago

badver commented 5 years ago

fix "TypeError: main.startsWith is not a function" error if "main" in't a string

Fixes https://github.com/tradle/rn-nodeify/issues/74

mvayngrib commented 5 years ago

@badver thanks for the PR!

I'm guessing the fix is one or two lines, but the diff has nearly every line changed :(

Can you refactor so that only the fix-related lines are changed?

badver commented 5 years ago

Sure, sorry for this. VSCode reformat code on save :(

mvayngrib commented 5 years ago

@badver thanks!