We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e89ea2 commit 4f1ab08Copy full SHA for 4f1ab08
loader.js
@@ -3,6 +3,9 @@ var loaderUtils = require('loader-utils');
3
4
module.exports = function (source) {
5
'use strict';
6
+ if (this.cacheable) {
7
+ this.cacheable();
8
+ }
9
var allLoadersButThisOne = this.loaders.filter(function(loader) {
10
return loader.module !== module.exports;
11
});
@@ -11,9 +14,6 @@ module.exports = function (source) {
14
return source;
12
15
}
13
16
// Use underscore for a minimalistic loader
- if (this.cacheable) {
- this.cacheable();
- }
17
var options = loaderUtils.parseQuery(this.query);
18
var template = _.template(source, options);
19
return 'module.exports = ' + template;
0 commit comments