This Webpack-based template is designed to streamline the setup process for developers looking to create a library configured for both ESNext and CommonJS modules. It's an ideal starting point for building reusable JavaScript libraries with modern syntax and module support, catering to diverse development environments.
- Pre-configured Webpack setup for ESNext and CommonJS output.
- TypeScript support with separate configurations for different module types.
- Clear directory structure with dedicated
dist
folders for each module type. - Sample
README.md
andLICENSE
included.
To get started:
- Clone the template repository.
- Install dependencies with
yarn install
. - Run the build scripts using
yarn build
.
This template is designed to be flexible, allowing you to tailor it further to your specific library requirements.
Contributions to improve the template are welcome. Please ensure to follow the existing coding style and add unit tests for any new or changed functionality.
Released under the ISC License. See the LICENSE
file for details.
Feel free to use this template to kickstart your library development with the latest Webpack features and best practices for module creation.