This would be a good fundament for adding Snowpack/Vite
builder support. Currently, Storybook UI can be built by
Webpack or tsc, but esbuild transpiles .ts file-by-file
and therefore has some caveats:
https://esbuild.github.io/content-types/#typescript-caveats
This change adds isolatedModules: true to tsconfig.json,
and fixes a few places in the Storybook source code.
The result has been briefly tested with esbuild - with
these changes, it's possible to build Storybook UI
using Vite.