Skip to content

[AT] - update readme with ES Modules instructions #159

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

Closed
wants to merge 1 commit into from

Conversation

andrew-c-tran
Copy link

@andrew-c-tran andrew-c-tran commented Jul 25, 2019

Updated Readme.md to contain instructions on how to use package with ES module importer. Addresses issue #153

Verified in Babel 7.4

@andrew-c-tran
Copy link
Author

Thanks for approving @IDisposable . I don't have write access to this repo so you'll have to merge it :)

@@ -13,6 +13,13 @@ Basic usage

This package is available as *humanize-duration* on [npm](https://www.npmjs.com/package/humanize-duration) and Bower. You can also include the JavaScript file in the browser.

With `ES Modules`:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this in quotes and not simply "ECMAScript modules" as text?

With `ES Modules`:

```js
import * as humanizeDuration from 'humanize-duration';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

humanize-duration doesn't actually use ES exports...does this kind of thing work on all build setups?

@EvanHahn
Copy link
Owner

EvanHahn commented Sep 2, 2019

@andrew-c-tran Bumping this. Have you had a chance to look at my comments?

@EvanHahn
Copy link
Owner

Closing because I haven’t heard back in months. Let me know if that’s wrong and I’m happy to reopen!

@EvanHahn EvanHahn closed this Oct 22, 2019
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.

3 participants