fix(server/script): ignoring sub-component JSX

This commit is contained in:
Elian Doran 2025-12-21 20:01:59 +02:00
parent f68f99806b
commit 531698cafb
No known key found for this signature in database

View File

@ -321,7 +321,7 @@ class BNote extends AbstractBeccaEntity<BNote> {
/** @returns JS script environment - either "frontend" or "backend" */
getScriptEnv() {
if (this.isHtml() || (this.isJavaScript() && this.mime.endsWith("env=frontend"))) {
if (this.isHtml() || (this.isJavaScript() && this.mime.endsWith("env=frontend")) || this.isJsx()) {
return "frontend";
}