Replace rollup w/ webpack for the web worker
This commit is contained in:
parent
a4a33d2541
commit
a0015af28e
9 changed files with 232 additions and 188 deletions
|
|
@ -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')));
|
||||
|
|
|
|||
Loading…
Reference in a new issue