Update crel to v4.2.0, which supports IE11 #25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "update-crel-to-v4.2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ref:
71e13c5e10https://github.com/ProseMirror/prosemirror/issues/1009
https://github.com/KoryNunn/crel/pull/55
crel v4.1.0 does not works well with IE11, but crel v4.2.0 works by https://github.com/KoryNunn/crel/pull/55.
So we can update the dependency.
I'm still seeing an unconditional call to
new Proxyin the code, which is what caused https://github.com/ProseMirror/prosemirror/issues/1009Thanks, I overlooked this error. 🙇♂️
I guess we can upgrade the dependency if the user installs the polyfill. https://github.com/GoogleChrome/proxy-polyfill
crel v4.2.0 provides code that is valid as ES5 syntax, so we can avoid the error with the polyfill.
But I'm not sure which is a better way, v3 without polyfill or v4 with polyfill. If you'd like to avoid adding the polyfill to the dependencies, feel free to close this pull request.
Thanks!
I'm definitely not introducing a dependency on a polyfill just to be able to upgrade another dependency. But maybe the crel maintainers can be convinced to reinstate the
if (typeof Proxy == "undefined")line, since the issue you linked suggests they do still target older browsers. Though the situation seems a bit of a mess—there's anes.jsfile compiled town to ES5 and referenced in package.json asmodule, but themainfile,crel.jsis using ES6 syntax.(Moving to
creltinstead ofcrelhas made this moot.)Pull request closed