title: How to create TypeScript library with Webpack without bundling
body: <p>I am working on a React component package with Typescript and NPM. I learned that the best approach is to generate individual .js and .d.ts files instead of bundling them to a single bundle.js. However, I do not know how to achieve this with Webpack. It looks like Webpack always bundles everything together. I cannot use just tsc transpiler since I have styles in LESS format and need to process them and bundle them into one single style.css. Can Webpack with ts-loader be configured in the way I described or do I need a different tooling?</p>
  <p><strong>EDIT</strong>: I have found <a href="https://github.com/webpack/webpack/issues/5866" rel="nofollow noreferrer">this thread</a> on Webpack issue board that requests exactly what I am discribing and it looks like it is not yet possible.</p>