Skip to content

ESM support in Nodejs #349

@tinoks

Description

@tinoks

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;

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions