Skip to content

Introduce a new option for workers chunks' filenames #17002

Description

@gretzkiy

Feature request

The source of this feature request is this discussion. The aim is to specify the filename for worker chunks only. Currently, there is no straightforward way to determine whether the chunk being processed in chunkFilename is a worker. Therefore, the request is for an option similar to workerPublicPath, but only for the worker chunk's filename, such as workerChunkFilename.

During the aforementioned discussion, @alexander-akait suggested identifying worker chunks by checking if chunkLoading === 'import-scripts' in pathData?.chunk?._groups within the chunkFilename function. However, this approach is considered hacky and not very robust.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions