https://github.com/hackmdio/CodeMirror/blob/417827e87a4ae2db29c6d0a63d7ef822d5e06f2a/keymap/vim.js#L55 You can do either 1. use "var" instead of "const", 2. transpile, or 3. use uglify-es instead of uglify-js