File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,17 @@ module.exports = function loader (css, map) {
72
72
const sourceMap = options . sourceMap
73
73
74
74
Promise . resolve ( ) . then ( ( ) => {
75
- if (
76
- Object . keys ( options ) . length !== 0 ||
77
- ( ( rc || sourceMap ) && Object . keys ( options ) . length > 1 ) ||
78
- ( ( rc && sourceMap ) && Object . keys ( options ) . length > 2 )
79
- ) {
75
+ const length = Object . keys ( options ) . length
76
+
77
+ // TODO
78
+ // Deuglify
79
+ if ( ! options . config && ! sourceMap && length ) {
80
+ return parseOptions . call ( this , options )
81
+ } else if ( options . config && ! sourceMap && length > 1 ) {
82
+ return parseOptions . call ( this , options )
83
+ } else if ( ! options . config && sourceMap && length > 1 ) {
84
+ return parseOptions . call ( this , options )
85
+ } else if ( options . config && sourceMap && length > 2 ) {
80
86
return parseOptions . call ( this , options )
81
87
}
82
88
You can’t perform that action at this time.
0 commit comments