rollup-plugin-filter-dep-graph
Advanced tools
Comparing version 0.0.3 to 0.0.4
import { readFileSync, writeFileSync } from "node:fs"; | ||
import { resolve } from "node:path"; | ||
export default function plugin() { | ||
@@ -18,3 +17,3 @@ return { | ||
const importersMapString = JSON.stringify(importersMap).replace(new RegExp(lcp, "g"), ""); | ||
writeFileSync("graph.html", readFileSync(resolve(__dirname, "template.html")) | ||
writeFileSync("graph.html", readFileSync(new URL('./template.html', import.meta.url)) | ||
.toString() | ||
@@ -21,0 +20,0 @@ .replace(`"data_placeholder"`, importersMapString)); |
{ | ||
"name": "rollup-plugin-filter-dep-graph", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Filter and visualize the dependency graph.", | ||
@@ -10,3 +10,4 @@ "type": "module", | ||
"index.js", | ||
"index.d.ts" | ||
"index.d.ts", | ||
"template.html" | ||
], | ||
@@ -13,0 +14,0 @@ "keywords": [ |
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
4682
5
32