From 8327da8d00ed85e68c078051fda2a4037920a74a Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Thu, 28 Feb 2019 15:41:43 -0600 Subject: [PATCH] Replace all pty definitions --- scripts/webpack.general.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/webpack.general.config.js b/scripts/webpack.general.config.js index 9fcafa2f2..0a6cffdbb 100644 --- a/scripts/webpack.general.config.js +++ b/scripts/webpack.general.config.js @@ -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", }],