MCPcopy
hub / github.com/webpack/webpack / getChanges

Function getChanges

test/ChangesAndRemovals.test.js:56–63  ·  view source on GitHub ↗
(compiler)

Source from the content-addressed store, hash-verified

54 * @returns {{ removed: string[] | undefined, modified: string[] | undefined }} changes
55 */
56const getChanges = (compiler) => {
57 const modifiedFiles = compiler.modifiedFiles;
58 const removedFiles = compiler.removedFiles;
59 return {
60 removed: removedFiles && [...removedFiles],
61 modified: modifiedFiles && [...modifiedFiles]
62 };
63};
64
65/**
66 * @param {(err?: unknown) => void} callback callback

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected