Skip to content

Commit b06dccd

Browse files
committed
Replace all pty definitions
1 parent 67773d8 commit b06dccd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/webpack.general.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ module.exports = (options = {}) => ({
7676
}],
7777
},
7878
}, {
79-
test: /node\-pty\-prebuilt(\\|\/)lib(\\|\/)windowsPtyAgent\.js/,
79+
test: /node\-pty\-prebuilt(\\|\/)lib(\\|\/).*\.js/,
8080
loader: "string-replace-loader",
8181
options: {
8282
multiple: [{
83-
search: "var pty = .*;",
83+
search: "var pty = .*pty\.node.*;",
8484
replace: "var pty = __non_webpack_require__(global.NODEPTY_LOCATION);",
8585
flags: "g",
8686
}],

0 commit comments

Comments
 (0)