-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Provide CJS build #12
Comments
Looks like my two dependencies both provide CJS builds so should be possible |
I had problems doing it locally (trying Unfortunately, in doing testing this way, the race condition occurs and I get the error, "Expected WASM to be loaded before calling parseImportsSync", so it seems we'll be unable to use the package after all. :-( Thanks for your efforts though! |
Ah good catch with the Up to you whether it's worth the trouble, but you could theoretically run this package's async method in a worker to make it synchronous. For example: eslint/eslint#15394 (comment) If you are interested in that, then I can move forward with this CJS export |
One other similar option: https://github.com/sindresorhus/make-synchronous. I think this one uses a child process instead of a worker, so probably not as efficient as the other option I mentioned |
Thanks for that! While So a CJS release would be great. |
Nice! Glad that works. Will publish the version with CJS soon |
Published as v2.1.0! |
Excellent, thanks! Love the turnaround speed too! :-) |
No problem!
Haha, have been avoiding going outside due to the heat here in the Northeast 😅 |
While it worked for us locally, as we are also using modules, I dumbly forgot to check whether the package supports CJS.
Any chance you'd provide a CJS build?
The text was updated successfully, but these errors were encountered: