Max Richter
0af3fc8ba6
git-subtree-dir: .obsidian/plugins/obsidian-desmos git-subtree-split: d760d65452fdf4629227e7945b90a004a4c57b60
19 lines
537 B
JavaScript
19 lines
537 B
JavaScript
import typescript from "@rollup/plugin-typescript";
|
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
import commonjs from "@rollup/plugin-commonjs";
|
|
|
|
const isProd = process.env.BUILD === "production";
|
|
|
|
export default {
|
|
input: "src/main.ts",
|
|
output: {
|
|
dir: ".",
|
|
sourcemap: "inline",
|
|
sourcemapExcludeSources: isProd,
|
|
format: "cjs",
|
|
exports: "default",
|
|
},
|
|
external: ["obsidian"],
|
|
plugins: [typescript(), nodeResolve({ browser: true }), commonjs()],
|
|
};
|