Giter Site home page Giter Site logo

Comments (3)

pastelsky avatar pastelsky commented on July 26, 2024 1

Yeah, hard to get it right the first time when you're typing on mobile in a metro train, using Github's dektop UI.

from bundlephobia.

pastelsky avatar pastelsky commented on July 26, 2024

So here is how bundlephobia works. We emulate creation of a new project by the end user, and to the project's entry point, we import the requested package as a import pack from <requested-package>
Then, to make sure that tree shaking doesn't come into play, we "use" the imported package.

Next the project is built out using webpack, with the generated entry point, just like a user would. Now while webpack resolves packages using its resolution mechanism, it can encounter packages that it cannot find. Hence this error.

I've been trying to write a webpack resolve plugin that ignores such "missing" dependencies and moves the build forward with appropriate warning anyway, though abandoned it midway due to lack of documentation around it. Would love to accept a PR arround this.

from bundlephobia.

shellscape avatar shellscape commented on July 26, 2024

@pastelsky looks like your comment was cut off.

from bundlephobia.

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.