diff --git a/libs/single-spa-angular/webpack/webpack-5/remove-mini-css-extract.ts b/libs/single-spa-angular/webpack/webpack-5/remove-mini-css-extract.ts index b9ad7d3..18ee3d5 100644 --- a/libs/single-spa-angular/webpack/webpack-5/remove-mini-css-extract.ts +++ b/libs/single-spa-angular/webpack/webpack-5/remove-mini-css-extract.ts @@ -66,13 +66,7 @@ function tryToRemoveMiniCssExtractThroughConditions(childRule: ChildRule): void ); if (cssMiniExtractIndex >= 0) { - childRuleCondition.use![cssMiniExtractIndex] = { - loader: 'style-loader', - // @ts-ignore - options: { - styleTagTransform: require.resolve('./styleTagTransform.js'), - }, - }; + childRuleCondition.use![cssMiniExtractIndex] = { loader: 'style-loader' }; } } } diff --git a/libs/single-spa-angular/webpack/webpack-5/styleTagTransform.js b/libs/single-spa-angular/webpack/webpack-5/styleTagTransform.js deleted file mode 100644 index c850f95..0000000 --- a/libs/single-spa-angular/webpack/webpack-5/styleTagTransform.js +++ /dev/null @@ -1,9 +0,0 @@ -function styleTagTransform(css, style) { - console.trace(); - // eslint-disable-next-line no-param-reassign - style.innerHTML = `${css}.modify{}\n`; - - document.head.appendChild(style); -} - -module.exports = styleTagTransform;