Skip to content

Commit

Permalink
Merge pull request #14543 from webpack/bugfix/build-http-create-lockfile
Browse files Browse the repository at this point in the history
fix initial creation of lockfile
  • Loading branch information
sokra committed Oct 20, 2021
2 parents 8f2e9dc + 13b7da6 commit 91578b8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,6 +4,7 @@
/test/fixtures/temp-*
/test/temp
/test/ChangesAndRemovals
/test/**/dev-defaults.webpack.lock
/benchmark/js
/benchmark/fixtures
/examples/**/dist
Expand Down
1 change: 1 addition & 0 deletions lib/schemes/HttpUriPlugin.js
Expand Up @@ -1044,6 +1044,7 @@ Run build with un-frozen lockfile to automatically fix lockfile.`
inProgressWrite.push(runWrite);
} else {
inProgressWrite = [];
runWrite();
}
}
);
Expand Down
18 changes: 0 additions & 18 deletions test/configCases/asset-modules/http-url/dev-defaults.webpack.lock

This file was deleted.

15 changes: 15 additions & 0 deletions test/configCases/asset-modules/http-url/test.config.js
@@ -0,0 +1,15 @@
const fs = require("fs");
const path = require("path");

module.exports = {
beforeExecute() {
try {
fs.unlinkSync(path.join(__dirname, "dev-defaults.webpack.lock"));
} catch (e) {}
},
afterExecute() {
try {
fs.unlinkSync(path.join(__dirname, "dev-defaults.webpack.lock"));
} catch (e) {}
}
};

0 comments on commit 91578b8

Please sign in to comment.