I have been trying something very simple - export and bundle (and babel transpiling) a function using webpack and then call it in my html page\'s script tag.
sample.