auth
auth copied to clipboard
Resolve module names with file extentions
I'm having difficulty using localfirst/auth
within an Electron application (main process) because module names in imports aren't specified by the full path (e.g., .js
or /index.js
for directories). Would you welcome a pull request that adds these?
I agree it's a lot less elegant and pretty to look at than the way it's now, but it seems that that's how other typescript packages (e.g., libp2p) deal with the module resolution problem in Node.js.
What do you say? Thanks!