-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uglifyjs and Uppy #230
Comments
It appears it does not understand ES6, seems like you either need to add ES6 support to Uglify, or point it to the ES5 transpiled files vs the ES6 sources? |
Yep, make sure to use the files from Uppy's |
the lib folder has dropped off the repo? just the scr now |
The |
so ive been looking into this for a day or so.. and have created 2 packages that work in dev mode (meteor). But still, run into issues when deployed to production. The minification process just hangs I'm pretty sure the issue is with Uppy. https://github.com/payner35/uppy (maybe there are still some es6 references left here?) https://github.com/payner35/tus-js-client is working as expected. |
What error are you getting now? Still about |
ok.. i think I have tracked down the issue. its with Uppy/lib/plugins/Transloadit/Socket.js which imports packages socket.io --> engine.io --> ws ws does not compile with uglify-js and is causing the hang Any work around? |
https://www.npmjs.com/package/ws
So I wonder if it should be in the bundle at all. |
It shouldn't be, but engine.io-client works on the client and the server, and uses the `browser` field in package.json to differ, just like tus-js-client... This should really be addressed in meteor's build system I'm afraid :/
…On 23 June 2017 18:39:44 CEST, Artur Paikin ***@***.***> wrote:
> Note: This module does not work in the browser. The client in the
docs is a reference to a back end with the role of a client in the
WebSocket communication. Browser clients must use the native WebSocket
object.
So I wonder if it should be in the bundle at all.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#230 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
Thanks so much for persevering @payner35, I realize this was a bit rough, but it's is going to help other Meteor users greatly for sure! |
no worries. good to have it working ;) |
Meteor.js uses https://atmospherejs.com/meteor/standard-minifier-js to create the production build for deployment to a server.
This uses Uglifyjs. I have some productions build issues and I'm pretty sure it's Uppy. (works great in testing env)
I'm not very familiar with uglify but a test has shown the following
any thoughts on this? Can uppy be packaged by Uglify?
The text was updated successfully, but these errors were encountered: