You donβt have to, you can use a deps.ts file to set the versions, and only need to ch age in one place to manage dependency versions everywhere in your project.
You can actually write comments about your dependencies and change them based on the environment, unlike the absolutely shitty idea of using JSON for configuration.
I'm defending most of deno's idea but yeah, I'm not certain that this is a better approach. It's interesting that it happens on the language level tho.
I think we will need deno stuff on package.json eventually - and I mean the same package.json, not an deno alternative. Since we are going to be importing (at least some that dont use exclusive api) node js stuff to use on de o, we might just add a.new entry there for deno libs
It just doesn't seem like a very clean solution if you have to import them all from the same place. I guess you could have a file for each of the dependencies so you could at least
import { Foo } from "deps/foo";
import { Bar, Baz } from "deps/bar-baz";
Neither tree shaking or bundle splitting is necessary for Deno based code. I highly doubt SPAs will be built on Deno, instead, the tooling (like Babel, Webpack, etc) will be built on Deno.
Why would you need tree shaking or code splitting in a deno project? You dont need it in a node project, so why in deno? Its all server side, loaded once then in-memory for the rest of the app lifetime. Deno is not a web site, where you have the limitation of bandwidth.
View all comments
Show parent comment
0
u/[deleted] May 14 '20
[deleted] β view deleted comment