thlorenz / brace

📔 browserify compatible version of the ace editor.
http://thlorenz.github.io/brace/
MIT License
1.06k stars 304 forks source link

Avoid importing modes you don't use #150

Closed jonasdev closed 5 years ago

jonasdev commented 5 years ago

This brace module is huge, and I can't avoid getting warnings about the size of bundling, even though I made the component (react) using brace as a seperated bundle.

What confuses me is, why is it importing modes and themes I am not even imported to the component? I can tell, when running the webpack-bundle-analyzer.

screen shot 2018-12-27 at 13 01 34

I'm only running import 'brace/mode/java'; Is it possible to avoid calling all the other modes?