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 base url he110 #15

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Conversation

He110te4m
Copy link
Contributor

@He110te4m He110te4m commented Jul 17, 2023

close #14

The problem has two parts:

  1. When base is configured, the address of remoteEntry.json does not match. The reason is that this line of code splices the address directly, but Vite's base doesn't affect the path in dist, so the urls don't match.
  2. baseUrl is not supported when external imports are replaced in the plugin. The reason is that the replacement rule only matches /@id/${libraryName}. When baseUrl is configured, the import path is: /${baseUrl}/@id/${libraryName}. So we need to modify the rule to match the quotes directly.

@He110te4m He110te4m changed the title Feat base url he110 WIP: Feat base url he110 Jul 17, 2023
@He110te4m
Copy link
Contributor Author

Sorry, there may be something wrong with this code.

@He110te4m
Copy link
Contributor Author

This change now completely overrides my usage scenario.

@He110te4m He110te4m changed the title WIP: Feat base url he110 Feat base url he110 Jul 17, 2023
@gioboa gioboa merged commit 6791cc6 into module-federation:main Aug 9, 2023
@He110te4m He110te4m deleted the feat-base-url-he110 branch August 9, 2023 07:49
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.

When vite configures base, the plugin does not work properly.
2 participants