-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Removes runtime dependency babel-polyfill #2692
Conversation
Current coverage is 92.22% (diff: 100%)@@ master #2692 diff @@
==========================================
Files 102 102
Lines 12446 12443 -3
Methods 1559 1559
Messages 0 0
Branches 2040 2038 -2
==========================================
- Hits 11480 11476 -4
- Misses 966 967 +1
Partials 0 0
|
When I run this branch I get the following errors. It looks to me as though other modules still need babel-polyfill and don't have it. Probably I did something wrong in moving to this branch - I'm most recently an iOS engineer, before than an OS one (Symbian kernel) - therefore fairly new to node.js and everything server-side. What I did was fork parse-server, checkout your branch, confirmed that babel-polyfill was missed, then npm install, and then copy that whole parse-server directory replacing the parse-server directory in my source tree that is actually pushed to Heroku. (Usually I just use the package.json to allow Heroku to build it, but npm install it when I need to do things like this.)
|
@flovilmart updated the pull request - view changes |
@zingano I just removed all references to the array includes that should have been polyfilled at runtime. If you update the branch and redeploy you should be all fine. |
* Removes runtime dependency babel-polyfill * removes references to polyfilled array includes
I just got time to test this on my dev branch and I'm seeing masses of logging, even though I have VERBOSE = false. Don't have time to look into this now but I'm not going to move this to production so won't be able to see results on a large DB. On test over 50% of the time, not surprisingly, is spent in lib/async.js, called from logger/winston.js |
We have reverted that PR as it was causing more issues. A future Pr will remove those runtime polyfills. |
Also, to disable VERBOSE logging, you should unset the environnement variable, setting to any value will enable VERBOSE logging |
* Removes runtime dependency babel-polyfill (#2692) * Removes runtime dependency babel-polyfill * removes references to polyfilled array includes * Better support for polyfilling * Removes unnecessary log * Adds killswitch if tests are polyfilled * Reverts usage of includes on strings
Was originally added here: https://github.com/ParsePlatform/parse-server/pull/543/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R14
But we don't need those because:
Adresses stack traces from #2654 that would use a polyfill version of the stringify that's slower
See: