Skip to content

Commit

Permalink
fix: multiple serializer registrations (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zackere committed Jan 13, 2022
1 parent 65af0bb commit c784204
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c784204

Please sign in to comment.