auth icon indicating copy to clipboard operation
auth copied to clipboard

Resolve module names with file extentions

Open julienmalard opened this issue 2 years ago • 0 comments

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!

julienmalard avatar Oct 03 '22 08:10 julienmalard