mirror of https://git.tuxpa.in/a/code-server.git
Replace all pty definitions
This commit is contained in:
parent
43048c6d12
commit
8327da8d00
|
@ -76,11 +76,11 @@ module.exports = (options = {}) => ({
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
test: /node\-pty\-prebuilt(\\|\/)lib(\\|\/)windowsPtyAgent\.js/,
|
test: /node\-pty\-prebuilt(\\|\/)lib(\\|\/).*\.js/,
|
||||||
loader: "string-replace-loader",
|
loader: "string-replace-loader",
|
||||||
options: {
|
options: {
|
||||||
multiple: [{
|
multiple: [{
|
||||||
search: "var pty = .*;",
|
search: "var pty = .*pty\.node.*;",
|
||||||
replace: "var pty = __non_webpack_require__(global.NODEPTY_LOCATION);",
|
replace: "var pty = __non_webpack_require__(global.NODEPTY_LOCATION);",
|
||||||
flags: "g",
|
flags: "g",
|
||||||
}],
|
}],
|
||||||
|
|
Loading…
Reference in New Issue