Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix initial creation of lockfile #14543

Merged
merged 1 commit into from Oct 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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) {}
}
};