# @lynx-js/chunk-loading-webpack-plugin

## 0.4.2

### Patch Changes

- Updated dependencies [[`76126fc`](https://github.com/lynx-family/lynx-stack/commit/76126fcad0f16e649c372d22c013e90ad88640df)]:
  - @lynx-js/webpack-runtime-globals@0.0.8

## 0.4.1

### Patch Changes

- Thread the requesting host and the import `mode` through the lazy-bundle runtime ([#2584](https://github.com/lynx-family/lynx-stack/pull/2584))
  so it can route the eval result and honor sync/async loading.
- Updated dependencies [[`fec4237`](https://github.com/lynx-family/lynx-stack/commit/fec4237b2257455a40a68f33864fb713c147f7d4)]:
  - @lynx-js/webpack-runtime-globals@0.0.7

## 0.4.0

### Minor Changes

- **BREAKING CHANGE** ([#2803](https://github.com/lynx-family/lynx-stack/pull/2803))

  Drop webpack support — the plugins now target Rspack only. All public types come from `@rspack/core` instead of `webpack` (e.g. `Compiler`, `Compilation`, `LoaderContext`), and the `webpack` dependency is removed.

### Patch Changes

- Prefix Lynx runtime module names with `webpack/runtime/` (e.g. `Lynx async chunks` → `webpack/runtime/lynx async chunks`), matching the path-structured naming of the bundler's built-in runtime modules. The previous bare names had no path segment, so when they appear as a source-map `sources` entry under a `file://` module-filename template they collapsed into an invalid URL authority (the space-containing name became the host) and broke `SourceMapConsumer` parsing. ([#2642](https://github.com/lynx-family/lynx-stack/pull/2642))

## 0.3.4

### Patch Changes

- Override `__webpack_require__.e` so a single sync-then chunk load (the ([#2597](https://github.com/lynx-family/lynx-stack/pull/2597))
  typical lazy bundle case) bypasses `Promise.all`. It will make first screen
  in main thread can load lazy bundle synchronously when using dynamic import.

## 0.3.3

### Patch Changes

- Fix unmet peer dependency "@rspack/core@'^1.3.10". ([#1660](https://github.com/lynx-family/lynx-stack/pull/1660))

## 0.3.2

### Patch Changes

- Should not load initial CSS chunks. ([#1601](https://github.com/lynx-family/lynx-stack/pull/1601))

## 0.3.1

### Patch Changes

- Updated dependencies [[`aaca8f9`](https://github.com/lynx-family/lynx-stack/commit/aaca8f91d177061c7b0430cc5cb21a3602897534)]:
  - @lynx-js/webpack-runtime-globals@0.0.6

## 0.3.0

### Minor Changes

- **BREAKING CHANGE**: Requires `@rspack/core` v1.3.10. ([#922](https://github.com/lynx-family/lynx-stack/pull/922))

## 0.2.1

### Patch Changes

- Add `StartupChunkDependenciesRuntimeModule` to fix `RuntimeGlobals.ensureChunkHandler` not found when using chunk splitting ([#798](https://github.com/lynx-family/lynx-stack/pull/798))

## 0.2.0

### Minor Changes

- **BREAKING CHANGE**: Requires `@rspack/core` v1.3.0. ([#400](https://github.com/lynx-family/lynx-stack/pull/400))

- **BREAKING CHANGE**: Remove the deprecated `ChunkLoadingRspackPlugin`, use `ChunkLoadingWebpackPlugin` with `output.chunkLoading: 'lynx'` instead. ([#400](https://github.com/lynx-family/lynx-stack/pull/400))

  ```js
  import { ChunkLoadingWebpackPlugin } from '@lynx-js/chunk-loading-webpack-plugin';

  export default {
    output: {
      chunkLoading: 'lynx',
    },
    plugins: [new ChunkLoadingWebpackPlugin()],
  };
  ```

## 0.1.7

### Patch Changes

- Support NPM provenance. ([#30](https://github.com/lynx-family/lynx-stack/pull/30))

- Updated dependencies [[`c617453`](https://github.com/lynx-family/lynx-stack/commit/c617453aea967aba702967deb2916b5c883f03bb)]:
  - @lynx-js/webpack-runtime-globals@0.0.5

## 0.1.6

### Patch Changes

- 65ecd41: Fix `module` is not defined when using lazy bundle.

## 0.1.5

### Patch Changes

- Updated dependencies [3bf5830]
  - @lynx-js/webpack-runtime-globals@0.0.4

## 0.1.4

### Patch Changes

- 0067512: Avoid unnecessary `onChunksLoaded`.

## 0.1.3

### Patch Changes

- e59cc61: Use `RuntimeGlobals` from `@lynx-js/webpack-runtime-globals`
- Updated dependencies [f5913e5]
  - @lynx-js/webpack-runtime-globals@0.0.3

## 0.1.2

### Patch Changes

- 42093cb: refractor: migrate to webpack provided publicPath runtime module

## 0.1.1

### Patch Changes

- 7f8a4fe: Support Rspack v1.1.0.
- 1a6eed4: Add `RuntimeGlobals.lynxAsyncChunkIds`.
- Updated dependencies [51d94d0]
  - @lynx-js/webpack-runtime-globals@0.0.2
