Releases: preactjs/wmr
[email protected]
Minor Changes
-
22f3ac9
#630 Thanks @marvinhagemeister! - Add support for import assertions syntax that is very likely to come in an upcoming version of JavaScript. Import Assertions are a native way to load non-js files in ESM environments.import foo from './foo.json' assert { type: 'json' };
At the time of this writing this is only supported in Chrome, so we'll downtranspile import assertions to leverage loaders. This allows the code to run all browsers WMR supports.
Patch Changes
f12ffe3
#701 Thanks @marvinhagemeister! - Fix sass crashing when an imported file is not found
wmr 3.0.2
Patch Changes
-
94c9a58
#696 Thanks @marvinhagemeister! - Fix missing terminal colors in CI environments -
5ba6edc
#698 Thanks @marvinhagemeister! - Fix crash on Windows due to invalid cache file paths
wmr 3.0.1
Patch Changes
b134646
#694 Thanks @marvinhagemeister! - Fix potential issue during development, where different CSS assets would share the same URL
wmr 3.0.0
Major Changes
-
22150b3
#680 Thanks @marvinhagemeister! - Fix swapped usage ofcwd
vsroot
. Now,cwd
always refers to the current working directory androot
the web root to serve from (= usually cwd+/public).This change was done to reduce the amount of extra knowledge to be aware of when using WMR. It was a frequent source of confusion.
Before (2.x):
options.cwd -> /path/to/my-project/public options.root -> /path/to/my-project/
After (3.x):
options.cwd -> /path/to/my-project/ options.root -> /path/to/my-project/public
Migration guide:
If you used
options.cwd
oroptions.root
in one of your plugins you need to swap them. -
0f91e7f
#684 Thanks @marvinhagemeister! - Completely rewrite our stylesheet pipeline. All CSS files can now be intercepted from plugins allowing us to leverage the same pipeline that we use for production during development.- Fixes
.scss/.sass
not compiled on watch - Fixes nested
.scss/.sass
files not compiled with sass - Fixes
.scss/.sass
files not compiled when directly referenced in HTML - Fixes asset caching overwriting each others entries
- Adds groundwork for intercepting urls inside css for aliasing or resolving from
node_modules
- Fixes
Minor Changes
97c3ab5
#685 Thanks @marvinhagemeister! - Sass: Include imported urls and file path into plugin resolution. This allows sass to load aliased files for example.
Patch Changes
-
8c3993f
#676 Thanks @marvinhagemeister! - Ensure that built-in plugins only work on files they can handle -
cdf5179
#690 Thanks @marvinhagemeister! - Fix nested CSS HMR not working -
ea6606f
#691 Thanks @marvinhagemeister! - Fix CLI environment variables overwritten by.env
files
preact-iso 2.0.3
Patch Changes
62840d8
#665 Thanks @rschristian! - Removing unused imports (and associated console warnings)
create-wmr 0.3.7
Patch Changes
5e57376
#683 Thanks @developit! - Fix preload warning in default template
@wmrjs/directory-import 0.3.0
Minor Changes
22150b3
#680 Thanks @marvinhagemeister! - Update for WMR3.x
which corrects the swapped usage ofoptions.cwd
vsoptions.root
.
wmr 2.2.2
Patch Changes
8c05814
#658 Thanks @rschristian! - Removes debug log
wmr 2.2.1
Patch Changes
-
95da598
#643 Thanks @developit! - Never copywmr.config.js
to output directory -
6a9869f
#656 Thanks @marvinhagemeister! - Fix unable to code generate JSXMemberExpression and JSXEmptyExpression nodes -
7345e89
#648 Thanks @lukeed! - fix(compression): ensure all responses write headers -
df93873
#635 Thanks @marvinhagemeister! - Fix./
not preserved during development forresolveId()
plugin hook -
c03abcc
#650 Thanks @marvinhagemeister! - Prioritize extension resolution for extensionless imports. -
ccdc04d
#641 Thanks @developit! - Print warning when CSS Module mappings contain invalid identifiers -
fe4b9cb
#649 Thanks @leader22! - Do not inject<link rel=stylesheet>
when there is no stylesheet.
create-wmr 0.3.6
Patch Changes
eac7994
#661 Thanks @rschristian! - Marks newly created apps as private