Leaflet / Leaflet

πŸƒ JavaScript library for mobile-friendly interactive maps πŸ‡ΊπŸ‡¦
https://leafletjs.com
BSD 2-Clause "Simplified" License
40.17k stars 5.75k forks source link

import are not working #9314

Closed xalteropsx closed 1 month ago

xalteropsx commented 1 month ago

import * from 'leaflet'; unknown: Unexpected token, expected "as" in localbrowser while in codesandbox another issue

https://codesandbox.io/p/sandbox/modest-beaver-v23ptt?file=%2Fsrc%2Findex.js%3A2%2C1

IvanSanchez commented 1 month ago

Works for me.

If you've got problems to bundle Leaflet using rollup/webpack/parcel/whatever, that's your problem, not a Leaflet issue.

IvanSanchez commented 1 month ago

Hi, and thanks for taking the time to open a bug report in Leaflet.

However, in this repository we only handle bugs in "vanilla" Leaflet. This means that we do not handle bugs which are specific to frameworks such as:

Please understand that we only have the time and energy to test Leaflet in plain web browsers.

Please try to either reproduce the bug without using any frameworks, or submit a bug to the appropriate repo.