Replies: 2 comments 8 replies
-
Yes, this is a limitation of Deno. It doesn't have any mecanism to invalidate an import and reload it, without restarting completely the script. You can skip this limiation by using Lume components (files in _components folder) because they are not imported as esm (with |
Beta Was this translation helpful? Give feedback.
-
Nice! Here's a paraphrase for searchability, since it took me a long time to find this: when using code imported in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The Problem
When using live-reload unfriendly components like ESM modules (
.ts
) or JSX, you have to reload the server manually for every single changes. This is a lot of work.adding
--watch
option also does not work:echo \"import 'lume/cli.ts'\" | deno run --watch=_includes/foo.ts --unstable -A -
Suggested Changes
allow users to configure server so the server would completely restart on file changes such as
.ts
or.tsx
.Beta Was this translation helpful? Give feedback.
All reactions