By using Svelte we can create a mock website that is much faster to develop with that renders the widget with a mock widget to a normal website. This requires the following:
A WidgetModel mock that implements the right functions.
A index.js and index.html that load and display App.svelte.
There are lots of updates happening on the official typescript cookie cutter that aren't captured here without my manual updates. It would be nice to include those or sync this repo somehow. This is related to this issue as well: jupyter-widgets/team-compass#4
Current package.json installs typescript version ~4.1.3.
yarn actually fails using typescript<4.2 with error TS1005: ',' expected., etc.
It fails using typescript>4.8 with Error: Debug Failure. Unhandled SyntaxKind: ImportClause. which is a bug specific to svelte-loader.
Either webpack^5.0.0 (currently 5.80) or jupyterlab/builder^3.0.0 (currently 3.6.3) is not compatible with typescript<4.2. Recommend using [email protected].