From 541954cfb2fa49fc6934a994764d88b246258e3c Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Wed, 25 Apr 2018 22:15:14 +0100 Subject: [PATCH] Remove NamedModulesPlugin from @neutrinojs/hot (#818) Since webpack 4 now loads the plugin by default in development. Leftover from #809. --- docs/packages/hot/README.md | 1 - docs/packages/node/README.md | 1 - packages/hot/README.md | 1 - packages/hot/index.js | 7 ++----- packages/node/README.md | 1 - 5 files changed, 2 insertions(+), 9 deletions(-) diff --git a/docs/packages/hot/README.md b/docs/packages/hot/README.md index 11164f92e..bb5354b88 100644 --- a/docs/packages/hot/README.md +++ b/docs/packages/hot/README.md @@ -60,7 +60,6 @@ The following is a list of plugins and their identifiers which can be overridden | Name | Description | Environments and Commands | | --- | --- | --- | | `hot` | Enables Hot Module Replacement. | all | -| `named-modules` | Enables named modules for improved debugging and console output. | all | ## Contributing diff --git a/docs/packages/node/README.md b/docs/packages/node/README.md index db78c4b0a..6bf8f1d3d 100644 --- a/docs/packages/node/README.md +++ b/docs/packages/node/README.md @@ -335,7 +335,6 @@ _Note: Some plugins are only available in certain environments. To override them | `clean` | Clears the contents of `build` prior to creating a production bundle. | `build` command | | `start-server` | Start a Node.js for the first configured main entry point. | `start` command | | `hot` | Enables Hot Module Replacement. | `start` command | -| `named-modules` | Enables named modules for improved debugging and console output. From `@neutrinojs/hot`. | `start` command | ### Override configuration diff --git a/packages/hot/README.md b/packages/hot/README.md index 11164f92e..bb5354b88 100644 --- a/packages/hot/README.md +++ b/packages/hot/README.md @@ -60,7 +60,6 @@ The following is a list of plugins and their identifiers which can be overridden | Name | Description | Environments and Commands | | --- | --- | --- | | `hot` | Enables Hot Module Replacement. | all | -| `named-modules` | Enables named modules for improved debugging and console output. | all | ## Contributing diff --git a/packages/hot/index.js b/packages/hot/index.js index 90cc38179..1c6ccd4e7 100644 --- a/packages/hot/index.js +++ b/packages/hot/index.js @@ -1,8 +1,5 @@ -const { HotModuleReplacementPlugin, NamedModulesPlugin } = require('webpack'); +const { HotModuleReplacementPlugin } = require('webpack'); module.exports = ({ config }) => config .plugin('hot') - .use(HotModuleReplacementPlugin) - .end() - .plugin('named-modules') - .use(NamedModulesPlugin); + .use(HotModuleReplacementPlugin); diff --git a/packages/node/README.md b/packages/node/README.md index 898cf8438..ac8a0c95f 100644 --- a/packages/node/README.md +++ b/packages/node/README.md @@ -335,7 +335,6 @@ _Note: Some plugins are only available in certain environments. To override them | `clean` | Clears the contents of `build` prior to creating a production bundle. | `build` command | | `start-server` | Start a Node.js for the first configured main entry point. | `start` command | | `hot` | Enables Hot Module Replacement. | `start` command | -| `named-modules` | Enables named modules for improved debugging and console output. From `@neutrinojs/hot`. | `start` command | ### Override configuration