BOLL
FileServer from tutorial, 2000+ ms to connect?
It seems when the page has been cached, it loads quickly, which is unsurprising. But whenever forcing a refresh it gets this timing back. I'll try a different browser too. Oh... the issue is only in Firefox... I shall investigate.
6 replies
Run Fresh in subfolder with root deno.json
I did what was mentioned in the guide and closed the issue, will mark this as solved too 😛 will give up on splitting things in workspaces and just run it all through one config, it will hopefully keep me sane 🤣
7 replies
Run Fresh in subfolder with root deno.json
Ah, the difference to what I did was to move the whole Fresh config file to the root. I specifically wanted to split up the imports so started with a fresh config in the root and tried to move over as few parts as possible while retaining the config in the Fresh folder. I'm just home for a short while to look at this but will be back tonight. (Sweden)
7 replies
Deno workspaces and Fresh, a viable combination?
Right, I should have tested this from the start, but it appears as if the
deno.json
inside the server
folder still works with the code that resides outside that folder. Still not sure if all the compile options will be true for the language server when I edit stuff in the other folders, but I hope so. I'll mark this as solved as I doubt anyone will drop by with any other information 🤣 And I'll skip using workspaces entirely as the alias feature only makes things worse for now.4 replies
Deno workspaces and Fresh, a viable combination?
Been experimenting with workspaces now. Some observations:
1. When using an alias, like:
@scope/myfunc
it turns out at least in WebStorm, there is no reference to the source file anymore, it becomes a local reference that cannot be followed outside of the current file, even if the code runs and gets the doc-comment. This makes aliases less useful.
2. The above is also true when the workspace export points to an index.ts
file that re-exports the contents of that workspace.
One of the main reasons I had to use workspaces was the alias feature, but due to this difference in how it works in the IDE I'll avoid using it. Is this up to JetBrains? Are they solely responsible for how the Deno plugin in their IDEs work, or is there a collaboration?4 replies