File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " css-modules-require-hook" ,
3
- "version" : " 2.0.3 " ,
3
+ "version" : " 2.0.4 " ,
4
4
"description" : " A require hook to compile CSS Modules on the fly" ,
5
5
"main" : " index.js" ,
6
6
"engines" : {
10
10
"debug" : " ^2.2.0" ,
11
11
"generic-names" : " ^1.0.1" ,
12
12
"icss-replace-symbols" : " ^1.0.2" ,
13
+ "lodash.assign" : " ^3.2.0" ,
13
14
"lodash.foreach" : " ^3.0.3" ,
14
15
"lodash.identity" : " ^3.0.0" ,
15
16
"lodash.isarray" : " ^3.0.4" ,
Original file line number Diff line number Diff line change
1
+ import assign from 'lodash.assign' ;
1
2
import debug from 'debug' ;
2
3
import hook from './hook' ;
3
4
import identity from 'lodash.identity' ;
@@ -61,7 +62,7 @@ function fetch(to, from) {
61
62
debugFetch ( { cache : false , filename} ) ;
62
63
const CSSSource = preProcess ( readFileSync ( filename , 'utf8' ) , filename ) ;
63
64
// https://github.com/postcss/postcss/blob/master/docs/api.md#processorprocesscss-opts
64
- const lazyResult = instance . process ( CSSSource , Object . assign ( processorOptions , { from : filename } ) ) ;
65
+ const lazyResult = instance . process ( CSSSource , assign ( processorOptions , { from : filename } ) ) ;
65
66
66
67
// https://github.com/postcss/postcss/blob/master/docs/api.md#lazywarnings
67
68
lazyResult . warnings ( ) . forEach ( message => console . warn ( message . text ) ) ;
You can’t perform that action at this time.
0 commit comments