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

feat: Utilities - Add async callback to importRemote #459

Conversation

RussellCanfield
Copy link
Contributor

@RussellCanfield RussellCanfield commented Dec 27, 2022

This PR allows the url parameter for the importRemote function to be a static string or an async callback to fetch a URL. Additionally it ports over the readme section from the utilities repo.

@alex-vukov - would you mind reviewing?

@RussellCanfield RussellCanfield changed the title Add async callback to importRemote Utilities - Add async callback to importRemote Dec 27, 2022
@alex-vukov
Copy link

Looks good. Nice addition with the url promise function option!

packages/utilities/README.md Outdated Show resolved Hide resolved
GitHub Bot and others added 8 commits December 28, 2022 12:28
…sitive file systems (module-federation#451)

* fix(typescript): compiler output folder structure
* chore: finalise
* docs: update readme
* docs: update typescript readme
* chore(typescript): cleanup - addressing comments

Co-authored-by: DV <pavan.divi@outlook.com>
Co-authored-by: Zack Jackson <zackary.l.jackson@gmail.com>
@ScriptedAlchemy
Copy link
Member

ensure running nx build locally works and the next.js applications build without issue

@RussellCanfield
Copy link
Contributor Author

ensure running nx build locally works and the next.js applications build without issue

Thanks @ScriptedAlchemy - I saw you fixed a typing issue I introduced. I was able to successfully run:

  • nx build utils
  • nx build 3000-home
  • nx build 3001-shop
  • nx build 3002-checkout

without any issues

@ScriptedAlchemy ScriptedAlchemy changed the title Utilities - Add async callback to importRemote feat: Utilities - Add async callback to importRemote Dec 29, 2022
@ScriptedAlchemy ScriptedAlchemy merged commit 508d83c into module-federation:main Dec 29, 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.

6 participants