esm-potrace-wasm icon indicating copy to clipboard operation
esm-potrace-wasm copied to clipboard

Improve the build

Open tomayac opened this issue 4 years ago • 3 comments

Currently the build is very hacky, now @Surma pointed at the EXPORT_ES6 option.

tomayac avatar Nov 19 '21 16:11 tomayac

Turns out this also is the reason for #3.

tomayac avatar Nov 25 '21 15:11 tomayac

I am using this module in a browser based algorithm. Now I'd like to port this to a ESM node.js version, but I get the following error ReferenceError: __dirname is not defined in ES module scope. If I remove __dirname from the minified code it works, but this seems to be an overly hacky solution. Any way how to get this fixed with a better build?

dreerr avatar Dec 28 '21 15:12 dreerr

I have tried my luck in https://github.com/tomayac/esm-potrace-wasm/pull/1, but haven’t succeeded unfortunately. Definitely help wanted.

tomayac avatar Dec 30 '21 09:12 tomayac