chore: improve package exports
This is an attempt to fix #490.
However, https://arethetypeswrong.github.io/ is still not fully happy about it. The problem is that we are using bili to build the library and it's not maintain anymore. Ideally, we need to migrate to a fully new setup to build this lib but I'm a bit lost at the moment (and I hate this topic!).
📦 Published PR as canary version: 5.0.7--canary.527.1aad632.0
:sparkles: Test out this PR locally via:
npm install [email protected]
# or
yarn add [email protected]
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Hint: try https://github.com/egoist/tsup and follow https://www.totaltypescript.com/how-to-create-an-npm-package
However, IIRC, last time I tried tsup, I had issues with inlining the CSS into the lib.