RequestNetwork / requestNetwork

A JavaScript library for interacting with the Request Network protocol
https://docs.request.network/
MIT License
380 stars 71 forks source link

As a new Builder, I want to use RN SDK in an index.html Single Page Application (SPA), inside <script> tags, so I can try it without any framework or dependencies. #1161

Open MantisClone opened 1 year ago

MantisClone commented 1 year ago

Problem

We don't publish the minified JavaScript files *.min.js

Solution

Change package.json main property. Use exports property instead to define the exports for each supported environment. browser, default

Reference:

https://nodejs.org/api/packages.html#conditional-exports


Migrated from Asana: https://app.asana.com/0/1203912381456855/1205320821557405/f

MantisClone commented 9 months ago

@skiv71 Is this related to #1148 or https://github.com/RequestNetwork/public-issues/issues/2 and if so, how?

MantisClone commented 4 months ago

I believe this task is orthogonal to #1148 and https://github.com/RequestNetwork/public-issues/issues/2