The source code for this demo can be found on GitHub at rollup-native-modules-boilerplate. The technique used for deploying modules is based on the article Using Native JavaScript Modules in Production Today by @philwalton.