diff --git a/package-lock.json b/package-lock.json index aa49e4aa2a333..aa3537f8ebafc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17481,7 +17481,7 @@ "markdownlint": "^0.23.1", "markdownlint-cli": "^0.27.1", "merge-deep": "^3.0.3", - "mini-css-extract-plugin": "^2.5.0", + "mini-css-extract-plugin": "^2.5.1", "minimist": "^1.2.0", "npm-package-json-lint": "^5.0.0", "npm-packlist": "^3.0.0", @@ -23353,6 +23353,12 @@ "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", "dev": true }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, "path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", @@ -46344,9 +46350,9 @@ "dev": true }, "mini-css-extract-plugin": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.5.0.tgz", - "integrity": "sha512-hWAswjzsausaaIjk4GiUtoiNnsMc8tLAA2TZ0vbMDZcxKYS/b3UBGNElBjgQ4QYztYR+nsKp5h2Lo1NL3zz2bg==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.5.1.tgz", + "integrity": "sha512-CRC6E2yedNjfOA3nQjpqAkpnranxhxmilhBPYtldnXcPT/QZb3aJFzvt0pp8W1jhuLR/E0zDa+QEHuC/HhhaLQ==", "dev": true, "requires": { "schema-utils": "^4.0.0" @@ -46359,9 +46365,9 @@ "dev": true }, "ajv": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.8.2.tgz", - "integrity": "sha512-x9VuX+R/jcFj1DHo/fCp99esgGDWiHENrKxaCENuCxpoMCmAt/COCGVDwA7kleEpEzJjDnvh3yGoOuLu0Dtllw==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.9.0.tgz", + "integrity": "sha512-qOKJyNj/h+OWx7s5DePL6Zu1KeM9jPZhwBqs+7DzP6bGOvqzVCSf0xueYmVuaC/oQ/VtS2zLMLHdQFbkka+XDQ==", "dev": true, "requires": { "fast-deep-equal": "^3.1.1", diff --git a/packages/scripts/CHANGELOG.md b/packages/scripts/CHANGELOG.md index 0d042a0b13c7b..550fbba0365d3 100644 --- a/packages/scripts/CHANGELOG.md +++ b/packages/scripts/CHANGELOG.md @@ -19,6 +19,7 @@ ### Bug Fixes - Prevent the `CleanWebpackPlugin` plugin from deleting webpack assets during multi-configuration builds [#35980](https://github.com/WordPress/gutenberg/issues/35980). +- Remove temporary workaround fixing CommonJS import for `mini-css-extract-plugin` [#38027](https://github.com/WordPress/gutenberg/pull/38027). ### Internal diff --git a/packages/scripts/config/webpack.config.js b/packages/scripts/config/webpack.config.js index 0753b73509b44..592a6d956df55 100644 --- a/packages/scripts/config/webpack.config.js +++ b/packages/scripts/config/webpack.config.js @@ -5,14 +5,7 @@ const { BundleAnalyzerPlugin } = require( 'webpack-bundle-analyzer' ); const { CleanWebpackPlugin } = require( 'clean-webpack-plugin' ); const CopyWebpackPlugin = require( 'copy-webpack-plugin' ); const browserslist = require( 'browserslist' ); - -/* - * Temporary workaround to fix broken CommonJS import in version 2.5.0. - * @see https://github.com/WordPress/gutenberg/issues/37992 - */ -const MiniCSSExtractPlugin = require( 'mini-css-extract-plugin' ).default - ? require( 'mini-css-extract-plugin' ).default - : require( 'mini-css-extract-plugin' ); +const MiniCSSExtractPlugin = require( 'mini-css-extract-plugin' ); const { basename, dirname, resolve } = require( 'path' ); const ReactRefreshWebpackPlugin = require( '@pmmmwh/react-refresh-webpack-plugin' ); const TerserPlugin = require( 'terser-webpack-plugin' ); diff --git a/packages/scripts/package.json b/packages/scripts/package.json index 7f0f53e00ed8c..6acc3c22a56df 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -69,7 +69,7 @@ "markdownlint": "^0.23.1", "markdownlint-cli": "^0.27.1", "merge-deep": "^3.0.3", - "mini-css-extract-plugin": "^2.5.0", + "mini-css-extract-plugin": "^2.5.1", "minimist": "^1.2.0", "npm-package-json-lint": "^5.0.0", "npm-packlist": "^3.0.0",