mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
fix: use officeparser browser bundle for Obsidian mobile compatibility
Alias officeparser to its browser bundle to avoid Node.js "fs" module dependency that crashes on Obsidian mobile. The browser bundle provides identical functionality using web APIs.
This commit is contained in:
parent
6ea5981644
commit
fed0287ba0
1 changed files with 5 additions and 0 deletions
|
|
@ -103,6 +103,11 @@ const cssMergerPlugin = {
|
|||
};
|
||||
|
||||
const buildOptions = {
|
||||
// officeparser's default entry point requires Node's "fs" module, which crashes the plugin on
|
||||
// Obsidian mobile. The browser bundle provides identical functionality using web APIs instead.
|
||||
alias: {
|
||||
'officeparser': './node_modules/officeparser/dist/officeparser.browser.js',
|
||||
},
|
||||
plugins: [
|
||||
esbuildSvelte({
|
||||
compilerOptions: { css: "injected" },
|
||||
|
|
|
|||
Loading…
Reference in a new issue