cronvel / terminal-kit

Terminal utilities for node.js
MIT License
3.08k stars 198 forks source link

Webpack 5 Incompatibility #215

Open programmersRuleTheWorld opened 1 year ago

programmersRuleTheWorld commented 1 year ago

Due to no longer supporting core Node polyfills, Webpack >= 5 does not support this library; Babel JS also has issues parsing termkit.js due to the return outside of a function on line 36. I will see what I can do to remedy this issue for other Create React App users.

cronvel commented 1 year ago

Hi @programmersRuleTheWorld

Use termkit-no-lazy-require.js as the entry point. As for Node polyfill, there is nothing I can do for this. This lib was written for Node.js, and it would be painfull to make it agnostic.