Skip to content
This repository was archived by the owner on Jul 13, 2021. It is now read-only.
This repository was archived by the owner on Jul 13, 2021. It is now read-only.

Entry as an object-of-arrays-of-strings does not work #95

@ezzatron

Description

@ezzatron
  • Operating System: macOS High Sierra
  • Node Version: 10.7.0
  • NPM Version: Yarn 1.7.0
  • webpack Version: 4.16.2
  • webpack-hot-client Version: 4.1.1

Expected Behavior

When entry is configured as described in the README:

..., or an Object who's keys are set to an Array of String.

HMR should detect and handle updates correctly.

Actual Behavior

HMR does not function as expected. Updates are shown in the console, but always show "No Modules Updated". Sample console log:

「hot」 Hot Module Replacement Enabled. Waiting for signal.
「hot」 WebSocket connected
「hot」 App updated. Recompiling src/style.scss
「hot」 webpack: Compiling (<unnamed compiler>)
「hot」 App Updated, Reloading Modules
「hot」 Checking for updates to the bundle.
「hot」 No Modules Updated.
「hot」 App is up to date.

In addition, this seems to prevent fallback to full-page reload from working. A manual reload is required to pick up the changes.

Code

Webpack config: https://gist.github.com/ezzatron/bb4f0609e513d75fd98d070b99fe83c2#file-webpack-config-js

How Do We Reproduce?

I have since "fixed" the issue on the master branch of that same repo, but it required me to use a simple array-of-strings entry configuration, which has flow-on effects for my chunk splitting configuration, which was using the entrypoint name as a way to differentiate chunks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions