add banner to bundle

This commit is contained in:
Clemens Ertle 2021-03-03 15:41:18 +01:00 committed by Lishid
parent ceb3837850
commit 00cf028cc3

View file

@ -2,13 +2,21 @@ import typescript from '@rollup/plugin-typescript';
import {nodeResolve} from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
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',
format: 'cjs',
exports: 'default'
exports: 'default',
banner,
},
external: ['obsidian'],
plugins: [