Skip to content

DuCanhGH/react-nodejs-webpack

Repository files navigation

A React app that uses React 18's new renderToPipeableStream, hydrateRoot, Webpack and SWC.

Got this set up during my free time xD

Supported: Sass, SCSS, Typescript, CSS Modules and of course, SSR.

I can't believe this thing evolved from an app created with NodeJS REPL into this...

Note:

  • HMR and JSX Runtime are already enabled.
  • Run pnpm dev in a tab, then run pnpm dev:start in another to start the dev server.
  • You have to restart the process when you change your tsconfig.json...
  • If you import files that don't have exports, for example, polyfills, make sure to add them to the sideEffects array in package.json.
  • This is just something I made for fun, please don't use in production. You should go for something like a framework like Next.js, Remix or a build tool like Vite instead.