manuelbieh / geolib

Zero dependency library to provide some basic geo functions
MIT License
4.21k stars 341 forks source link

[Angular] Error depends on 'geolib'. CommonJS or AMD dependencies can cause optimization bailouts. #286

Open indraraj26 opened 2 years ago

indraraj26 commented 2 years ago

import { isPointWithinRadius, isPointInPolygon } from 'geolib';

This is how I am using in one of my service.ts and having warning in ng serve and crashing on ng build --prod.

Angular Version: 13