Skip to content

Commit

Permalink
feat: remove util.promisify polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Jan 20, 2021
1 parent b7a9e8f commit 8c28aaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
/** @typedef {import("webpack/lib/Compilation.js")} WebpackCompilation */
'use strict';

// use Polyfill for util.promisify in node versions < v8
const promisify = require('util.promisify');
const promisify = require('util').promisify;

const vm = require('vm');
const fs = require('fs');
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
"loader-utils": "^1.2.3",
"lodash": "^4.17.20",
"pretty-error": "^2.1.1",
"tapable": "^1.1.3",
"util.promisify": "1.0.0"
"tapable": "^1.1.3"
},
"peerDependencies": {
"webpack": "^5.0.0"
Expand Down

0 comments on commit 8c28aaa

Please sign in to comment.