forked from mapbox/tokml
-
Notifications
You must be signed in to change notification settings - Fork 12
ESM import works, but with warnings #9
Copy link
Copy link
Open
Description
When using esm (via vite) the following warning is printed:
▲ [WARNING] Converting "require" to "esm" is currently not supported [unsupported-require-call]
node_modules/@maphubs/tokml/index.js:1:10:
1 │ var esc = require('./lib/xml-escape')
╵ ~~~~~~~
I actually did import the package like documented in README:
import tokml from "@maphubs/tokml"
and it seem to work. However, I don't like warnings and would very much appreciate to use a really ESM compatible module.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels