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

Add CJS support to connect #1142

Closed
wants to merge 30 commits into from
Closed

Add CJS support to connect #1142

wants to merge 30 commits into from

Conversation

wirednkod
Copy link
Contributor

@wirednkod wirednkod commented Jul 7, 2022

This PR adds CJS support to @substrate/connect
NOTE: This SHOULD NOT be merged prior to a new release of smoldot once #2487 is merged. The reason is that for CJS version of substrate-connect to work the CJS version of smoldot must have been released.

For releasing the following steps must be followed:
A) Release new version of smoldot (as mentioned above) once #2487 is merged
B) Release new version of connect-extension-protocol once #1143
C) Update versions of smoldot and connect-extension-protocol in this PR and merge it.

@wirednkod wirednkod requested a review from tomaka July 7, 2022 15:39
@wirednkod wirednkod marked this pull request as draft July 8, 2022 08:27
? specRaw
: (specRaw as unknown as { default: string }).default
// Typescript converts dynamic `await import()` to `require()` when commonJs is used which
// is not correct and leads to error. The following import works correctly but requires as
Copy link
Contributor

Choose a reason for hiding this comment

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

Leads to which error?

@wirednkod wirednkod closed this Jul 19, 2022
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.

2 participants