shrhdk / text-to-svg

Convert text to SVG path without native dependence.
Other
964 stars 131 forks source link

Change use of path and __dirname for compatibility #76

Open lawik opened 9 months ago

lawik commented 9 months ago

This should allow the library to work properly under esbuild as well as work better under Webpack 5.

It will now only require('path') if possible.

lawik commented 9 months ago

Built on top of 3.1.5 as master had a failing test.