A dependency graph makes explicit what each piece of code needs. Build tools can use those dependencies to infer load order, detect missing or circular dependencies at build time, and avoid loading unused dependencies. section 13.1
<script src="ninja-library.js"></script> <script src="ninja-app.js"></script>
Serial script tags rely on manually specified load order, unlike explicit dependencies that let tools infer it. section 13.1
ECMAScript modules also let tools identify and prune unused code within a module through tree-shaking. section 13.1








