Skip to content

Releases: preactjs/wmr

wmr@3.1.0

24 Jun 18:11
7c8f159
Compare
Choose a tag to compare

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

wmr 3.0.2

20 Jun 21:20
6d17dc8
Compare
Choose a tag to compare

Patch Changes

wmr 3.0.1

18 Jun 22:43
e96d156
Compare
Choose a tag to compare

Patch Changes

wmr 3.0.0

18 Jun 07:21
690a784
Compare
Choose a tag to compare

Major Changes

  • 22150b3 #680 Thanks @marvinhagemeister! - Fix swapped usage of cwd vs root. Now, cwd always refers to the current working directory and root 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 or options.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

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

preact-iso 2.0.3

18 Jun 07:22
690a784
Compare
Choose a tag to compare

Patch Changes

create-wmr 0.3.7

18 Jun 07:23
690a784
Compare
Choose a tag to compare

Patch Changes

@wmrjs/directory-import 0.3.0

18 Jun 07:18
690a784
Compare
Choose a tag to compare

Minor Changes

wmr 2.2.2

02 Jun 22:16
1883bb3
Compare
Choose a tag to compare

Patch Changes

wmr 2.2.1

02 Jun 19:44
bac5e5b
Compare
Choose a tag to compare

Patch Changes

create-wmr 0.3.6

02 Jun 22:17
1883bb3
Compare
Choose a tag to compare

Patch Changes