Request Bundling Guide

I use CM5 in a Firefox extension. I have no experience in compiling and bundling which is needed for CM6.

I would like to request a step-by-step guide in how to generate the necessary files from CodeMirro6 with JS & CSS modes only, along with ESLint & Stylelint.

PS. Add-ons review team would also need the same instructions in order to be able to verify the generated code.

Submission Guidelines

Code must be provided in a way that is reviewable. Add-ons may contain transpiled, minified or otherwise machine-generated code, but Mozilla needs to review a copy of the source code before any of these steps have been applied. The author must provide this information to Mozilla during submission along with instructions on how to reproduce the build. Build tools or environments that no longer appear to be supported by their maintainers are not accepted. Reviewers may ask you to refactor parts of the code if it is not reviewable.

CodeMirror’s distributed packages conform to the package format used by npm. I don’t consider educating people about this system to be a thing that every package provider must do separately. The information is widely available on the web, such as here. I know it’s a mess, but you’re going to have to learn it if you’re doing JS development.