𝕤𝕥𝕖𝕧𝕖𝟘𝟚𝟘𝟠𝟙𝟝𝟘𝟜
how to clear import cache of an file?
herere two commits for your reference
https://github.com/steve02081504/fount/commit/9be9e3e02f30ad741ce52dd04a364d8ff4235906
https://github.com/steve02081504/GentianAphrodite/commit/6db774e251b55133e8dc1a4e7fe0f881880ad228
bun's auto install cannot meet my repo, so Ill stay in deno for now. 😂
13 replies
how to clear import cache of an file?
if you don't rely too much on deno's auto install and havent use deno's unique framework, move to bun is simple. you just need to replace all
node:
and npm:
stuff to nothing and it's basically all.
it's not difficult, just ask AI and try more!13 replies
how to clear import cache of an file?
hard to describe. My repo allows users to upload char. After decompression or clone from url, main.mjs under the char folder will be loaded by the repo as an entry point to provide services to user.
This is the reason why I hope bun’s auto-install can load all packages. I wish char authors can use the packages they want, but bun cannot do this for now.
I wish that the reloading feature will make debugging easier for char authors, it would be useful if char could be easily reloaded without restarting the entire server. And I also want to deal with the situation where the user uninstalls the char and then installs a char with the same name but different content.
13 replies
how to clear import cache of an file?
For latecomers: you can clear the import cache in bun so that you can hot reload files easily.
I'm currently trying to move my repo from deno to bun, but it's not going very well. bun's auto-install function is not as powerful as deno's
nodemodulesdir=auto
+ --allow-scripts
, this is an absolute fatal blow to my repo moving plan....13 replies