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

Hot-reload using webpack 5 #162

Merged
merged 35 commits into from
Dec 13, 2023
Merged

Hot-reload using webpack 5 #162

merged 35 commits into from
Dec 13, 2023

Conversation

mpm-os
Copy link
Collaborator

@mpm-os mpm-os commented Oct 27, 2023

No description provided.

ViewGeneratorCore/tools/package-lock.json Outdated Show resolved Hide resolved
ViewGenerator/tools/webpack/Plugins/CommonConfiguration.ts Outdated Show resolved Hide resolved
ViewGenerator/tools/webpack/Plugins/CommonConfiguration.ts Outdated Show resolved Hide resolved
ReactViewControl/ViewModuleContainer.cs Outdated Show resolved Hide resolved
ReactViewControl/ViewModuleContainer.cs Outdated Show resolved Hide resolved
ReactViewControl.Avalonia/FileDependenciesProvider.cs Outdated Show resolved Hide resolved
ReactViewControl.Avalonia/FileDependenciesProvider.cs Outdated Show resolved Hide resolved
Sample.Avalonia/MainView/MainView.tsx Outdated Show resolved Hide resolved
Sample.Avalonia/ExtendedReactViewFactory.cs Outdated Show resolved Hide resolved
Sample.Avalonia/ExtendedReactView.cs Outdated Show resolved Hide resolved
Sample.Avalonia/WebpackDevDependenciesProvider.cs Outdated Show resolved Hide resolved
ReactViewControl/IViewModule.cs Outdated Show resolved Hide resolved
@alvesmiguel1 alvesmiguel1 changed the title Chore/hot reload fixes Hot-reload using webpack 4 Nov 13, 2023
@alvesmiguel1 alvesmiguel1 changed the title Hot-reload using webpack 4 Hot-reload using webpack 5 Nov 13, 2023
@alvesmiguel1 alvesmiguel1 marked this pull request as ready for review November 13, 2023 13:32
@alvesmiguel1
Copy link
Collaborator

Ready for review, all tests are passing

@alvesmiguel1 alvesmiguel1 force-pushed the chore/hot-reload-fixes branch from e3d9db5 to 36bf792 Compare December 5, 2023 13:59
@mpm-os
Copy link
Collaborator Author

mpm-os commented Dec 6, 2023

Ready for review, all tests are passing

cc @joaompneves

Sample.Avalonia/Sample.Avalonia.csproj Outdated Show resolved Hide resolved
Sample.Avalonia/Sample.Avalonia.csproj Outdated Show resolved Hide resolved
ReactViewControl/ViewModuleContainer.cs Outdated Show resolved Hide resolved
ReactViewControl/ViewModuleContainer.cs Outdated Show resolved Hide resolved
ReactViewControl/ViewModuleContainer.cs Outdated Show resolved Hide resolved
ReactViewControl/ReactViewRender.cs Outdated Show resolved Hide resolved
ReactViewControl/FileDependenciesProvider.cs Outdated Show resolved Hide resolved
ReactViewControl/FileDependenciesProvider.cs Outdated Show resolved Hide resolved
ReactViewControl/FileDependenciesProvider.cs Outdated Show resolved Hide resolved
@alvesmiguel1
Copy link
Collaborator

@joaompneves you might take a new look to the changes performed

@alvesmiguel1 alvesmiguel1 requested a review from tbragaf December 13, 2023 10:50
@alvesmiguel1
Copy link
Collaborator

Adding @tbragaf to the code review since Neves is on vacations

@mpm-os mpm-os merged commit 5f65832 into master Dec 13, 2023
12 checks passed
@mpm-os mpm-os deleted the chore/hot-reload-fixes branch December 13, 2023 15:38
@@ -0,0 +1,14 @@
namespace ReactViewControl;

public class ModuleDependenciesProviderFactory : IModuleDependenciesProviderFactory {
Copy link
Collaborator

Choose a reason for hiding this comment

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

public sealed class

Comment on lines +7 to +9
public static void SetInstance(IModuleDependenciesProviderFactory factory) {
Instance = factory;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove


public class ModuleDependenciesProviderFactory : IModuleDependenciesProviderFactory {

public static IModuleDependenciesProviderFactory Instance { get; private set; } = new ModuleDependenciesProviderFactory();
Copy link
Collaborator

Choose a reason for hiding this comment

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

public static IModuleDependenciesProviderFactory Instance { get; set; } = new ModuleDependenciesProviderFactory();

Instance = factory;
}

public virtual IModuleDependenciesProvider CreateModuleDependenciesProvider(string sourcePath) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

public IModuleDependenciesProvider CreateModuleDependenciesProvider(string sourcePath) {

@alvesmiguel1
Copy link
Collaborator

Hey @joaompneves , I will tackle your review in a PR soon

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.

4 participants