4ea2734ade
- 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
5 lines
241 B
JavaScript
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;
|