Skip to content

Commit 8c28aaa

Browse files
committed
feat: remove util.promisify polyfill
1 parent b7a9e8f commit 8c28aaa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
/** @typedef {import("webpack/lib/Compilation.js")} WebpackCompilation */
99
'use strict';
1010

11-
// use Polyfill for util.promisify in node versions < v8
12-
const promisify = require('util.promisify');
11+
const promisify = require('util').promisify;
1312

1413
const vm = require('vm');
1514
const fs = require('fs');

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@
5757
"loader-utils": "^1.2.3",
5858
"lodash": "^4.17.20",
5959
"pretty-error": "^2.1.1",
60-
"tapable": "^1.1.3",
61-
"util.promisify": "1.0.0"
60+
"tapable": "^1.1.3"
6261
},
6362
"peerDependencies": {
6463
"webpack": "^5.0.0"

0 commit comments

Comments
 (0)