`@uppy/core` bundles Preact even if you don't use `UIPlugin`
See original GitHub issuehi,
I only use @uppy/core in my project, to upload images. Not use other package, I develop UI myself.
but there is preact
in @uppy/core dependencies
When I build my project, there is a preact
module in my bundle.js, which imported by @uppy/core.
I just want @uppy/core API , I don’t need preact module. So, how can I remove preact module ?
thx.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Uppy 2.0.0: smaller, faster, modular plugins, Preact X, stricter ...
If you 're using Uppy from a CDN, we now provide two bundles: one for ... UIPlugin (and therefore Preact) if you import...
Read more >Trying to use Dashboard throws console error `Uncaught (in ...
I'm trying to use the Dashboard and it's throwing and error message: Uncaught (in promise) ReferenceError: h is not defined.
Read more >@uppy/image-editor - NPM Package Overview - Socket - Socket.dev
Start using Socket to analyze @uppy/image-editor and its 3 dependencies to ... bundle, but we are not (#2947 / @aduh95); @uppy/core: Upgraded Preact...
Read more >[SOLVED] Compile Uppy JS with the necessary plugins only
Hey,not sure if that's gonna work, but if you use Webpack or Browserify or Packer or Rollup it's as easy as requiring the...
Read more >@uppy/core v3.0.4 Bundlephobia
Size of @uppy/core v3.0.4 is 46.1 kB (minified), and 15.3 kB when compressed using GZIP. Bundlephobia helps you find the performance impact of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Murderlon OK thx~ I’ll check it
I think it’s because of this line: https://github.com/transloadit/uppy/blob/b36470871513cc383400893b43f9f53bc801ff04/packages/@uppy/core/src/index.js#L1738
Maybe we should consider having a module that only exports the
Uppy
class, not the plugins.