mirror of https://github.com/webpack/webpack.git
9 lines
135 B
JavaScript
9 lines
135 B
JavaScript
|
module.exports = function supportsES6() {
|
||
|
try {
|
||
|
eval("class A { #field = 1 }");
|
||
|
return true;
|
||
|
} catch (e) {
|
||
|
return false;
|
||
|
}
|
||
|
};
|