rollup-plugin-visualizer
Advanced tools
Comparing version 4.1.2 to 4.2.0
# Changelog | ||
## 4.2.0 | ||
* Switch to npm | ||
* Add to html template window on resize handler | ||
## 4.1.2 | ||
* Updat deps, drop pupa because it has not stated breaking change | ||
* Update deps, drop pupa because it has not stated breaking change | ||
@@ -7,0 +12,0 @@ ## 4.1.1 |
{ | ||
"name": "rollup-plugin-visualizer", | ||
"version": "4.1.2", | ||
"version": "4.2.0", | ||
"main": "plugin/index.js", | ||
@@ -25,3 +25,3 @@ "author": "Denis Bardadym <bardadymchik@gmail.com>", | ||
"clean": "del-cli lib", | ||
"prepare": "yarn run build", | ||
"prepare": "npm run build", | ||
"test": "node build.js --all --e2e && node build.js --all --test" | ||
@@ -28,0 +28,0 @@ }, |
@@ -18,32 +18,36 @@ "use strict"; | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
<title>${htmlEscape(title)}</title> | ||
<style> | ||
${style} | ||
</style> | ||
</head> | ||
<body> | ||
<main></main> | ||
<script> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
<title>${htmlEscape(title)}</title> | ||
<style> | ||
${style} | ||
</style> | ||
</head> | ||
<body> | ||
<main></main> | ||
<script> | ||
/*<!--*/ | ||
${script} | ||
/*-->*/ | ||
</script> | ||
<script> | ||
/*<!--*/ | ||
${script} | ||
/*-->*/ | ||
</script> | ||
<script> | ||
/*<!--*/ | ||
const data = ${nodesData}; | ||
const data = ${nodesData}; | ||
document.addEventListener('DOMContentLoaded', () => { | ||
const width = window.innerWidth; | ||
const height = window.innerHeight; | ||
const run = () => { | ||
const width = window.innerWidth; | ||
const height = window.innerHeight; | ||
const chartNode = document.querySelector("main"); | ||
drawChart(chartNode, data, width, height); | ||
}); | ||
/*-->*/ | ||
</script> | ||
</body> | ||
const chartNode = document.querySelector("main"); | ||
drawChart(chartNode, data, width, height); | ||
}; | ||
window.addEventListener('resize', run); | ||
document.addEventListener('DOMContentLoaded', run); | ||
/*-->*/ | ||
</script> | ||
</body> | ||
</html> | ||
@@ -50,0 +54,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
436914
11334