mirror of https://github.com/webpack/webpack.git
9 lines
219 B
JavaScript
9 lines
219 B
JavaScript
|
module.exports = function supportsWebAssembly() {
|
||
|
try {
|
||
|
// eslint-disable-next-line node/no-unsupported-features/node-builtins
|
||
|
return require("worker_threads") !== "undefined";
|
||
|
} catch (e) {
|
||
|
return false;
|
||
|
}
|
||
|
};
|