diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -5,7 +5,7 @@ module.exports = function(source) {
   this.cacheable(true);
   var callback = this.async();
 
-  var config = loaderUtils.getOptions(this);
+  var config = loaderUtils.getOptions(this) || {};
 
   // This piece of code exists in order to support webpack 1.x.x top level configurations.
   // In webpack 2 this options does not exists anymore.
Support missing configs (#1) (#<I>)

* Support missing configs (#1)



* Support missing configs



`loaderUtils.getOptions(this)` will return `null` if no parseable structure is found. We don't currently `null` check this when reading `useConfig`. 



I have added a default empty object as a fallback for this scenario.



* Patch version @<I>



* Reset semver