Replies: 1 comment 5 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.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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