Closed Reverier-Xu closed 1 year ago
Hi, is this getting merged soon by any chance?
Hi, is this getting merged soon by any chance?
I published an alternative package isomorphic-ansi-escapes to temporarily replace this. You can use it before this pr gets merged.
Hi, thank you!
Maybe also mention in the readme that it can be used in the browser with xterm.js
You're great, thanks.
Hi, thank you for your awesome work!
I'd like to developing a fake shell based on xterm.js in frontend. I found that Vite dev server gives a warning like that:
The
TERM_PROGRAM
env variable also does not exist in browser:According to the Node | Webpack documentation, the webpack can make polyfills for different node functions, but it appears as the node.process is a "mock";
So I added some code to judge the current running environment in advance, and moved some code related to Node to conditional judgment.