In answer to http://stackoverflow.com/questions/44034049/why-doesnt-rollup-js-treeshake-my-library/44036934?noredirect=1#comment75114138_44036934 — paste this code into https://rollupjs.org/repl