CodeMirror Bundle Project#
A standalone CodeMirror 6 editor bundled with Rollup for better performance and reliability.
Setup#
- Install dependencies:
npm install
- Build the bundle:
npm run build
- Serve the project:
npm run serve
- Open http://localhost:8000/codemirror.html in your browser
Development#
To watch for changes and rebuild automatically:
npm run watch
Project Structure#
src/codemirror.js- Main source file that exports CodeMirror modulesdist/codemirror-bundle.js- Bundled output (generated)codemirror.html- The HTML page using the bundlerollup.config.js- Rollup configuration