The content of this gist has been superseded by a new proper plugin for webpack: https://github.com/gilmoreorless/moment-timezone-data-webpack-plugin
The original contents of the gist are kept below for context, but I encourage people to use the plugin instead.
This is a custom helper script I wrote for a project’s Webpack build. It reduces the amount of time zone definition data loaded by moment-timezone
. This helps reduce the size of the JS bundle loaded in a browser.