I think since Gulp with Concat basically just copies all the files and pastes them into one big new file, there will be collisions of variables, and also the files themselves will want to do requires which just do not work natively in the browser. The requires need to be rewritten, which is what those other bundlers work well for. Admittedly I’m a bit out of my comfort zone in this domain, but from my understanding, I don’t see how it could work with plain concatenation of sources, and I would recommend using a newer bundler for this, or if that’s hassle, just use Uppy from the CDN
You need to create a custom bundle to only include the plugins you need. If you’re not using a bundler for the rest of your application, you can create one just for Uppy.
Install browserify
npm install -g browserify
Install the Uppy modules that you will use
npm install @uppy/core @uppy/tus @uppy/dashboard
Create a file that only includes the plugins you need
Now, you can use my-uppy-bundle.js in a script tag or use gulp-concat to add it to the start of your scripts. It will define a global Uppy variable just like the build that comes with the uppy package, but with only the things you need.
You can just copy the my-uppy-bundle.js file into your project, so you don’t need to use browserify or another bundler for your other files.
I don’t think we’ll provide more minimal bundles ourselves, because there are so many possible combinations. We’d have to build 100+ bundles to serve every use case probably