From 8f262106effd682ecbbe618b480e12fb4d0b3efc Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Mon, 28 Oct 2024 12:52:55 +0100 Subject: [PATCH] Fix HMR in 18a47 --- .../{{ cookiecutter.__folder_name }}/package.json | 6 ++++++ .../_project_files/package.json | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/frontend_addon/{{ cookiecutter.__folder_name }}/package.json b/frontend_addon/{{ cookiecutter.__folder_name }}/package.json index 1bc72b8..4178d25 100644 --- a/frontend_addon/{{ cookiecutter.__folder_name }}/package.json +++ b/frontend_addon/{{ cookiecutter.__folder_name }}/package.json @@ -40,5 +40,11 @@ "devDependencies": { "mrs-developer": "{{ cookiecutter.__version_mrs_developer }}" }, + "pnpm": { + "overrides": { + "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15", + "react-refresh": "^0.14.2" + } + }, "packageManager": "pnpm@{{ cookiecutter.__version_pnpm }}" } diff --git a/sub/frontend_project/{{ cookiecutter.__folder_name }}/_project_files/package.json b/sub/frontend_project/{{ cookiecutter.__folder_name }}/_project_files/package.json index 610e7c1..d0624d3 100644 --- a/sub/frontend_project/{{ cookiecutter.__folder_name }}/_project_files/package.json +++ b/sub/frontend_project/{{ cookiecutter.__folder_name }}/_project_files/package.json @@ -38,5 +38,11 @@ "devDependencies": { "mrs-developer": "^2.2.0" }, + "pnpm": { + "overrides": { + "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15", + "react-refresh": "^0.14.2" + } + }, "packageManager": "pnpm@9.1.1" }