0.0.19 • Published 7 months ago

@kirill.konshin/utils v0.0.19

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Installation

$ npm install @kirill.konshin/utils
// moduleResoliution: nodenext
import { createWindow } from '@kirill.konshin/utils/electron';

// moduleResoliution: node
import { createWindow } from '@kirill.konshin/utils/dist/electron';

Building

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'
  • tsup
    • slow
    • ✅ Minimal config
  • swc + tsc
    • ❌ A bit slower than rollup/vite
    • ⚠️ Lots of configs
  • rollup+swc
    • ⚠️ Quirks with watch mode
    • ⚠️ Seem to reemit all files all the time
  • vite
    • ✅ Fast
    • ✅ Comes with vitest (reasoning https://youtu.be/w9xQRJXKrV0)
    • ✅ Comes with Storybook plugin
    • ⚠️ Based on Rollup, inherits its quirks
    • ⚠️ Awkward configuration, half Vite half Rollup
  • rslib aka rsbuild, from MF authors
    • ✅ Fast
    • ✅ Minimal config
    • ⚠️ Something wrong with the types
  • unbuild
    • ❌ Slower than vite/rollup+swc
    • ⚠️ Based on Rollup, inherits its quirks
    • ✅ Minimal config
  • bun
    • ❌ DTS is slow
    • ❌ Build failed
    • ❌ Does not work as standalone bundler
  • turbopack
  • https://qwik.dev/
  • https://tsdx.io/ Jared Palmer, I know him
    • ❌ Dead project
0.0.19

7 months ago

0.0.18

9 months ago

0.0.17

9 months ago

0.0.16

9 months ago

0.0.15

9 months ago

0.0.14

11 months ago

0.0.13

11 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago