I am import React-Native-Web into my project and I was transpiling it when my transpiling process ran into errors that I wasn't familiar with.
After reading through it I realized that the library was offering me a transpiled version of the code, even though that was not what I was expecting.
https://github.com/necolas/react-native-web/tree/master/packages/react-native-web
This is the source for the package, and in the .json file.
- "module": "dist/index.js"
- "main": "dist/cjs/index.js",
is there a way to tell npm which of these options to choose from?