We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b22f3b4 commit d33cb6eCopy full SHA for d33cb6e
1 file changed
bin/build-sprite-string.js
@@ -1,4 +1,4 @@
1
-import defaultAttrs from '../src/default-attrs.json';
+import DEFAULT_ATTRS from '../src/default-attrs.json';
2
3
/**
4
* Build an SVG sprite string containing SVG symbols.
@@ -10,7 +10,7 @@ function buildSpriteString(icons) {
10
.map(icon => toSvgSymbol(icon, icons[icon]))
11
.join('');
12
13
- return `<svg xmlns="${defaultAttrs.xmlns}"><defs>${symbols}</defs></svg>`;
+ return `<svg xmlns="${DEFAULT_ATTRS.xmlns}"><defs>${symbols}</defs></svg>`;
14
}
15
16
@@ -20,7 +20,7 @@ function buildSpriteString(icons) {
20
* @returns {string}
21
*/
22
function toSvgSymbol(name, contents) {
23
- return `<symbol id="${name}" viewBox="${defaultAttrs.viewBox}">${
+ return `<symbol id="${name}" viewBox="${DEFAULT_ATTRS.viewBox}">${
24
contents
25
}</symbol>`;
26
0 commit comments