Skip to content

Instantly share code, notes, and snippets.

View georges-gomes's full-sized avatar
💭
Front-end! Front-end! Front-end!

Georges Gomes georges-gomes

💭
Front-end! Front-end! Front-end!
View GitHub Profile
@georges-gomes
georges-gomes / hmr.js
Created March 20, 2020 10:03
Hot module reload prototype
import inspector from "inspector";
const url2scriptid = new Map<string, string>();
const session = new inspector.Session();
session.connect();
setupDebugger();
function setupDebugger() {