@tidepool/viz's usage of webpack
Our use of webpack in this repository is a bit different from our use of it in blip or the Tidepool uploader, where we're using it to build applications. Here we're using webpack to bundle our JavaScript, CSS, and JSONa into a bundle that can be published to the node package manager and then included as a dependency in other projects like blip.
While the development webpack configuration is pretty similar to the configurations we used in blip and the uploader, the production packaging configuration is different in that it specifies a libraryTarget
and defines many of the dependencies as externals
so that they don't get bundled twice (in both the viz JavaScript bundle and the blip bundle).
a. The timezone database that comes with moment-timezone is JSON. ↩