svgdotjs / svgdom

Straightforward DOM implementation to make SVG.js run headless on Node.js
MIT License
274 stars 54 forks source link

core-js 2 is no longer supported #57

Closed jwatte closed 4 years ago

jwatte commented 4 years ago

When installing svgdom, NPM complains that core-js version 2.6 is no longer supported, and core-js version 3 or higher should be used. That being said -- do you need core-js at all? (Also -- 98 packages? really? It would probably be cheaper to emit SVG using just string concatenation...)

Fuzzyma commented 4 years ago

I dont use core-js. Must be one of the dependencies.

Also -- 98 packages? really? It would probably be cheaper to emit SVG using just string concatenation...

Feel free to write a font file parser on your own. Oh - and an xml parser, too. Ah, what I am talking about - just write your own dom implementation with zero dependencies. I am kidding - but I guess you got the point ;)

michael-brade commented 4 years ago

I dont use core-js. Must be one of the dependencies.

yup. It is fontkit, which still uses babel-runtime version 6.x instead of @babel/runtime (version 7.x), and babel 6 depends on the old core-js. So you might turn to fontkit.