slab / delta

Simple and expressive JSON format for describing rich-text content and their changes
https://quilljs.com/docs/delta
BSD 3-Clause "New" or "Revised" License
914 stars 130 forks source link

build: switch to vite, vitest and api-extractor; add esm output #90

Open fnlctrl opened 1 year ago

fnlctrl commented 1 year ago

Build tools simpification

Minor changes

fnlctrl commented 1 year ago

@luin I added esm output despite potential dual package hazard because there're no instanceof checks, and Delta is small enough to not cause perf issues even if loaded twice.

The only issue now is usage in node would become

const Delta = require('quill-delta').default

I was wondering if it would be better to remove the default export, so it's simply

const { Delta } = require('quill-delta')

which would mirror normal esm import

import { Delta } from 'quill-delta'