npm @rspack/core 1.0.0-beta.1
v1.0.0-beta.1

latest releases: 1.1.0, 1.1.0-beta.0, 1.0.14...
3 months ago

Highlights 💡

Import Attributes

Rspack now supports Import Attributes by defaults:

import json from "./foo.json" with { type: "json" };

import("foo.json", { with: { type: "json" } });

PR: #7333

Layers

Rspack now supports module and chunk layers. This feature can be used by frameworks like Rsnext (The Rspack-based Next.js) to implement React Server Components.

module.exports = {
  // ...
  module: {
    rules: [
      {
        test: /module-layer-change/,
        layer: 'layer',
      },
    ],
  },
};

PR: #7330

What's Changed

Performance Improvements ⚡

Exciting New Features 🎉

  • feat: experiments layers by @ahabhgk in #7330
  • feat(css-extract): avoid reloading all CSS when hot load by @shulaoda in #7314
  • feat(modern-module): force concaten single module by @fi3ework in #7317
  • feat: better diagnostic report for harmony dependency by @shulaoda in #7337
  • feat: support parser.importMeta and output.importMetaName by @xc2 in #7231

Bug Fixes 🐞

  • fix: lightningcss-loader targets array not work as expected by @chenjiahan in #7331
  • fix(rspack_plugin_asset): repect user environment config when inlining svg by @SoonIter in #7347
  • fix: rspack errors don't support the correct location by @shulaoda in #7328
  • fix: add runtime condition for harmony reexport checked by @ahabhgk in #7353
  • fix: remove nonsensical intersection types by @colinaaa in #7360
  • fix: builtin:lightningcss-loader shuold keep loader query by @JSerFeng in #7363

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v1.0.0-beta.0...v1.0.0-beta.1

Don't miss a new core release

NewReleases is sending notifications on new releases.