Closed NicoApizee closed 7 years ago
I removed the mutationObserver from syncher, it was there to give support the browsers which don't support the ObjectObserve and ArrayObserve.
Now should work on nodejs.
@dvilchez To continue to give support to other browsers different of Chrome and FF, I think the runtime-browser, need includes on rethink.js dist file this module:
import 'mutationobserver-shim';
import 'object.observe';
import 'array.observe';
well @vitormsilva, I think you mean include these polifylls on the distribution file but, I am not sure if it is a good practice or it is better only include it as a dependency on the documentation.
What do you think?
As a reference: http://programmers.stackexchange.com/questions/233980/javascript-bundle-a-required-but-common-polyfill-in-my-library http://stackoverflow.com/questions/6599815/what-is-the-difference-between-a-shim-and-a-polyfill
Ok @vitormsilva and @dvilchez the update is in the develop
or in service-framework-nodejs
branch ?
@dvilchez, but if we include this as a dependency on the documentation, the bundle which is in the sandbox, don't will have access to that dependency, or has?
good point @vitormsilva, anyway according to canIuse web, any browser supporting web workers should support mutationobserver.
http://caniuse.com/#search=mutationobserver http://caniuse.com/#search=webworker
I think we can close this issue.
We can close, because with the implementation of Proxy here we don't have this problem;
The module "mutationobserver-shim" used in Syncher.js is browser specific and don't provide any implementation for nodejs (no MutationObserver API available).
We got error when loading hyperty :
The window global reference dont exist on nodejs.
The official page dont include node in compatibility list : https://github.com/megawac/MutationObserver.js