mirror of https://github.com/webpack/webpack.git
test: enable
This commit is contained in:
parent
87f648ebf0
commit
0b51fad980
|
@ -1 +0,0 @@
|
|||
module.exports = config => !config.minimize;
|
|
@ -1 +0,0 @@
|
|||
module.exports = config => !config.minimize;
|
|
@ -1,7 +1,4 @@
|
|||
module.exports = function (config) {
|
||||
// terser doesn't support static {}
|
||||
if (config.mode === "production") return false;
|
||||
|
||||
try {
|
||||
eval("class A { static {} }");
|
||||
return true;
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
const supportsOptionalCatchBinding = require("../../../helpers/supportsOptionalCatchBinding");
|
||||
|
||||
module.exports = config => {
|
||||
// XXX: Disable this test if Terser is used because it does not support ES 2019
|
||||
if (config.mode === "production") {
|
||||
return false;
|
||||
}
|
||||
return supportsOptionalCatchBinding();
|
||||
};
|
||||
module.exports = () => supportsOptionalCatchBinding();
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining");
|
||||
|
||||
module.exports = config => !config.minimize && supportsOptionalChaining();
|
||||
module.exports = config => supportsOptionalChaining();
|
||||
|
|
|
@ -3,8 +3,7 @@ const supportsES6 = require("../../../helpers/supportsES6");
|
|||
const supportsIteratorDestructuring = require("../../../helpers/supportsIteratorDestructuring");
|
||||
const supportsObjectDestructuring = require("../../../helpers/supportsObjectDestructuring");
|
||||
|
||||
module.exports = config =>
|
||||
!config.minimize &&
|
||||
module.exports = () =>
|
||||
supportsES6() &&
|
||||
supportDefaultAssignment() &&
|
||||
supportsObjectDestructuring() &&
|
||||
|
|
Loading…
Reference in New Issue