-
Bun and deno allow for writing imports in single-file scripts without a package.json - in bun I believe this is called auto-install or autoimport with the Bun module resolution algorithm https://bun.sh/docs/runtime/autoimport This aligns with similar features in various languages https://dbohdan.com/scripts-with-dependencies#javascript - I tried to find an issue proposing this feature but I couldn't - has this been discussed? I figured searching bun or deno would be mentioned in such an issue and I didn't find them. |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 4 replies
-
CC relevant teams: @nodejs/loaders @nodejs/npm |
Beta Was this translation helpful? Give feedback.
-
I'm sorry, but the explanation of "why not" is likely pretty long, and I have no real time for it. It boils down to security and reproducibility, so I don't expect this feature to be implemented anytime soon. |
Beta Was this translation helpful? Give feedback.
I'm sorry, but the explanation of "why not" is likely pretty long, and I have no real time for it. It boils down to security and reproducibility, so I don't expect this feature to be implemented anytime soon.