From c784204772538ab8984e1c25e4501a7602b41ad1 Mon Sep 17 00:00:00 2001 From: Zackere Date: Thu, 13 Jan 2022 19:14:23 +0100 Subject: [PATCH 1/2] fix: multiple serializer registrations (#894) --- src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 24573504..43f9033c 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,6 @@ /* eslint-disable class-methods-use-this */ +import path from "path"; import { validate } from "schema-utils"; import schema from "./plugin-options.json"; @@ -205,7 +206,7 @@ class MiniCssExtractPlugin { webpack.util.serialization.register( CssModule, - "mini-css-extract-plugin/dist/CssModule", + path.resolve(__dirname, "CssModule"), null, { serialize(instance, context) { @@ -312,7 +313,7 @@ class MiniCssExtractPlugin { webpack.util.serialization.register( CssDependency, - "mini-css-extract-plugin/dist/CssDependency", + path.resolve(__dirname, "CssDependency"), null, { serialize(instance, context) { From 613fdf74391f3ad0c7274919cb0586752c1a1be9 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Thu, 13 Jan 2022 21:14:49 +0300 Subject: [PATCH 2/2] chore(release): 2.4.7 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc3c8f87..3a1cc0c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [2.4.7](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.4.6...v2.4.7) (2022-01-13) + + +### Bug Fixes + +* multiple serializer registrations ([#894](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/894)) ([c784204](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/c784204772538ab8984e1c25e4501a7602b41ad1)) + ### [2.4.6](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.4.5...v2.4.6) (2022-01-06) diff --git a/package-lock.json b/package-lock.json index 88f82778..d5a6ee09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mini-css-extract-plugin", - "version": "2.4.6", + "version": "2.4.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mini-css-extract-plugin", - "version": "2.4.6", + "version": "2.4.7", "license": "MIT", "dependencies": { "schema-utils": "^4.0.0" diff --git a/package.json b/package.json index 37d00987..f7e71828 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mini-css-extract-plugin", - "version": "2.4.6", + "version": "2.4.7", "description": "extracts CSS into separate files", "license": "MIT", "repository": "webpack-contrib/mini-css-extract-plugin",