Community
Chat Logs
Wednesday, May 27, 2026
- bluephaleth: hi
- phalethhi blue
- blue@primate/marko is going to experiment with publishing source files to npm; particularly .marko tags. I'm pushing for edge compilation
- phalethedge compilation?
- blueyes, the app itself should be the one compiling
- bluethe traditional npm trade is to precompile and then serve something like a dist.js or so
- bluethat is in some ways good and in many ways terrible
- phaleththe compiler is gonna be sent to the client?
- blues/npm trade/npm way/
- blueno
- phalethor as a dev tooling?
- bluewe're gonna publish source files, and the one compiling them is the app (in this case primate)
- phalethok, so devDependency then
- bluethat is because the app knows best what it needs, and what are the conditions for compiling the source files
- blueit's not directly related to devDependency
- blueit's just the question whether you precompile non-js or not
- blueif you precompile, you're more inclusive in who can consume it
- bluebut the truth of the matter is that you're only ever going to consume .marko files if you use marko, or .svelte files if you use svelte
- blueyou're not going to have a general-purpose, non-svelte apps that consumes a .svelte file
- blueapp*
- phalethwell, if it's some kind of optimizing compiler then I guess that's fine, but a lot of them are not
- blueso alongside @primate/marko, I'm providing two tags: <Field> and <Form>
- bluethe question is whether I precompile them or not
- blueI decided to not precompile them
- blueand just publish them directly to npm
- phalethnpm is full of broken stuff
- phalethI mean non-js
- blueyes, and I'm adding more broken stuff
- bluebut precompilation in the case of npm is the devil's work
- phalethat least you name it .marko and not .js
- blueyes, the svelte guys keep doing that and it drives me inside
- blues/inside/insane/
- bluethere's more beauty to it, though: I'm using the `marko` runtime key to drive that compilation
- bluethis is arguably one of the best use cases of runtime keys
- bluehttps://github.com/primate-run/primate/commit/b0eb1187313cdd49946c5b46d7bbef8df688e004
- nevetmarko: full support for version 6 · primate-run/primate@b0eb118
- blueyou can see the work here. it doesn't include the .marko runtime key yet though
- bluenote that unlike all the other frontends we support, marko does not have a meta framework for it, so primate's gonna be the first (that I know of, anyway)
- phalethif marko can replace svelte on primate website while not adding more bloat then lets use marko
- bluethat's the idea, and it might work for 0.38
- blue0.39*