M!NDBYTE
M!NDBYTE
DDeno
Created by M!NDBYTE on 1/19/2024 in #help
`deno cache` with `node_modules_dir` moves sub-dependencies into `.deno/node_modules` dir
If I execute deno cache --node-modules-dir package-lock.json, a node_modules directory is created - which is fine. But all sub-dependencies are downloaded into node_modules/.deno/node_modules. Unfortunately esbuild can't find these sub-dependencies as they are not where they're expected, as they should be directly in node_modules. Is there a way to tell deno to put all dependencies and sub-dependencies directly into node_modules?
5 replies
DDeno
Created by M!NDBYTE on 10/25/2022 in #help
Need help making fresh, rutt and preact base path aware
I'm currently trying to make fresh base path aware. I already patched rutt to work with base paths. It currently works pretty okay. Now I need help with preact as I have no experience with preact. Is there a way to tell preact to add a base path to e.g. all relative links? E.g.: <img src="/logo.svg" ... from the jsx file should be 'compiled' to <img src="/my_base_path/logo.svg" .... Or do we need to do this ourselves by adding a ${BASE_PATH} before all links? A mono-repo for this mess: https://github.com/wille-io/deno-fresh-rutt-baseurl
1 replies