File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 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) {
7272 const sourceMap = options . sourceMap
7373
7474 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 ) {
8086 return parseOptions . call ( this , options )
8187 }
8288
You can’t perform that action at this time.
0 commit comments