Coder Social home page Coder Social logo

Comments (5)

paulmillr avatar paulmillr commented on May 18, 2024

You should report this to unpkg. I am not familiar with their build system, it could be their error.

We support deno, webpack, browserify, rollup, standalone file, etc -- hard to ensure everything works properly.

from noble-secp256k1.

cmdruid avatar cmdruid commented on May 18, 2024

unpkg.com is run by npmjs.com and is their automated CDN service.

NPM supports a "unpkg" keyword in package.json to point towards a browser-compatible build. It tells NPM specifically which file in your package to make available on their unpkg CDN.

I think something like "unpkg": "lib/index.js" would work as an example. If you have any questions about it, please let me know!

I do not mean to make a big deal out of it, just I would like to import using unpkg.com/@noble/libsecp256k1 versus github.com/paulmillr/noble-secp256k1/releases/download/1.7.0/noble-secp256k1.js (also not deal with CORS issues from github imports). Thank you for responding!

from noble-secp256k1.

paulmillr avatar paulmillr commented on May 18, 2024

I can change package.json, but did you actually test the change? I don't want to do a broken release

from noble-secp256k1.

cmdruid avatar cmdruid commented on May 18, 2024

I did a test deployment and submitted a PR. No need to merge, just demonstrating the minor changes to get it working with NPM's unpkg CDN. See here:

#76

from noble-secp256k1.

paulmillr avatar paulmillr commented on May 18, 2024

v2.0 will be unpkg-friendly

from noble-secp256k1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.