Skip to content

Update README to use default export and destructure on default export.#555

Open
aljones15 wants to merge 1 commit intomainfrom
update-es6-import-examples-readme
Open

Update README to use default export and destructure on default export.#555
aljones15 wants to merge 1 commit intomainfrom
update-es6-import-examples-readme

Conversation

@aljones15
Copy link
Contributor

Updates the README so the es6 import examples work.

@aljones15 aljones15 self-assigned this Jun 19, 2024
Copy link
Member

@dlongley dlongley left a comment

Choose a reason for hiding this comment

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

@davidlehn, is this going to change right back in the imminent next release? If so, let's not make this change, otherwise, +1.

@BigBlueHat
Copy link
Contributor

@davidlehn the CommonJS lines of code in this PR are wrong, but the need is real since import * as jsonld from 'jsonld'; fails. I'd like to avoid more rocks in shoes.

I know you have preferences about no CJS stuff in the readme, but would you support a fix for these lines if I keep this using ESM?

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