Skip to content

Using dynamic imports causes the output filename to be the first encounted chunk name when generating server bundle #96

@kungfutse

Description

@kungfutse

This happens at least in the following scenario:
Using custom renderer with react-loadable, the generated output filename is picked from one the splitted chunks when webpack encounters first dynamic import from loadable component defined in react-router.

Fix for this is to use the defined output filename (output_file_name + 'js') instead of relying on the [name] here:

configuration.output.filename = '[name].js'

and here:
configuration.output.chunkFilename = '[name].js'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions