This is the dev preview website. Check out the document at lynxjs.org

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

0.4.0

Minor Changes

  • BREAKING CHANGE (#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 chunkswebpack/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)

0.3.4

Patch Changes

  • Override __webpack_require__.e so a single sync-then chunk load (the (#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)

0.3.2

Patch Changes

  • Should not load initial CSS chunks. (#1601)

0.3.1

Patch Changes

  • Updated dependencies [aaca8f9]:
    • @lynx-js/webpack-runtime-globals@0.0.6

0.3.0

Minor Changes

  • BREAKING CHANGE: Requires @rspack/core v1.3.10. (#922)

0.2.1

Patch Changes

  • Add StartupChunkDependenciesRuntimeModule to fix RuntimeGlobals.ensureChunkHandler not found when using chunk splitting (#798)

0.2.0

Minor Changes

  • BREAKING CHANGE: Requires @rspack/core v1.3.0. (#400)

  • BREAKING CHANGE: Remove the deprecated ChunkLoadingRspackPlugin, use ChunkLoadingWebpackPlugin with output.chunkLoading: 'lynx' instead. (#400)

    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)

  • Updated dependencies [c617453]:

    • @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