sentinelhub-js icon indicating copy to clipboard operation
sentinelhub-js copied to clipboard

UMD build defined in package.json, but missing in published npm package

Open mcebular opened this issue 3 years ago • 0 comments

package.json defines

"browser": "dist/sentinelHub.umd.js"

however there is no dist/sentinelHub.umd.js in the final package published to NPM.
Looking at rollup.config.js, it seems that rollup is not configured to build UMD at all.

This can potentially break building processes of users that depend on sentinelhub-js and expect the UMD module to exist in the npm package (based on the information provided in package.json).

What should be done is either:

  • remove browser entry from package.json, or
  • configure rollup to also bundle the UMD.

mcebular avatar Feb 11 '22 13:02 mcebular