-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Thank you, incredibly fast lib.
Without esm build i.e.
"build:esm": "tsc --module es2015 --target es5 --outDir dist/esm"
its impossible to use this library if "type": "module",
is set in package.json.
i.e having commonjs I need add .default
and this breaks typings
import BTree from 'sorted-btree';
var tree = new BTree.default<number, [number, number]>(undefined, (a, b) => a - b);
To have near zero setup of esm+commonjs support I can recoomend https://github.com/developit/microbundle
Metadata
Metadata
Assignees
Labels
No labels