Skip to content

Commit 9364867

Browse files
committed
updated esbuild to get the web worker running again
1 parent dde156d commit 9364867

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

esbuild.config.mjs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,21 @@ const webWorkerIgnores = [replace({
7070
// update usage of moment from obsidian to the node implementation of moment we have
7171
'import {moment} from \'obsidian\';': '',
7272
// remove the use of obsidian in the options to allow for docs.js to run
73-
'import {Setting} from \'obsidian\';': '',
73+
'import {App, Setting, ToggleComponent} from \'obsidian\';': '',
7474
// remove the use of obsidian in settings helper to allow for docs.js to run
75-
'import {Component, MarkdownRenderer} from \'obsidian\';': '',
75+
'import {App, MarkdownRenderer} from \'obsidian\';': '',
76+
// remove the use of obsidian in the auto-correct files picker to allow for docs.js to run
77+
'import {Setting, App, TFile, normalizePath, ExtraButtonComponent} from \'obsidian\';': '',
78+
// remove the use of obsidian in add custom row to allow for docs.js to run
79+
'import {App, Setting} from \'obsidian\';': '',
80+
// remove the use of obsidian in suggest to allow for docs.js to run
81+
'import {App, ISuggestOwner, Scope} from \'obsidian\';': '',
82+
// remove the use of obsidian in md file suggester to allow for docs.js to run
83+
'import {App, TFile} from \'obsidian\';': '',
84+
// remove the use of obsidian in parse results modal to allow for docs.js to run
85+
'import {Modal, App} from \'obsidian\';': 'class Modal {}',
86+
// remove the use of app from a couple of settings for docs.js to run
87+
'import {App} from \'obsidian\';': '',
7688
},
7789
delimiters: ['', ''],
7890
})];

0 commit comments

Comments
 (0)