lerna VS webpack

Compare lerna vs webpack and see what are their differences.

lerna

:dragon: Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository. (by lerna)

webpack

A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff. (by webpack)
Our great sponsors
  • SurveyJS - A Non-Cloud Alternative to Google Forms that has it all.
  • Appwrite - The open-source backend cloud platform
  • Amplication - open-source Node.js backend code generator
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Mergify - Updating dependencies is time-consuming.
  • Sonar - Write Clean JavaScript Code. Always.
lerna webpack
159 310
34,936 63,530
0.5% 0.3%
9.2 9.7
4 days ago 3 days ago
TypeScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

lerna

Posts with mentions or reviews of lerna. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-06.
  • Nx 16.8 Release!!!
    5 projects | dev.to | 6 Sep 2023
    On Netlify's enterprise tier, approximately 46% of builds are monorepos, with the majority leveraging Nx and Lerna. Recognizing this trend, Netlify has focused on enhancing the setup and deployment experiences for monorepo projects. In particular they worked on an "automatic monorepo detection" feature. When you connect your project to GitHub, Netlify automatically detects if it's part of a monorepo, reads the relevant settings, and pre-configures your project. This eliminates the need for manual setup. This feature also extends to local development via the Netlify CLI.
  • Mocha/Chai with TypeScript (2023 update)
    3 projects | dev.to | 12 Aug 2023
  • Help with library implementation in a big webapp
    2 projects | /r/webdev | 26 Jun 2023
    This is the exact problem monorepos were born to solve. Not only will a monorepo let you share UI components, you'll be able to gradually add shared application logic as well (for instance, do all of your apps have their own logic for connecting to a database? you could roll that into a shared library with a monorepo). There are a lot of tools for accomplishing this in JS, but probably the most popular is lerna, which is built on top of NX (though lots of teams roll their own monorepo in nx without lerna, which IMO is a totally valid option).
  • How to Build and Publish Your First React NPM Package
    8 projects | dev.to | 9 Jun 2023
    To begin, you need to prepare your environment. A few ways to build a React package include tools like Bit, Storybook, Lerna, and TSDX. However, for this tutorial, you will use a zero-configuration bundler for tiny modules called Microbundle.
  • Utility for making sure that I'm using the right `@types/react`
    2 projects | /r/typescript | 5 Jun 2023
    If so, are you using a monorepo tool like Nx or Lerna? If not, start there and see if it solves your problem.
  • [AskJS] Is there a silver bullet for consuming Typescript libraries in a Monorepo?
    5 projects | /r/javascript | 9 May 2023
    I mean I don't know what your monorepo looks like, but for example infernojs (actually written with typescript) uses lerna, and lerna seems simpler than typescript references
  • Understanding npm Versioning
    3 projects | dev.to | 4 Apr 2023
    Tools for publishing, such as Lerna (when using the --conventional-commit flag), follow this convention when incrementing package versions and generating changelog files.
  • How to split an Angular app into micro-frontend apps
    5 projects | dev.to | 27 Mar 2023
    We could improve part of this by using something like Lerna. With the right configuration, Lerna can be really helpful.
  • Need help making sense of TRPC + express + React setup
    2 projects | /r/typescript | 27 Mar 2023
    It feels dirty to be adding express as a dependency to a react project, but I'm pretty sure TRPC requires all of client and server code to be in the same node.js project, since types are shared. I've read that you can use a tool like Lerna to share types between node projects, but it requires a build step, which would diminish the benefits of TRPC.
  • What's New With Lerna 6.5?
    4 projects | dev.to | 22 Feb 2023
    For more information, check out the PR

webpack

Posts with mentions or reviews of webpack. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-21.
  • Bun vs Node.js: Everything you need to know
    7 projects | dev.to | 21 Sep 2023
    In the Node.js ecosystem, bundling is typically handled by third-party tools rather than Node.js itself. Some of the most popular bundlers in the Node.js world include Webpack, Rollup, and Parcel, offering features like code splitting, tree shaking, and hot module replacement.
  • Modern VS Code extension development: The basics
    4 projects | dev.to | 14 Sep 2023
    The best way to accomplish this is through bundling. Microsoft recommends utilizing esbuild for bundling your VS Code extensions due to its speed and efficiency. webpack is another good alternative.
  • The Ascent of Node.js: How a runtime changed the Web
    14 projects | dev.to | 30 Aug 2023
    Growth in Tooling: Tools like Babel allowed developers to use the latest JavaScript features without waiting for Node.js support, while Webpack streamlined bundling and module loading.
  • Getting out of a rut
    4 projects | /r/webdev | 18 Aug 2023
    Study these technologies for a frontend web developer role: React, Node.js, TypeScript, JavaScript, HTML, CSS, Webpack, and Jest.
  • Add Authentication to Any Web Page in 10 Minutes
    4 projects | dev.to | 8 Aug 2023
    To keep the demo simple, we do not use a package manager such as Webpack, we will retrieve the Authgear Web SDK from Authgear's CDN using IIFE(Immediately-invoked Function Expression) bundle. We can reference a script in our HTML directly:
  • Building a JSON Parser from scratch with JS 🤯
    7 projects | dev.to | 1 Aug 2023
    A parser can have various applications in everyday life, and you probably use some parser daily. Babel, webpack, eslint, prettier, and jscodeshift. All of them, behind the scenes, run a parser that manipulates an Abstract Syntax Tree (AST) to do what you need - we'll talk about that later, don't worry.
  • A webpack.config.js for WordPress Projects
    6 projects | dev.to | 31 Jul 2023
    webpack
    6 projects | dev.to | 31 Jul 2023
    Webpack is a free and open-source module bundler based on Node.js for JavaScript. It is very "famous" in the modern javascript frameworks world, and although it was made primarily for JavaScript, it also can transform front-end assets such as CSS, and images if the corresponding loaders are included (this is the reason I will be using so many dependencies below).
  • A Complete Guideline to Creating a Modern React App With TypeScript From Scratch
    5 projects | dev.to | 8 Jul 2023
    To get webpack working, we will need to install some dependencies.
  • Building an npm package in 2023
    3 projects | dev.to | 14 Jun 2023
    Years back, one approach towards building these packages was completely dependent on the use of webpack as the go-to bundler, which also comes with a lot of plugins that can be used to bundle your JavaScript code.

What are some alternatives?

When comparing lerna and webpack you can also consider the following projects:

craco - Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.

turborepo - Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turborepo and Turbopack. [Moved to: https://github.com/vercel/turbo]

esbuild - An extremely fast bundler for the web

vite - Next generation frontend tooling. It's fast!

nx - Smart, Fast and Extensible Build System

changesets - 🦋 A way to manage your versioning and changelogs with a focus on monorepos

Rollup - Next-generation ES module bundler

parcel - The zero configuration build tool for the web. 📦🚀

react-app-rewired - Override create-react-app webpack configs without ejecting

gulp - A toolkit to automate & enhance your workflow

pnpm - Fast, disk space efficient package manager

Snowpack - ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️ [Moved to: https://github.com/FredKSchott/snowpack]