-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
createRequire isn't impl. #15
Comments
@jimmywarting you're posting this in exactly the right place, yes |
no but i have always wanted to get my hands dirty and learn how to do code-refactoring automatically and learn more about AST, touched it a tiny bit a while back.
I could maybe try it out if you giving me some guides and i get some free time, but don't count on me making a PR. |
it could be quite neat if you could somehow manipulate the |
Well the alternative is just to tell the library author to use dynamic |
Dynamic import can’t pull in CJS. |
Hi, sry if this isn't the right repo to ask this, but here it goes
A package i use depends on a mix of esm and cjs for dual stuff...
I wish to see support for createRequire
someone is using this code:
they require packages dynamically and with a variable too to make it even more complicated...
I'm using the memory
fs
from node also and shoving in files there as well.(I have zipped the node_modules and extracted it into memory fs)
but the nullRequire comes into play that i have a hard time to patch...
I don't know how to best resolve this sync require...
eval(fs.readfileSync(path))
All this dynamic require and trying to fix node's path resolver with extension-less stuff and indexes is nothing but annoying...
if there where any possible way to turn
(mod = 'buffer') => require(mod)
into something thatimport
s from the cdn in a sync way and also utilize import maps than that would be coolThe text was updated successfully, but these errors were encountered: