Skip to content

Commit 082a5fa

Browse files
Merge pull request #441 from Yoast/update-webpack
Update webpack to version 5.94.0 and adjust source map settings
2 parents 2e8141b + 6b44ee0 commit 082a5fa

File tree

3 files changed

+452
-10
lines changed

3 files changed

+452
-10
lines changed

config/webpack/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports = ( env = { environment: "production" } ) => {
6363

6464
const config = {
6565
mode,
66-
devtool: mode === "development" ? "cheap-module-eval-source-map" : false,
66+
devtool: mode === "development" ? "eval-cheap-module-source-map" : false,
6767
entry: paths.entry,
6868
context: paths.jsSrc,
6969
optimization: {
@@ -76,7 +76,7 @@ module.exports = ( env = { environment: "production" } ) => {
7676
output: {
7777
path: paths.jsDist,
7878
filename: getOutputFilename( mode ),
79-
jsonpFunction: "duplicatePostWebpackJsonp",
79+
chunkLoadingGlobal: "duplicatePostWebpackJsonp",
8080
},
8181
resolve: {
8282
extensions: [ ".js", ".jsx" ],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"grunt-shell": "^3.0.1",
4848
"grunt-webpack": "^4.0.2",
4949
"load-grunt-config": "^3.0.1",
50-
"webpack": "^4.20.2"
50+
"webpack": "^5.94.0"
5151
},
5252
"dependencies": {
5353
"@wordpress/edit-post": "^3.25.2",

0 commit comments

Comments
 (0)