question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using Rollup for Turf

See original GitHub issue

I am pretty sure everyone would agree on this one, reading back from a few comments from Turf users:

@ThomasG77

You may not need to remove JSTS now. Why? Because it seems the project is full ES6 compatible and you can use rollup.js to minimized the build size for buffer in particular. You also do not use all JSTS buffer possibilities e.g http://bl.ocks.org/ThomasG77/31037a8897b4980a0818 (illustrated with OpenLayers 3)

@mourner

@ThomasG77 oh, nice to see that it switched to ES6 modules! We should consider using rollup.js short term. The main reason to switch is performance though, not bundle size, so we’re still pursuing our own implementation of polygon boolean operations.

It’s pretty straightforward converting a library to support Rollup, all we really need to do is add export & import, the rest of the ES5 code stays the same.

Rollup Examples

I don’t exactly know how we will be tackling this, but I’m willing to help out once we have a plan of attack.

We should set up a new branch rollup for this type of work.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DenisCarrierecommented, Feb 21, 2017

We can revisit this topic whenever NodeJS supports import/export.

0reactions
DenisCarrierecommented, Feb 28, 2017

Continuing discussion here: https://github.com/Turfjs/turf/issues/583

Read more comments on GitHub >

github_iconTop Results From Across the Web

Artificial Grass roll up and unroll system - Henko A&T USA
This sturdy device is very easy to use, and allows to cut precise pieces of grass of the roll. Afterwards it can be...
Read more >
Roll Up the Grass - YouTube
Rolling up grass to Baauer's remix of Rollup by Flosstradamus. ... Construction of an Artificial Turf football field in Egypt. aerodynamicex.
Read more >
Portable Turf - American Platforms
READY Turf Portable Indoor Turf is available in 20', 30', 40', & 50' lengths. ... Mobile/Portable; Easy roll-out and roll-up for storage; Fast...
Read more >
Roll up landing area - Golf Simulator Forum
Curious if anyone has a landing mat area that rolls up for storage and if so what they use..would a turf rug on...
Read more >
Surf And Turf Steak Roll Up Recipe by Tasty
Seared flank steak stuffed with sweet chunks of fresh lobster and topped with a buttery Parmesan cream sauce is undoubtedly a combination ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found