Replace all pty definitions

This commit is contained in:
Kyle Carberry 2019-02-28 15:41:43 -06:00
parent 43048c6d12
commit 8327da8d00
No known key found for this signature in database
GPG Key ID: A0409BDB6B0B3EDB
1 changed files with 2 additions and 2 deletions

View File

@ -76,11 +76,11 @@ module.exports = (options = {}) => ({
}],
},
}, {
test: /node\-pty\-prebuilt(\\|\/)lib(\\|\/)windowsPtyAgent\.js/,
test: /node\-pty\-prebuilt(\\|\/)lib(\\|\/).*\.js/,
loader: "string-replace-loader",
options: {
multiple: [{
search: "var pty = .*;",
search: "var pty = .*pty\.node.*;",
replace: "var pty = __non_webpack_require__(global.NODEPTY_LOCATION);",
flags: "g",
}],