How to build a NPM/Yarn package for a collection of TFJS functions to run in WebApps (not node.js)

Hello, does anyone know how to put TFJS for WebApp (client side) into a NPM/Yarn package. The TFJS dependency seems yo assume that models would run on node.js (client side). I have not much clue about the JS stuff. Does anyone have boilerpkatebcode for this?