For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/template-webpack-plugin.lynxtemplateplugin.getasyncchunklayoutname.md.
这是开发预览网站。请访问正式文档 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