Skip to content

Commit

Permalink
fix(purgecss-webpack-plugin): export as named export as well as defau…
Browse files Browse the repository at this point in the history
…lt (#821)
  • Loading branch information
G-Rath committed Jan 1, 2022
1 parent 8cf7c12 commit a6a2c8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/purgecss-webpack-plugin/src/index.ts
Expand Up @@ -29,7 +29,7 @@ function isFileOfTypes(filename: string, extensions: string[]): boolean {
return extensions.includes(extension);
}

export default class PurgeCSSPlugin {
export class PurgeCSSPlugin {
options: UserDefinedOptions;
purgedStats: PurgedStats = {};

Expand Down Expand Up @@ -132,3 +132,5 @@ export default class PurgeCSSPlugin {
}
}
}

export default PurgeCSSPlugin;

0 comments on commit a6a2c8e

Please sign in to comment.