For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/template-webpack-plugin.lynxtemplateplugin.getasyncchunklayoutname.md.
This is the dev preview website. Check out the document at lynxjs.org

Home > @lynx-js/template-webpack-plugin > LynxTemplatePlugin > getAsyncChunkLayoutName

LynxTemplatePlugin.getAsyncChunkLayoutName() method

Map an async chunk id to <lazy bundle name>/<layer>, used to route a lazy bundle's intermediate js/css/hmr outputs into a single per-bundle directory. Returns undefined for non-lazy chunks.

Signature:

static getAsyncChunkLayoutName(compilation: Compilation, chunkId: string | number): string | undefined;

Parameters

Parameter

Type

Description

compilation

Compilation

chunkId

string | number

Returns:

string | undefined