question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`@uppy/core` bundles Preact even if you don't use `UIPlugin`

See original GitHub issue

hi,

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

image

When I build my project, there is a preact module in my bundle.js, which imported by @uppy/core.

image

I just want @uppy/core API , I don’t need preact module. So, how can I remove preact module ?

thx.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wangfupeng1988commented, Sep 22, 2021

@Murderlon OK thx~ I’ll check it

0reactions
aduh95commented, Sep 23, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found