Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the build #2

Open
tomayac opened this issue Nov 19, 2021 · 3 comments · May be fixed by #1
Open

Improve the build #2

tomayac opened this issue Nov 19, 2021 · 3 comments · May be fixed by #1

Comments

@tomayac
Copy link
Owner

tomayac commented Nov 19, 2021

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

@tomayac tomayac linked a pull request Nov 19, 2021 that will close this issue
@tomayac
Copy link
Owner Author

tomayac commented Nov 25, 2021

Turns out this also is the reason for #3.

@dreerr
Copy link

dreerr commented Dec 28, 2021

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?

@tomayac
Copy link
Owner Author

tomayac commented Dec 30, 2021

I have tried my luck in #1, but haven’t succeeded unfortunately. Definitely help wanted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants