File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,19 @@ const disablePlugin = (pluginName: string): Plugin => ({
1919 }
2020} ) ;
2121
22+ const cssPlugin = lightningCssPlugin ( {
23+ include : [ / \. m o d u l e \. c s s $ / u] ,
24+ options : {
25+ cssModules : {
26+ pattern : 'w[hash]_[local]' ,
27+ pure : true ,
28+ animation : false ,
29+ grid : false ,
30+ customIdents : false
31+ }
32+ }
33+ } ) ;
34+
2235const baseConfig : Options & { target : Target [ ] } = {
2336 dts : true ,
2437 env : {
@@ -68,22 +81,10 @@ const baseConfig: Options & { target: Target[] } = {
6881 loader : 'tsx' ,
6982 name : 'babel-plugin-istanbul:tsx' ,
7083 predicate : istanbulPredicate
71- } )
84+ } ) ,
85+ cssPlugin
7286 ]
73- : [
74- lightningCssPlugin ( {
75- include : [ / \. m o d u l e \. c s s $ / u] ,
76- options : {
77- cssModules : {
78- pattern : 'w[hash]_[local]' ,
79- pure : true ,
80- animation : false ,
81- grid : false ,
82- customIdents : false
83- }
84- }
85- } )
86- ] ,
87+ : [ cssPlugin ] ,
8788 format : 'esm' ,
8889 loader : { '.js' : 'jsx' } ,
8990 metafile : true ,
You can’t perform that action at this time.
0 commit comments