obsidian-sample-plugin | This is a sample plugin for Obsidian ( https
kandi X-RAY | obsidian-sample-plugin Summary
kandi X-RAY | obsidian-sample-plugin Summary
This is a sample plugin for Obsidian (This project uses Typescript to provide type checking and documentation. The repo depends on the latest plugin API (obsidian.d.ts) in Typescript Definition format, which contains TSDoc comments describing what it does.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of obsidian-sample-plugin
obsidian-sample-plugin Key Features
obsidian-sample-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on obsidian-sample-plugin
QUESTION
I'm building an Obsidian plugin, and it uses esbuild to bundle ts file to js file. The ts file is located at D:\foo1\foo2\...
, and I want the js file to be at D:\bar1\bar2\...
. The reason for this is because I want the source folder is in a different folder than the plugin folder, so that when syncing it to mobile I don't have to exclude the source files.
I was suggested to edit the esbuild.config.mjs file, and I find in the documentation that beside the outfile config there are also outdir, outbase. However, these are the results when I'm using them:
outdir ...ANSWER
Answered 2022-Feb-08 at 10:27You didn't correctly format the content of the outdir
setting. When using backslashes \
as path separator on windows, you have to escape them. Ie use
QUESTION
I am new to JS and to Kotlin/JS. I have the following minimal working Javascript code for a Plugin for Obsidian from an example. It works as expected:
...ANSWER
Answered 2021-Jul-12 at 13:07You can find a working example of what you're going for here. I'll go through some of the changes that needed to be made to your code one-by-one in this reply.
Being unable to resolveobsidian
Can't resolve 'obsidian' in 'path\kotlin'
occurs because the obsidian-api
package is not a standalone library. Instead, it only consist of a obsidian.d.ts
file, which is a TypeScript declaration file. Similar to a header file in other languages, this header file does not provide any implementations, but only the signatures and types for the library – meaning Kotlin/JS' webpack (or any JavaScript tooling, for that matter) won't be able to resolve the actual implementations. This is expected, and can be addressed by declaring the module as external
. To do so in Kotlin/JS, create a directory called webpack.config.d
, and add a file 01.externals.js
with the following content:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install obsidian-sample-plugin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page