Build a version of codemirror with only the required code.