There are a couple of version of this.
This is a basic one that doesn't actually create new bundles but prevents all of the function importing and calling.
entry-file.js
document.addEventListener('DOMContentLoaded', () => {
...
getElements('[data-module]').forEach(el => {