Juho Vepsäläinen
Juho Vepsäläinen
Although JSON has its benefits, TypeScript might be the better way long term (stronger checks etc.). Maybe both should be supported.
Example: ```javascript // --------------- testsuite.js import * as sharedTest_A from "./sharedtest_A.js"; Deno.test({ name: "testFoo", fn: async (t) => { await t.step("sharedTest_A", async (t) => { await sharedTest_A.testFoo(t); await sharedTest_A.testBar(t); });...
This might already be doable at the user side by introspecting images at `.server.ts`.
Now individual plugins aren't visible on the website but it would be smart to generate an index of them automatically.
In other words, scripts like `Button.client.ts` should get bundled and injected somehow. Likely injection strategy has to be exposed to the user to allow loading when needed (islands style likely).
The idea would be to expose enough API for individual components to be able to add assets. This is useful for tasks like highlighting and communicating dependencies explicitly.
Now it's possible to inject duplicate scripts by accident.