Files
obsidian_ollama/main.js
T
fegger 4ea2734ade fix: move obsidian to devDependencies, improve shim export
- package.json: move obsidian from dependencies to devDependencies
  (it is a type stub — having it in dependencies risks shadowing
  Obsidian's built-in API if node_modules is present in the plugin folder)
- main.js: explicitly extract default export from dist/main.js so the
  shim works with both plugin.default and direct-export loader patterns
2026-05-19 18:21:17 +02:00

5 lines
241 B
JavaScript

// Shim entry point — Obsidian expects main.js at the plugin root.
// Re-exports the compiled plugin from dist/, handling both default and named exports.
const plugin = require('./dist/main.js');
module.exports = plugin.default || plugin;