From a25092b58675fd744cd2efbeb95e21baaccf84a8 Mon Sep 17 00:00:00 2001 From: lishid Date: Mon, 10 Jan 2022 09:01:38 -0500 Subject: [PATCH] Update esbuild script to include codemirror packages as external. --- esbuild.config.mjs | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 5d87383..f1fe201 100644 --- 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',