index.js has an arrow function causing prosemirror not transpiled correctly for ie11 #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Hi
there is an arrow function leftover in the index.js code
this.forEach((elt, i) => result.push(f(elt, i)), from, to)in
causing prosemirror not to work in ie11. Could you please fix this.
Best regards
Which version are you using? I don't see any ES6 in dist/index.js in 1.3.2
I am using prosemirror-history 1.1.2. Looks like that version uses rope-sequence 1.3.0.
In the index.js file in line 64, there is an arrow function after the forEach statement. This seems not to be transpiled correctly into the dist/index.mjs
But package.json only references dist/index.js, so I'm confused why the ES6 file would be getting bundled.
I am using webpack 4.41.2 for bundling. Looks like it prioritize module field over main causing it to bundle the index.mjs. So looks like i have to find a way to tell webpack to use the main field to get the dependency.
module points at
dist/index.es.js, which also does not contain the string=>.Now I see. Had to refetch prosemirror-history 1.1.2 for it to fetch the updated rope-sequence. Thanks for helping me out.