After configuring webpack to compile my project using TypeScript, I encountered an issue. The project is a server-side Node project that needs to be used as a linked library by another server-side project. When I compile it with webpack, I receive a window reference error. However, when I only compile it with tsc (TypeScript Compiler), everything works perfectly.
I'm unsure if I am making a mistake in the setup process or if this is expected behavior. Could there be something about linking libraries that I am misunderstanding?