Replace require's with import and make it type: module in package.json. This will allow us to strop adding exceptions for it in webpack config and tree-shaking should just work.
We might also want to get rid of index.js and have the main and renderer helpers be completely separate import paths.