In my package.json
i don't have "type": "module"
declared, so i assume Webpack is building my React app as CJS - but does it matter? How could setting up your project as ESM benefit you (if at all) in the context if building a React web app?
It doesn't matter, Webpack transpiles the code for web environments by default using the target property. In web environments, Webpack can generate separate files, but it doesn’t require CommonJS (CJS) or ECMAScript Modules (ESM) for module resolution because the browser can load them directly through <script>
tags.