Skip to content

Commit

Permalink
export constants from dom-expressions server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Sep 1, 2024
1 parent b001675 commit ab2d670
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/dom-expressions/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ import { sharedConfig, root } from "rxcore";
import { createSerializer, getLocalHeaderScript } from "./serializer";
export { createComponent } from "rxcore";

export {
Properties,
ChildProperties,
getPropAlias,
Aliases,
DOMElements,
SVGElements,
SVGNamespace,
DelegatedEvents
} from "./constants.js";

// Based on https://github.com/WebReflection/domtagger/blob/master/esm/sanitizer.js
const VOID_ELEMENTS =
/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i;
Expand Down

0 comments on commit ab2d670

Please sign in to comment.