Replace rollup w/ webpack for the web worker

This commit is contained in:
ochafik 2024-12-31 15:54:09 +00:00 • committed by Olivier Chafik
commit a0015af28e
9 changed files with 232 additions and 188 deletions

View file

@ -61,14 +61,14 @@ window.addEventListener('load', async () => {
registerCustomAppHeightCSSProperty();
const fs = await createEditorFS({prefix: '/libraries/', allowPersistence: isInStandaloneMode});
const fs = await createEditorFS({prefix: '/libraries/', allowPersistence: isInStandaloneMode()});
await registerOpenSCADLanguage(fs, '/', zipArchives);
let statePersister: StatePersister;
let persistedState: State | null = null;
if (isInStandaloneMode) {
if (isInStandaloneMode()) {
const fs: FS = BrowserFS.BFSRequire('fs')
try {
const data = JSON.parse(new TextDecoder("utf-8").decode(fs.readFileSync('/state.json')));