react-build-sitemap
Advanced tools
Comparing version 0.1.26 to 0.1.27
@@ -25,2 +25,3 @@ import babelParser from "@babel/parser"; | ||
} | ||
const jsxFile = fs.readFileSync(fileName); | ||
const sitemapElements = [ | ||
@@ -36,3 +37,3 @@ '<?xml version="1.0" encoding="UTF-8?">', | ||
const jsxTree = JSON.stringify( | ||
babelParser.parse(fileName, { | ||
babelParser.parse(jsxFile, { | ||
sourceType: "unambiguous", | ||
@@ -39,0 +40,0 @@ plugins, |
{ | ||
"name": "react-build-sitemap", | ||
"version": "0.1.26", | ||
"version": "0.1.27", | ||
"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
44271
196