svg-sprite-loader
Advanced tools
Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2
{ | ||
"name": "svg-sprite-loader", | ||
"version": "2.0.0-alpha.1", | ||
"version": "2.0.0-alpha.2", | ||
"description": "SVG sprite loader for Webpack", | ||
@@ -8,4 +8,5 @@ "homepage": "https://github.com/kisenka/webpack-svg-sprite-loader#readme", | ||
"files": [ | ||
"examples/**", | ||
"lib/**", | ||
"runtime/**", | ||
"runtime/*.js", | ||
"plugin.js", | ||
@@ -12,0 +13,0 @@ "README.md", |
@@ -541,9 +541,5 @@ (function (global, factory) { | ||
if (document.body) { | ||
document.addEventListener('DOMContentLoaded', function() { | ||
sprite.mount(document.body, true); | ||
} else { | ||
document.addEventListener('DOMContentLoaded', function () { | ||
sprite.mount(document.body, true); | ||
}, false); | ||
} | ||
}, false); | ||
@@ -550,0 +546,0 @@ return sprite; |
import BrowserSprite from 'svg-baker-runtime/src/browser-sprite'; | ||
const sprite = new BrowserSprite(); | ||
var sprite = new BrowserSprite(); | ||
if (document.body) { | ||
document.addEventListener('DOMContentLoaded', function() { | ||
sprite.mount(document.body, true); | ||
} else { | ||
document.addEventListener('DOMContentLoaded', () => { | ||
sprite.mount(document.body, true); | ||
}, false); | ||
} | ||
}, false); | ||
export default sprite; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
182322
42
2370
0