Skip to content

Commit 2057928

Browse files
committed
refactor: Remove module.hot.accept()
1 parent 2f43a0a commit 2057928

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

guides/plugins/plugins/storefront/override-existing-javascript.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ import MyCookiePermission from './my-cookie-permission/my-cookie-permission.plug
9292

9393
const PluginManager = window.PluginManager;
9494
PluginManager.override('CookiePermission', MyCookiePermission, '[data-cookie-permission]');
95-
96-
// Necessary for the webpack hot module reloading server
97-
if (module.hot) {
98-
module.hot.accept();
99-
}
10095
```
10196

10297
### Testing your changes

guides/plugins/plugins/storefront/reacting-to-cookie-consent-changes.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ Just like with every custom JavaScript file, you have to load this one as well i
4747

4848
```javascript
4949
import './reacting-cookie/reacting-cookie'
50-
51-
// Necessary for the webpack hot module reloading server
52-
if (module.hot) {
53-
module.hot.accept();
54-
}
5550
```
5651

5752
{% endcode %}

0 commit comments

Comments
 (0)