Comments (3)
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.
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.
@pastelsky looks like your comment was cut off.
from bundlephobia.
Related Issues (20)
- Package suggestion: <package-name> for `Promise polyfills`
- Package suggestion: <victory> for `General purpose Charting libraries`
- Server down HOT 4
- [email protected] suggestion: <package-name> for `Vanilla JS Sliders & Carousels`
- BuildError: @radix-ui/react-dialog fails to build
- Package suggestion: yrel for `JSON schema validation`
- Package suggestion: <package-name> for `HTTP client libraries for Node.js`
- BuildError: @hellhub-collective/cli fails to build
- Package suggestion: [email protected] for `JSON schema validation`
- Package suggestion: <package-name> for `Tooltip Libraries`
- [email protected]: Ignoring the size of missing dependencies .. and .. HOT 1
- [email protected]
- Package suggestion: 'lexical' for `Rich Text Editors`
- Package suggestion: embla-carousel for `Vanilla JS Sliders & Carousels`
- MissingDependencyError: exiftool-vendored node:fs node:os HOT 1
- Package suggestion: <weathering of rocks> for `General purpose 3D libraries` HOT 1
- EntryPointError from ESM only packages HOT 1
- Package suggestion: <three> for `General purpose animation libraries`
- Package suggestion: `xior` for `HTTP client libraries for Node.js`
- Package suggestion: @jupri-lab/react-i18n for `React based internationalization`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bundlephobia.