@xylit/ssg
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "@xylit/ssg", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A pure static site generator", | ||
@@ -5,0 +5,0 @@ "homepage": "https://ssg.xylit.dev/", |
@@ -48,11 +48,12 @@ import { parse } from "acorn"; | ||
const url = new URL(urlStr); | ||
const result = await next(urlStr, context); | ||
if (!url.pathname.endsWith(".ssg.js")) return result; | ||
if (!url.pathname.endsWith(".ssg.js")) return next(urlStr, context); | ||
const { source } = await next(urlStr, { ...context, format: "module" }); | ||
return { | ||
format: "module", | ||
shortCircuit: true, | ||
source: await compile(result.source.toString()), | ||
source: await compile(source.toString()), | ||
}; | ||
} |
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
47223