Search code examples
javascriptd3.js

How to get a non-minified version of d3.js


I am a complete javascript newbie.

How can I get a non minified version of d3.js?

I have run across a script that interests me and am able to run it in my browser, however it uses a minified version of the d3.js.

I would like to step into the d3.js code in the debugger but without meaningful names it is very frustrating.

Thanks for any assistance.


Solution

  • The source code is here:

    https://github.com/d3/d3

    And as far as I can see there is a vaild src map in this distro (taken from the README):

    https://cdn.jsdelivr.net/npm/d3@7/+esm

    So if you use that minified version you should be able to see eventual errors etc listed in the unminified source code