How to use codemirror for webpack externals?

I use vue2,but It doesn’t work.