Utilities
npm install @kirill.konshin/utils``bash`
$ npm install @kirill.konshin/utils
`ts
// moduleResoliution: nodenext
import { createWindow } from '@kirill.konshin/utils/electron';
// moduleResoliution: node
import { createWindow } from '@kirill.konshin/utils/dist/electron';
`
https://jakeginnivan.medium.com/options-for-publishing-typescript-libraries-9c37bec28fe
``
'yarn build:bare': '4.7',
'yarn build:vite': '4.0',
'yarn build:rollup': '4.0',
'yarn build:tsup': '10.1',
'yarn build:unbuild': '4.5'
'yarn build:rslib': '3.9'
- tsupswc
- slow
- ✅ Minimal config
- + tscrollup+swc
- ❌ A bit slower than rollup/vite
- ⚠️ Lots of configs
- vite
- ⚠️ Quirks with watch mode
- ⚠️ Seem to reemit all files all the time
- vitest
- ✅ Fast
- ✅ Comes with (reasoning https://youtu.be/w9xQRJXKrV0)rslib
- ✅ Comes with Storybook plugin
- ⚠️ Based on Rollup, inherits its quirks
- ⚠️ Awkward configuration, half Vite half Rollup
- aka rsbuild, from MF authorsunbuild
- ✅ Fast
- ✅ Minimal config
- ⚠️ Something wrong with the types
- bun
- ❌ Slower than vite/rollup+swc
- ⚠️ Based on Rollup, inherits its quirks
- ✅ Minimal config
- turbopack`
- ❌ DTS is slow
- ❌ Build failed
- ❌ Does not work as standalone bundler
-
- ❌ Not yet available outside Next.js https://turbo.build/pack/docs#quickstart
- https://qwik.dev/
- https://tsdx.io/ Jared Palmer, I know him
- ❌ Dead project