Skip to content

Releases: preactjs/wmr

directory-plugin 0.1.0

22 Feb 22:34
2c4e4c5
Compare
Choose a tag to compare

Minor Changes

1.2.0

18 Feb 22:50
Compare
Choose a tag to compare

Features & Improvements

Bugfixes

  • Close Rollup bundle before passing output (#302, thanks @intrnl)
  • Fix wrong output for self closed non-root jsx nodes (#340, thanks @marvinhagemeister)
  • Insert user-defined plugins before core plugins (#290, thanks @rschristian)
  • Tighten up ESM_KEYWORDS (#296, thanks @developit)
  • Fix HMR not working with CSS on Windows (#332, thanks @matias4205)
  • Fix assets bad url on dev mode Windows (#336, thanks @matias4205)
  • preact-iso Add peerDeps & correct module type (#323, thanks @rschristian)
  • Fix brittle regex in optimize-graph-plugin (#328, thanks @jbt)
  • Fix dotted component identifiers in production code (#329, thanks @developit)
  • Increase HTTP/1 Keep-Alive timeout from 5s to 60s (#311, thanks @developit)
  • Fix wmr serve not supporting middleware option (#313, thanks @developit)
  • Fix multiple dashes in css modules (#312, thanks @madmanwithabike)
  • Fix --no-compress option (#310, thanks @developit)
  • Fix Filter the link tags based on rel and href (#288, thanks @cristianbote)
  • Fix case where a stylesheet wouldn't reload (#293, thanks @JoviDeCroock)

Maintenance

1.1.0

03 Jan 03:26
2024c9b
Compare
Choose a tag to compare

Features & Improvements

TypeScript

  • Fix ambient typing of *.module.css files (#200, thanks @lukeed)
  • Hoist JSX namespace to be global by default (#261, thanks @developit)

Bugfixes

preact-iso v0.3.0

03 Jan 03:24
8866f00
Compare
Choose a tag to compare

create-wmr (npm init wmr) v0.1.3

03 Jan 03:19
a830cc7
Compare
Choose a tag to compare

It's Alive!

02 Dec 20:39
4478690
Compare
Choose a tag to compare
  • Copy unreferenced assets to the output directory when building for production (#195)
  • Add the new create-wmr package that handles npm init wmr foo (#188)
  • A new plugin @wmr-plugins/nomodule that generates and serves legacy bundles to older browsers (#196)
  • Add a new --public CLI argument + config option for changing ./public to some other name (#192)
  • Show a friendly warning message when scripts are missing type="module" (#191)
  • Add ambient type declarations for import.meta.hot and CSS Modules (#187)
  • Silence "experimental modules" warning during prerendering (#193)
  • Fix a few cases where protocol-relative URLs weren't being handled correctly (#185)

0.0.12

18 Nov 16:02
6733f6a
Compare
Choose a tag to compare

Features

CSS graph optimization: no more FOUC! (#176)

CSS files that are tiny, dependent or co-dependent now get merged based on heuristics. Where prod output could previously rely on many small (100b!) CSS files during page load, now most cases result in only a single CSS file. CSS is still code-splitted when it isn't needed for the initial page load, unless the resulting stylesheet would be so small that doing so would harm performance.

Configuration: custom plugins! (#179)

We now support a wmr.config.js configuration file. Exporting a function from this file lets you inject Rollup plugins and Polka HTTP middleware, or customize options (see types) asynchronously before WMR starts up:

// Optionally async function. Named export functions for each mode (start, build, serve) also supported.
export default ({ mode, prod, middleware, plugins, output }) => {
  if (mode === 'start') middleware.push(somePolkaMiddleware());
  if (prod) plugins.push(myCustomMinifier());
};

Bugfixes

  • Fix internal imports within npm packages being incorrectly routed through package export mappings (#139)
  • Fix duplicate JSON plugin processing in production builds (#177)

0.0.11

18 Nov 15:48
013bd25
Compare
Choose a tag to compare
  • New --prerender option: renders your app to static HTML at build time (#171)
  • Support 200.html for specifying custom SPA routing HTML (#84)
  • Add wmr serve command: a zero-config production server with H/2 (#157)
  • Add support for the "module" export map key (#172)
  • Add support for loading .env files (#16)
  • Fix CommonJS inconsistency between dev and prod builds (#156)
  • Fixed JS serialization issues for dynamically replaced AST trees (#145 #152 #154)
  • Bugfix: corrected multiple bugs in the CSS parser (#163)
  • Bugfix: serve all files with a utf-8 charset (#173)
  • Bugfix: correct content-length for compressed responses (#159)
  • Bugfix for dotted JSX components (#164)
  • Colorized output (#160)