Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESM support in Nodejs #349

Open
tinoks opened this issue Dec 26, 2024 · 0 comments
Open

ESM support in Nodejs #349

tinoks opened this issue Dec 26, 2024 · 0 comments
Assignees

Comments

@tinoks
Copy link

tinoks commented Dec 26, 2024

Feature Request

Is your feature request related to a problem? Please describe.
When running the libary on Nodejs with ESM syntax the relative import paths need explicit file extensions in ECMAScript imports.

Describe the solution you'd like
Add ".js" to the local import.
'./Util/MapboxStyleUtil' >>> './Util/MapboxStyleUtil.js'

Additional context
Loadash is not ESM so the syntax needed is also something like
import lodash from 'lodash'; const { invert } = lodash;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants