MCPcopy
hub / github.com/webpack/webpack / update

Function update

test/hotCases/update.esm.js:1–16  ·  view source on GitHub ↗
(done, options, callback)

Source from the content-addressed store, hash-verified

1export default function update(done, options, callback) {
2 return function (err, stats) {
3 if (err) return done(err);
4 import.meta.webpackHot
5 .check(options || true)
6 .then(updatedModules => {
7 if (!updatedModules) {
8 return done(new Error("No update available"));
9 }
10 if (callback) callback(stats);
11 })
12 .catch(err => {
13 done(err);
14 });
15 };
16};

Callers

nothing calls this directly

Calls 2

checkMethod · 0.65
callbackFunction · 0.50

Tested by

no test coverage detected