Open fnlctrl opened 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'
Build tools simpification
ts-node
is no longer necessarynyc
is no longer necessaryMinor changes
namespace
as plain object TS it self is migrating away from namespaces. Since it's considered a legacy feature and not part of ES spec, it's better to migrate away too.require
toimport