generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,837 additions
and
1,547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
import typescript from '@rollup/plugin-typescript'; | ||
import {nodeResolve} from '@rollup/plugin-node-resolve'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
|
||
export default { | ||
input: 'src/main.ts', | ||
output: { | ||
dir: '.', | ||
sourcemap: 'inline', | ||
format: 'cjs', | ||
exports: 'default' | ||
}, | ||
external: ['obsidian'], | ||
plugins: [ | ||
typescript(), | ||
nodeResolve({browser: true}), | ||
commonjs(), | ||
] | ||
}; | ||
import typescript from "@rollup/plugin-typescript"; | ||
import resolve from "@rollup/plugin-node-resolve"; | ||
import commonjs from "@rollup/plugin-commonjs"; | ||
import svelte from "rollup-plugin-svelte"; | ||
import autoPreprocess from "svelte-preprocess"; | ||
|
||
const path = "."; | ||
export default { | ||
input: "src/main.ts", | ||
output: { | ||
dir: path, | ||
format: "cjs", | ||
exports: "default", | ||
}, | ||
external: ["obsidian"], | ||
plugins: [ | ||
svelte({ | ||
emitCss: false, | ||
preprocess: autoPreprocess(), | ||
}), | ||
typescript(), | ||
resolve({ browser: true, dedupe: ["svelte"] }), | ||
commonjs({ include: "node_modules/**" }), | ||
], | ||
}; |
Oops, something went wrong.