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) {
|
module.exports = function (config) {
|
||||||
// terser doesn't support static {}
|
|
||||||
if (config.mode === "production") return false;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
eval("class A { static {} }");
|
eval("class A { static {} }");
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
const supportsOptionalCatchBinding = require("../../../helpers/supportsOptionalCatchBinding");
|
const supportsOptionalCatchBinding = require("../../../helpers/supportsOptionalCatchBinding");
|
||||||
|
|
||||||
module.exports = config => {
|
module.exports = () => supportsOptionalCatchBinding();
|
||||||
// XXX: Disable this test if Terser is used because it does not support ES 2019
|
|
||||||
if (config.mode === "production") {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return supportsOptionalCatchBinding();
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining");
|
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 supportsIteratorDestructuring = require("../../../helpers/supportsIteratorDestructuring");
|
||||||
const supportsObjectDestructuring = require("../../../helpers/supportsObjectDestructuring");
|
const supportsObjectDestructuring = require("../../../helpers/supportsObjectDestructuring");
|
||||||
|
|
||||||
module.exports = config =>
|
module.exports = () =>
|
||||||
!config.minimize &&
|
|
||||||
supportsES6() &&
|
supportsES6() &&
|
||||||
supportDefaultAssignment() &&
|
supportDefaultAssignment() &&
|
||||||
supportsObjectDestructuring() &&
|
supportsObjectDestructuring() &&
|
||||||
|
|
Loading…
Reference in New Issue