the wrmap element.
-## Compile JavaScript
+## Install build dependencies
-To compile typescript to JavaScript, call `tsc`.
+The following command uses `package.json` to install all dependencies
+
+ npm install
+
+
+
+## Bundle JavaScript/Typescript
+
+The TypeScript source files are below the src directory.
+To bundle them, run
+
+ npm run build
+
+Add `/*@nomin*/` close to the end of `dist/wrmap.mjs` to prevent minification bug: https://phabricator.wikimedia.org/T351610.