mourner / rbush

RBush — a high-performance JavaScript R-tree-based 2D spatial index for points and rectangles
MIT License
2.46k stars 237 forks source link

Fix install issues, updated rollup & plugins dependencies #138

Closed peterkogo closed 4 months ago

peterkogo commented 5 months ago

Fixes #137

Updated rollup and its plugins to newest versions and replaced rollup-plugin-terser with official @rollup/plugin-terser.

Everything should work the same as before. The generated build output only differs by one line, probably due to a updated terser version.

Before:

(global = global || self, global.RBush = factory());

After:

(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.RBush = factory());
mourner commented 4 months ago

Apologies for a late response and thanks for the PR — I'll do some follow work on modernizing the repo now and will release it as v4.

moklick commented 4 months ago

This is huge! Thanks @mourner ✌️