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 9b61b62 commit f33d80fCopy full SHA for f33d80f
index.js
@@ -9,15 +9,17 @@ module.exports = function (content) {
9
const path = this.resourcePath;
10
11
this.cacheable && this.cacheable(true);
12
- this.addDependency(this.resourcePath);
+ this.addDependency(path);
13
14
const cb = this.async();
15
let component;
16
17
svg
18
- .optimize(content, { path: path })
+ .optimize(content, { path })
19
.then((result) => {
20
- const compiled = compiler.compile(result.data, { preserveWhitespace: false });
+ const compiled = compiler.compile(result.data, {
21
+ preserveWhitespace: false,
22
+ });
23
24
component = transpile(`var render = function () {${compiled.render}};`);
25
component += `var toString = function () {return ${JSON.stringify(path)}};`;
0 commit comments