Skip to content

Using API doesn't add HMR plugin entry #1703

Description

@rlamana

Hot Module Replacement plugin entry doesn't seem to be added when using the API. The new tests on the PR #1664 use the dev server API via the test/helper.js and addEntries function in lib/utils/addEntries.js had to be manually called to make it work.

webpack Version: 4.29.0
webpack-dev-server Version: 3.1.14

  • This is a bug
  • This is a modification request

How can we reproduce the behavior?

Remove addEntries call in test/Client.test.js and the e2e test will fail because HMR is not loaded.

Expected behavior

When using the API and hot is enabled, HMR plugin entry should be also added.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions