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

Improve TypeScript support #263

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

cschwarz
Copy link
Contributor

@cschwarz cschwarz commented Oct 3, 2017

If I want to consume proj4js in a TypeScript Node.js environment I currently have to import it like that:

import * as proj4 from 'proj4';

If I use it with webpack in a browser:

import proj4 from 'proj4';

Which is troublesome in a library which can be used in a browser and Node.js.

Fix inspired by:
paypal/glamorous#104

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

Successfully merging this pull request may close these issues.

1 participant