MCPcopy
hub / github.com/webpack/webpack / make

Function make

test/FileSystemInfo.unittest.js:1121–1132  ·  test/FileSystemInfo.unittest.js::make
(
				/** @type {string[]} */ fileList,
				/** @type {(err?: Error | null, snapshot?: Snapshot | null) => void} */ cb
			)

Source from the content-addressed store, hash-verified

1119 class="cm">// Fixed start time so the shared-snapshot start-time guard always passes.
1120 const startTime = Date.now() + 10000;
1121 const make = (
1122 /** @type {string[]} */ fileList,
1123 /** @type {(err?: Error | null, snapshot?: Snapshot | null) => void} */ cb
1124 ) =>
1125 fsInfo.createSnapshot(
1126 startTime,
1127 fileList,
1128 [],
1129 [],
1130 { timestamp: true },
1131 cb
1132 );
1133 class="cm">// 1st + 2nd identical snapshots create a shared common snapshot.
1134 make(files, (/** @type {Error | null | undefined} */ err) => {
1135 if (err) return done(err);

Callers 1

Calls 1

createSnapshotMethod · 0.80

Tested by

no test coverage detected