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

Consider using Node's ES loader hooks #63

Open
dead-claudia opened this issue Jan 11, 2018 · 0 comments
Open

Consider using Node's ES loader hooks #63

dead-claudia opened this issue Jan 11, 2018 · 0 comments

Comments

@dead-claudia
Copy link
Owner

dead-claudia commented Jan 11, 2018

(ref)

Basically, this would allow me to turn thallium and thallium/assert into "builtins" for ES modules, so I can guarantee every module receives the same instance. I could also support CoffeeScript ES modules and similar on the fly. (Basically, better interop.)

Also, this is required for ES modules as configs, and so should be done by default.


This is way better than require.extensions hacking... (although to do similar for CJS, I'd have to overwrite some Module internals)

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

No branches or pull requests

1 participant