theme-scripts icon indicating copy to clipboard operation
theme-scripts copied to clipboard

Add Hot Module Replacement to section.js

Open t-kelly opened this issue 6 years ago • 0 comments

Hot Module Replacement requires JS to formatted in a way that it can clean up after itself (reset any side-effects) without a full page refresh. section.js is already formatted perfectly to handle situations like this, as they already happen within the theme editor.

Let's make section.js compatible with Webpack Hot Module Replacement so that we can view JS changes without a page refresh.

t-kelly avatar Mar 23 '18 20:03 t-kelly