Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

chore: Update dependency webpack to v5 #1674

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/contributing/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ with this symbol show sample console output from running the previous command._

Developing for neutrino requires:

- Node.js 10+
- Yarn v1.2.1+, installation instructions at https://yarnpkg.com/en/docs/install
- Node.js 12+
- Yarn v1.22+, installation instructions at https://yarnpkg.com/en/docs/install
- git, GitHub account

## Getting started
Expand Down
9 changes: 0 additions & 9 deletions docs/webpack-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -622,12 +622,6 @@ neutrino.config
.plugin(name)
.use(WebpackPlugin, args)

// Examples

neutrino.config
.plugin('hot')
.use(webpack.HotModuleReplacementPlugin);

// Plugins can also be specified by their path, allowing the expensive require()s to be
// skipped in cases where the plugin or webpack configuration won't end up being used.
neutrino.config
Expand Down Expand Up @@ -829,7 +823,6 @@ neutrino.config.devServer
.historyApiFallback(historyApiFallback)
.host(host)
.hot(hot)
.hotOnly(hotOnly)
.https(https)
.inline(inline)
.info(info)
Expand All @@ -851,7 +844,6 @@ neutrino.config.devServer
.staticOptions(staticOptions)
.stats(stats)
.stdin(stdin)
.useLocalIp(useLocalIp)
.watchContentBase(watchContentBase)
.watchOptions(watchOptions)
```
Expand Down Expand Up @@ -1074,7 +1066,6 @@ neutrino.config.merge({
historyApiFallback,
host,
hot,
hotOnly,
https,
inline,
lazy,
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
"prettier": "^2.2.1",
"verdaccio": "^5.1.0",
"verdaccio-memory": "^10.0.0",
"webpack": "^4.44.2",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0"
"webpack": "^5.44.0",
"webpack-cli": "^4.7.0",
"webpack-dev-server": "^4.1.0"
}
}
8 changes: 4 additions & 4 deletions packages/airbnb-base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ instead._

## Requirements

- Node.js 10+
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9 and one of the Neutrino build presets
- webpack 4
- Node.js 12+
- Yarn v1.22+, or npm v6.13+
- neutrino 10 and one of the Neutrino build presets
- webpack 5
- ESLint 6 or 7

## Quickstart
Expand Down
2 changes: 1 addition & 1 deletion packages/airbnb-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"peerDependencies": {
"eslint": "^6.0.0 || ^7.0.0",
"neutrino": "^9.0.0",
"webpack": "^4.0.0"
"webpack": "^5.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/airbnb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ with Airbnb's ESLint config, following the

## Requirements

- Node.js 10+
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9 and one of the Neutrino build presets
- webpack 4
- Node.js 12+
- Yarn v1.22+, or npm v6.13+
- neutrino 10 and one of the Neutrino build presets
- webpack 5
- ESLint 6 or 7

## Quickstart
Expand Down
2 changes: 1 addition & 1 deletion packages/airbnb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"peerDependencies": {
"eslint": "^6.0.0 || ^7.0.0",
"neutrino": "^9.0.0",
"webpack": "^4.0.0"
"webpack": "^5.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/banner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ source code files.

## Requirements

- Node.js 10+
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9
- webpack 4
- Node.js 12+
- Yarn v1.22+, or npm v6.13+
- neutrino 10
- webpack 5

## Installation

Expand Down
2 changes: 1 addition & 1 deletion packages/banner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
},
"peerDependencies": {
"neutrino": "^9.0.0",
"webpack": "^4.0.0"
"webpack": "^5.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/clean/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ directory, as well as all unused webpack assets after every successful rebuild.

## Requirements

- Node.js 10+
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9
- webpack 4
- Node.js 12+
- Yarn v1.22+, or npm v6.13+
- neutrino 10
- webpack 5

## Installation

Expand Down
2 changes: 1 addition & 1 deletion packages/clean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
},
"peerDependencies": {
"neutrino": "^9.0.0",
"webpack": "^4.0.0"
"webpack": "^5.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/compile-loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ with Babel.

## Requirements

- Node.js 10+
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9
- webpack 4
- Node.js 12+
- Yarn v1.22+, or npm v6.13+
- neutrino 10
- webpack 5

## Installation

Expand Down
2 changes: 1 addition & 1 deletion packages/compile-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
},
"peerDependencies": {
"neutrino": "^9.0.0",
"webpack": "^4.0.0"
"webpack": "^5.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/copy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

## Requirements

- Node.js 10+
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9
- webpack 4
- Node.js 12+
- Yarn v1.22+, or npm v6.13+
- neutrino 10
- webpack 5

## Installation

Expand Down
2 changes: 1 addition & 1 deletion packages/copy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
},
"peerDependencies": {
"neutrino": "^9.0.0",
"webpack": "^4.0.0"
"webpack": "^5.0.0"
}
}
15 changes: 11 additions & 4 deletions packages/create-project/commands/init/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ const REACT_DOM_VERSION = '^16';
const REACT_DOM = `react-dom@${REACT_DOM_VERSION}`;
const REACT_HOT_LOADER = 'react-hot-loader@^4';
const VUE = 'vue@^2';
const WEBPACK = 'webpack@^4';
const WEBPACK_CLI = 'webpack-cli@^3';
const WEBPACK_DEV_SERVER = 'webpack-dev-server@^3';
const WEBPACK = 'webpack@^5';
const WEBPACK_CLI = 'webpack-cli@^4';
const WEBPACK_DEV_SERVER = 'webpack-dev-server@^4';

// package.json necessities
const ENTRIES = { main: 'build/index.js', module: 'src/index.js' };
Expand Down Expand Up @@ -268,7 +268,14 @@ const webapp = (name) => ({
type: TESTING,
package: N.KARMA,
packageJson: {
devDependencies: [version(N.KARMA), KARMA, KARMA_CLI, MOCHA],
devDependencies: [
version(N.KARMA),
KARMA,
KARMA_CLI,
MOCHA,
'assert',
'process',
],
scripts: {
test: 'karma start --single-run',
},
Expand Down
10 changes: 5 additions & 5 deletions packages/dev-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Server for fast development cycles.

## Requirements

- Node.js 10+
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9
- webpack 4
- webpack-dev-server 3
- Node.js 12+
- Yarn v1.22+, or npm v6.13+
- neutrino 10
- webpack 5
- webpack-dev-server 4

## Installation

Expand Down
11 changes: 3 additions & 8 deletions packages/dev-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@ module.exports =
hot: true,
// Redirect 404s to index.html, so that apps that use the HTML 5 History API work.
historyApiFallback: true,
// Display any webpack compile errors (but not warnings) on an in-page overlay.
overlay: true,
// Only display compile duration and errors/warnings, to reduce noise when rebuilding.
stats: {
all: false,
errors: true,
timings: true,
warnings: true,
client: {
// Display any webpack compile errors (but not warnings) on an in-page overlay.
overlay: true,
},
...options,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/dev-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"peerDependencies": {
"neutrino": "^9.0.0",
"webpack": "^4.0.0",
"webpack-dev-server": "^3.0.0"
"webpack": "^5.0.0",
"webpack-dev-server": "^4.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/eslint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ and eslint-loader.

## Requirements

- Node.js 10+
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9 and one of the Neutrino build presets
- webpack 4
- Node.js 12+
- Yarn v1.22+, or npm v6.13+
- neutrino 10 and one of the Neutrino build presets
- webpack 5
- ESLint 6 or 7

## Installation
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"peerDependencies": {
"eslint": "^6.0.0 || ^7.0.0",
"neutrino": "^9.0.0",
"webpack": "^4.0.0"
"webpack": "^5.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/font-loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ files from modules.

## Requirements

- Node.js 10+
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9
- webpack 4
- Node.js 12+
- Yarn v1.22+, or npm v6.13+
- neutrino 10
- webpack 5

## Installation

Expand Down
2 changes: 1 addition & 1 deletion packages/font-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
},
"peerDependencies": {
"neutrino": "^9.0.0",
"webpack": "^4.0.0"
"webpack": "^5.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/html-loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ files from modules.

## Requirements

- Node.js 10+
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9
- webpack 4
- Node.js 12+
- Yarn v1.22+, or npm v6.13+
- neutrino 10
- webpack 5

## Installation

Expand Down
2 changes: 1 addition & 1 deletion packages/html-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
},
"peerDependencies": {
"neutrino": "^9.0.0",
"webpack": "^4.0.0"
"webpack": "^5.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/html-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ HTML files for configured entry points.

## Requirements

- Node.js 10+
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9
- webpack 4
- Node.js 12+
- Yarn v1.22+, or npm v6.13+
- neutrino 10
- webpack 5

## Installation

Expand Down
4 changes: 2 additions & 2 deletions packages/html-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"yarn": ">=1.2.1"
},
"dependencies": {
"html-webpack-plugin": "^4.5.0"
"html-webpack-plugin": "^5.3.0"
},
"peerDependencies": {
"neutrino": "^9.0.0",
"webpack": "^4.0.0"
"webpack": "^5.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/image-loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ image files from modules.

## Requirements

- Node.js 10+
- Yarn v1.2.1+, or npm v5.4+
- Neutrino 9
- webpack 4
- Node.js 12+
- Yarn v1.22+, or npm v6.13+
- neutrino 10
- webpack 5

## Installation

Expand Down
2 changes: 1 addition & 1 deletion packages/image-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
},
"peerDependencies": {
"neutrino": "^9.0.0",
"webpack": "^4.0.0"
"webpack": "^5.0.0"
}
}
Loading