Closed huang-jue closed 6 months ago
When i use import "@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.min.js",this way, the error above will not be reported.But he told me add Controls is undefined.
Release notes:
This is only relevant for projects using very old versions of babel/webpack loaders
This version introduces new build tools in the library build toolchain. More specifically we have swapped webpack for eslint. This has improved our build speeds and made the build pipeline simpler and easier to maintain going forward. However the move to esbuild has also caused the library build assets (minified js files) to be compiled using a more modern version of ECMAScript. The current build files now use the optional chaining ?. syntax and this can cause issues with projects using older versions of webpack/babel or similar loaders.
If you face issues with upgrading to version v2.16.0 we suggest that you upgrade your own loaders and build toolchain to a version compatible with modern ECMAScript syntax.
Duplicate of #1458
This is an old project, and if I upgrade, it means I have to redevelop many things
When I added @geoman-io/leaflet-geoman-free@2.16.0, he reported an error: