Example of webpack configuration that divides a node module into multiple modules according to rules.
# with Yarn 2+
$ yarn
$ yarn start:dev
Go To http://localhost:9000
This project's dependency is managed by yarn2. If you don't have yarn 2 configured on your computer, please refer to this document to configure it.
I refer to webpack.config.ts of Next.js.