You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
When bundling, no problem occurs. One of the key features of vite is, however, to have a 'dev mode', which doesn't need bundling because modern browsers already support esm and so can load the modules one by one, which makes it way faster than bundling each change.
When using esm (via vite) the following warning is printed:
I actually did import the package like documented in README:
and it seem to work. However, I don't like warnings and would very much appreciate to use a really ESM compatible module.
The text was updated successfully, but these errors were encountered: