preactjs/wmr

JavaScriptwmr.dev

👩‍🚀 The tiny all-in-one development tool for modern web apps.

build-toolesmodulespreactrollup
Crecimiento de estrellas
Estrellas
4.9k
Forks
105
Crecimiento semanal
+-1
Issues
66
3k3.5k4k4.5k
dic 2020nov 2022oct 2024sept 2026
Artefactosnpm
README

WMR

[!WARNING] WMR is unfortunately no longer maintained. In its place, we'd recommend Vite with @preactjs/preset-vite. It offers many of the same features (like the prerendering API) but is much more robust and up to date. Thanks to all contributors and users over the years!

wmr logo

npm install size OpenCollective Backers OpenCollective Sponsors

The tiny all-in-one development tool for modern web apps, in a single 2mb file with no dependencies.

All the features you'd expect and more, from development to production:

🔨   No entry points or pages to configure - just HTML files with <script type=module>
🦦   Safely import "packages" from npm without installation
📦   Smart bundling and caching for npm dependencies
↻   Hot reloading for modules, Preact components and CSS
⚡️   Lightning-fast JSX support that you can debug in the browser
💄   Import CSS files and CSS Modules (*.module.css)
🔩   Out-of-the-box support for TypeScript
📂   Static file serving with hot reloading of CSS and images
🗜   Highly optimized Rollup-based production output (wmr build)
📑   Crawls and pre-renders your app's pages to static HTML at build time
🏎   Built-in HTTP2 in dev and prod (wmr serve --http2)
🔧   Supports Rollup plugins, even in development where Rollup isn't used

Create a new project in seconds using create-wmr:

npm init wmr your-project-name

or

yarn create wmr your-project-name

illustration of installation to build for wmr

💁 If you'd like ESLint to be set up for you, add --eslint to the command. Note: this will use 150mb of disk space.

Check out the docs to learn more

Packages

Package Description Version
wmr Tiny all-in-one development tool for modern web apps wmr npm
create-wmr Create a new WMR project in seconds create-wmr npm
@wmrjs/directory-import Import a directory's files as an Array @wmrjs/directory-import npm
@wmrjs/nomodule Generate legacy fallback bundles for older browsers @wmrjs/nomodule npm
@wmrjs/service-worker Bundle service workers @wmrjs/service-worker npm
preact-iso Optimal code-splitting, hydration and routing for Preact preact-iso npm

Contributing

git clone git@github.com:preactjs/wmr.git
cd wmr
yarn

# run the demo (no compile)
yarn demo serve

# build and serve the demo for prod
yarn demo build:prod && yarn demo serve:prod

# build the single-file CLI:
yarn workspace wmr build

Adding a changeset

Don't forget to also include a changeset, by running this command at the root of the project:

yarn changeset

This will take you through a process of selecting the changed packages, the version updates and a description of the change. Afterwards, changesets, will generate a .md file inside a .changeset directory. Please commit that file as well.

After all that, you are good to go. :+1:

Repositorios relacionados
vitejs/vite

Next generation frontend tooling. It's fast!

TypeScriptnpmlibraryMIT Licensevitehmr
vite.dev
82.8k8.7k
webpack/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.

JavaScriptnpmlibraryMIT Licensewebpackjavascript
webpack.js.org
66k9.6k
parcel-bundler/parcel

The zero configuration build tool for the web. 📦🚀

JavaScriptnpmlibraryMIT Licensemodule-bundlerbuild-tool
parceljs.org
44k2.3k
vercel/turborepo

Build system optimized for JavaScript and TypeScript, written in Rust

Rustcrates.iolibraryMIT Licensemonorepojavascript
turborepo.dev
31.1k2.4k
nrwl/nx

The Monorepo Platform that amplifies both developers and AI agents. Nx optimizes your builds, scales your CI, and fixes failed PRs automatically. Ship in half the time.

TypeScriptnpmcliMIT Licensenxangular
nx.dev
29.3k3k
gradle/gradle

Adaptable, fast automation for all

GroovylibraryApache License 2.0gradlebuild-tool
gradle.org
18.8k5.4k
go-task/task

A fast, cross-platform build tool inspired by Make, designed for modern workflows.

GoGo ModuleslibraryMIT Licensegomake
taskfile.dev
16.1k903
web-infra-dev/rspack

Fast Rust-based bundler for the web with a modernized webpack API 🦀

Rustcrates.iolibraryMIT Licensebundlerjavascript
rspack.rs
12.9k845
jetify-com/devbox

Instant, easy, and predictable development environments

GoGo ModuleslibraryApache License 2.0devboxdevelopment-environment
jetify.com/devbox/
12.3k357
xmake-io/xmake

🔥 A cross-platform build utility based on Lua

LualibraryApache License 2.0luabuild-tool
xmake.io
12.2k949
earthly/earthly

Super simple build framework with fast, repeatable builds and an instantly familiar syntax – like Dockerfile and Makefile had a baby.

GoGo ModuleslibraryMozilla Public License 2.0build-automationbuild
earthly.dev
12k457
wxt-dev/wxt

⚡ Next-gen Web Extension Framework

TypeScriptnpmlibraryMIT Licensebuild-tooldev-server
wxt.dev
10.5k560