Skip to content

[bundle_dir] not being replaced by python-webpack #42

@txbm

Description

@txbm

Not sure if this is a python-webpack issue or not but I'm filing it here since I was able to patch it locally by replacing the [bundle_dir] string in the generate_config_for_component function with a manual join of the BUNDLE_ROOT, OUTPUT_DIR and BUNDLE_DIR settings by accessing python_webpack.conf.settings directly.

Couldn't really find the area in webpack where the replacement happens and don't have time right now to dig into it deeper but it was causing python-react to write out a config file that still had the [bundle_dir] string hard coded into the config and therefore the renderer could not find the actual component because it was getting written to a directory on the root called "[bundle_dir]".

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