rsnext/packages/next/compiled/is-wsl/index.js
Guy Bedford 8221c180a5
ncc 0.25.0 upgrade and fixes (#18873)
This upgrades to ncc@0.25.0 and fixes the previous bugs including:

* ncc not referenced correctly in build
* Babel type errors
* node-fetch, etag, chalk and raw-body dependencies not building with ncc - these have been "un-ncc'd" for now. As they are relatively small dependencies, this doesn't seem too much of an issue and we can follow up in the tracking ncc issue at https://github.com/vercel/ncc/issues/612.
* `yarn dev` issues

Took a lot of bisecting, but the overall diff isn't too bad here in the end.
2020-11-06 02:33:14 +00:00

1 line
No EOL
818 B
JavaScript

module.exports=(()=>{"use strict";var e={698:(e,r,t)=>{const s=t(87);const o=t(747);const _=t(1);const i=()=>{if(process.platform!=="linux"){return false}if(s.release().toLowerCase().includes("microsoft")){if(_()){return false}return true}try{return o.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!_():false}catch(e){return false}};if(process.env.__IS_WSL_TEST__){e.exports=i}else{e.exports=i()}},747:e=>{e.exports=require("fs")},1:e=>{e.exports=require("next/dist/compiled/is-docker")},87:e=>{e.exports=require("os")}};var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var s=r[t]={exports:{}};var o=true;try{e[t](s,s.exports,__webpack_require__);o=false}finally{if(o)delete r[t]}return s.exports}__webpack_require__.ab=__dirname+"/";return __webpack_require__(698)})();