From bc86bf2d00f9a1ce48e0c59832641933e4296a5d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 1 Dec 2021 18:11:09 +0100 Subject: [PATCH] some more sdk impl notes --- doc/impl-thoughts/SDK.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/impl-thoughts/SDK.md b/doc/impl-thoughts/SDK.md index e7979fd7..28692bde 100644 --- a/doc/impl-thoughts/SDK.md +++ b/doc/impl-thoughts/SDK.md @@ -96,3 +96,14 @@ we could put this file per build system, as ESM, in dist as well so you can incl - css files and any resource used therein - download-sandbox.html - a type declaration file (index.d.ts) + +## Questions + - can rollup not bundle the source tree and leave modules intact? + - if we can use a function that creates a chunk per file to pass to manualChunks and disable chunk hashing we can probably do this. See https://rollupjs.org/guide/en/#outputmanualchunks + + looks like we should be able to disable chunk name hashing with chunkFileNames https://rollupjs.org/guide/en/#outputoptions-object + + + we should test this with a vite test config + + we also need to compile down to ES6, both for the app and for the sdk