-
Notifications
You must be signed in to change notification settings - Fork 675
Debugging with the ESM Build
Ron B. Yeh edited this page Mar 8, 2022
·
3 revisions
This guide demonstrates how to rapidly develop/modify/test features within the VexFlow library. It is targeted at developers who wish to edit VexFlow source code (to customize its capability beyond what is offered, or to submit a PR to the main repo).
The process below requires VexFlow 4 or newer (since earlier versions did not include an ESM build).
Short Summary
- Run
grunt test:browser:esm
from thevexflow/
directory. This will openhttp://127.0.0.1:8080/tests/flow.html?esm=true
and also compile the ESM build in watch mode. - Navigate to the test you want by using the "Module:" dropdown and/or the "Filter:" search box.
- Modify VexFlow. When you save a source file, the ESM build will be recompiled.
- Refresh your webpage and see the results.
Note! Your browser might serve up a cached version of the VexFlow library and test page when you refresh. If this happens, you can open the developer tools and disable caching while the dev tools are open.
[ VexFlow.com ] [ API ] [ GitHub Repo ] [ Contributors ]