diff --git a/lib/compiler.js b/lib/compiler.js
index <HASH>..<HASH> 100644
--- a/lib/compiler.js
+++ b/lib/compiler.js
@@ -63,7 +63,7 @@ module.exports = function compiler(source) {
     const query = loaderUtils.getOptions(this) || {};
     const callback = this.async();
     const spriteName = query.defaultName || 'sprite';
-    basePATH = this.options.output.path;
+    basePATH = this._compilation.options.output.path;
     const padding = query.padding || 20;
     const queryParam = query.queryParam || 'sprite';
     const filter = query.filter || 'all';
diff --git a/lib/main.js b/lib/main.js
index <HASH>..<HASH> 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -1,6 +1,5 @@
 const compiler = require('./compiler.js');
 module.exports = function loader(source) {
-    this.cacheable && this.cacheable();
     const result = compiler.call(this, source);
     return result;
 };
:feat: 适配webpack4