In order to get the third-party Eve npm module integrated, I used
webpack.(https://webpack.js.org/). I thought I'd point to the details
on what I did in case it is useful for anyone else, since being new to
javascript tooling, it took me a while to figure out a few of the
things.
Here is the webpack configuration file. The output.libraryTarget
section and the externals section are the two most important parts for
TW:
I generated the original plugin structure using Danielo's yeoman
generator (https://groups.google.com/d/msg/tiddlywikidev/rZ8nLFKA8BE/o30NDONxAAAJ - thanks Danielo!), but found that I couldn't get the webpack grunt
plugin to work. So I ditched the gruntfile and went completely with
npm scripts: