mirror of
https://github.com/runofthemillgeek/swarnam-obsidian.git
synced 2024-11-16 15:30:16 +00:00
30 lines
676 B
JavaScript
30 lines
676 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');
|
|
|
|
const banner =
|
|
`/*
|
|
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
|
|
if you want to view the source visit the plugins github repository
|
|
*/
|
|
`;
|
|
|
|
export default {
|
|
input: 'main.ts',
|
|
output: {
|
|
dir: '.',
|
|
sourcemap: 'inline',
|
|
sourcemapExcludeSources: isProd,
|
|
format: 'cjs',
|
|
exports: 'default',
|
|
banner,
|
|
},
|
|
external: ['obsidian'],
|
|
plugins: [
|
|
typescript(),
|
|
nodeResolve({browser: true}),
|
|
commonjs(),
|
|
]
|
|
}; |