max-mapper / max-mapper/simplify-geojson

Support ES6 modules

Open
#10 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
183
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Modules don't allow exporting the whole module as a function in ES6:

https://github.com/Microsoft/TypeScript/issues/5867#issuecomment-161119689

My suggestion for a fix is to export the function from the module instead of exporting the function as the module.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests; start by reviewing the package's current module export entry point and the linked TypeScript discussion. Done means the module can be consumed as a function through ES6 module syntax, with behavior covered by the project's existing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.