commit a25092b58675fd744cd2efbeb95e21baaccf84a8
parent d006ed755a25170f0fe82ea570e53c4090ec6b33
Author: lishid <lishid@gmail.com>
Date: Mon, 10 Jan 2022 09:01:38 -0500
Update esbuild script to include codemirror packages as external.
Diffstat:
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/esbuild.config.mjs b/esbuild.config.mjs
@@ -17,7 +17,31 @@ esbuild.build({
},
entryPoints: ['main.ts'],
bundle: true,
- external: ['obsidian', 'electron', ...builtins],
+ external: [
+ 'obsidian',
+ 'electron',
+ '@codemirror/autocomplete',
+ '@codemirror/closebrackets',
+ '@codemirror/collab',
+ '@codemirror/commands',
+ '@codemirror/comment',
+ '@codemirror/fold',
+ '@codemirror/gutter',
+ '@codemirror/highlight',
+ '@codemirror/history',
+ '@codemirror/language',
+ '@codemirror/lint',
+ '@codemirror/matchbrackets',
+ '@codemirror/panel',
+ '@codemirror/rangeset',
+ '@codemirror/rectangular-selection',
+ '@codemirror/search',
+ '@codemirror/state',
+ '@codemirror/stream-parser',
+ '@codemirror/text',
+ '@codemirror/tooltip',
+ '@codemirror/view',
+ ...builtins],
format: 'cjs',
watch: !prod,
target: 'es2016',