react-build-sitemap
Advanced tools
Comparing version 0.1.25 to 0.1.26
@@ -25,3 +25,2 @@ import babelParser from "@babel/parser"; | ||
} | ||
const jsxFile = fs.readFileSync(fileName, "utf8"); | ||
const sitemapElements = [ | ||
@@ -37,3 +36,3 @@ '<?xml version="1.0" encoding="UTF-8?">', | ||
const jsxTree = JSON.stringify( | ||
babelParser.parse(jsxFile, { | ||
babelParser.parse(fileName, { | ||
sourceType: "unambiguous", | ||
@@ -40,0 +39,0 @@ plugins, |
{ | ||
"name": "react-build-sitemap", | ||
"version": "0.1.25", | ||
"version": "0.1.26", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "simple library that generates a sitemap from your react router", |
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
44227
195