Closed derhuerst closed 5 years ago
fs is unavailable in these contexts.
fs
Possible solution: On prepublishOnly, generate a JSON variant instead of ndjson and publish it as well.
prepublishOnly
In addition, we would need a browser/react-native field in package.json that points to the browser-/react-native-specific code.
browser
react-native
package.json
fs
is unavailable in these contexts.Possible solution: On
prepublishOnly
, generate a JSON variant instead of ndjson and publish it as well.In addition, we would need a
browser
/react-native
field inpackage.json
that points to the browser-/react-native-specific code.