mv3-hot-reload
Advanced tools
Comparing version 0.2.3 to 0.2.4
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const utils_1 = require("./utils"); | ||
const ws = new WebSocket(`ws://localhost:${utils_1.PORT}`); | ||
if (utils_1.isDev) { | ||
const ws = new WebSocket(`ws://localhost:${utils_1.PORT}`); | ||
ws.addEventListener('message', (event) => { | ||
@@ -7,0 +7,0 @@ if (event.data === utils_1.Message.FileChange) { |
{ | ||
"name": "mv3-hot-reload", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Enable hot reloading for content script and background script in MV3.", | ||
@@ -23,5 +23,5 @@ "bin": "./out/bin/mv3-hot-reload.js", | ||
"files": [ | ||
"out", | ||
"content.js", | ||
"background.js" | ||
"./out/**", | ||
"./content.js", | ||
"./background.js" | ||
], | ||
@@ -28,0 +28,0 @@ "devDependencies": { |
6929
7
82