@@ -16,12 +16,12 @@ import type {
16
16
import { Options } from './options' ;
17
17
18
18
/**
19
- * Docusaurus plugin to ignore any Infima stylesheet imports.
19
+ * Docusaurus plugin to ignore any unwanted style imports, e.g. like Infima stylesheet imports.
20
20
* This is needed so that Infima doesn't pollute global CSS scope
21
21
* and affect how EUI components are rendered
22
22
*/
23
- const ignoreInfimaPlugin : PluginModule = ( ) => ( {
24
- name : 'ignore-infima -plugin' ,
23
+ const ignoreInheritedStylesPlugin : PluginModule = ( ) => ( {
24
+ name : 'ignore-styles -plugin' ,
25
25
configureWebpack ( ) {
26
26
return {
27
27
module : {
@@ -30,6 +30,10 @@ const ignoreInfimaPlugin: PluginModule = () => ({
30
30
test : / n o d e _ m o d u l e s \/ i n f i m a / ,
31
31
use : 'null-loader' ,
32
32
} ,
33
+ {
34
+ test : / n o d e _ m o d u l e s \/ @ d o c u s a u r u s \/ t h e m e - c o m m o n \/ l i b \/ h o o k s \/ s t y l e s .c s s / ,
35
+ use : 'null-loader' ,
36
+ } ,
33
37
] ,
34
38
} ,
35
39
} ;
@@ -61,7 +65,7 @@ export default function preset(
61
65
] ;
62
66
63
67
const plugins : PluginConfig [ ] = [
64
- ignoreInfimaPlugin ,
68
+ ignoreInheritedStylesPlugin ,
65
69
makePluginConfig ( '@docusaurus/plugin-content-docs' , options . docs ) ,
66
70
makePluginConfig ( '@docusaurus/plugin-content-pages' , options . pages ) ,
67
71
makePluginConfig ( '@docusaurus/plugin-svgr' , options . svgr ) ,
0 commit comments