Code organization overhaul - purpose of default export in src/codemirror.js?

Hi all. I am trying to wrap my head around the new structure of CodeMirror and got stuck at the /src/codemirror.js file, which imports

export function CodeMirror(place, options) { ... }

from /src/edit/CodeMirror.js, relayed over /src/edit/main.js and subsequently exports it as default function. But the /src/codemirror.js does not get imported anywhere.

What is the purpose of the default export in /src/codemirror.js?

It’s the entry file for the rollup process that builds lib/codemirror.js

1 Like