Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
hasanayan committed Feb 26, 2021
1 parent b90b6c4 commit aaa8107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "craco-plugin-single-spa-application",
"version": "1.0.5",
"version": "1.0.6",
"description": "Convert your CRA4 project into a single-spa application without ejecting or losing update support of react-scripts",
"main": "src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const disableCSSExtraction = (webpackConfig) => {

if (Array.isArray(x.use)) {
x.use.forEach((use) => {
if (use.loader?.includes("mini-css-extract-plugin"))
if (use.loader && use.loader.includes("mini-css-extract-plugin"))
use.loader = require.resolve("style-loader/dist/cjs.js");
});
}
Expand Down

0 comments on commit aaa8107

Please sign in to comment.