@arcmantle/lit-jsx / compiler/config
compiler/config
Type Aliases
BabelPlugins
BabelPlugins =
NonNullable<NonNullable<babel.TransformOptions["parserOpts"]>["plugins"]>
Defined in: compiler/config.ts:4
Variables
ATTR_BIND_OBJ_NAME
constATTR_BIND_OBJ_NAME:"as"='as'
Defined in: compiler/config.ts:26
ATTR_NAMES
constATTR_NAMES:object
Defined in: compiler/config.ts:19
Type Declaration
CLASS_LIST
readonlyCLASS_LIST:"classList"='classList'
DIRECTIVE
readonlyDIRECTIVE:"directive"='directive'
EVENT_PREFIX
readonlyEVENT_PREFIX:"on"='on'
REF
readonlyREF:"ref"='ref'
STYLE_LIST
readonlySTYLE_LIST:"styleList"='styleList'
ATTR_VALUES
constATTR_VALUES:object
Defined in: compiler/config.ts:27
Type Declaration
BOOL
readonlyBOOL:"bool"='bool'
PROP
readonlyPROP:"prop"='prop'
babelPlugins
constbabelPlugins:Set<any[][number]>
Defined in: compiler/config.ts:7
CE_ATTR_IDENTIFIER
constCE_ATTR_IDENTIFIER:"static"='static'
Defined in: compiler/config.ts:15
COMPONENT_LITERAL_PREFIX
constCOMPONENT_LITERAL_PREFIX:"__$"='__$'
Defined in: compiler/config.ts:16
debugMode
constdebugMode:object
Defined in: compiler/config.ts:13
Type Declaration
value
value:
boolean=false
ERROR_MESSAGES
constERROR_MESSAGES:object
Defined in: compiler/config.ts:77
Type Declaration
BODY_NOT_BLOCK()
readonlyBODY_NOT_BLOCK: (tagName) =>string
Parameters
tagName
string
Returns
string
EMPTY_JSX_EXPRESSION
readonlyEMPTY_JSX_EXPRESSION:"Empty JSX expression found."='Empty JSX expression found.'
IDENTIFIER_NOT_FOUND()
readonlyIDENTIFIER_NOT_FOUND: (name) =>string
Parameters
name
string
Returns
string
INVALID_BIND_TYPE()
readonlyINVALID_BIND_TYPE: (type) =>string
Parameters
type
string
Returns
string
INVALID_DIRECTIVE_VALUE
readonlyINVALID_DIRECTIVE_VALUE:"Invalid value in directive expression."='Invalid value in directive expression.'
INVALID_INITIAL_ELEMENT
readonlyINVALID_INITIAL_ELEMENT:"Invalid initial element found. The first element must be a JSX element."='Invalid initial element found. The first element must be a JSX element.'
INVALID_OPENING_TAG
readonlyINVALID_OPENING_TAG:"Invalid opening tag found."='Invalid opening tag found.'
NO_PROGRAM_FOUND
readonlyNO_PROGRAM_FOUND:"No program found for JSX transformation."='No program found for JSX transformation.'
NO_STATEMENT_PATH()
readonlyNO_STATEMENT_PATH: (tagName) =>string
Parameters
tagName
string
Returns
string
ONLY_STRING_LITERALS
readonlyONLY_STRING_LITERALS:"Only string literals are supported for JSX attributes."='Only string literals are supported for JSX attributes.'
TAG_NAME_NOT_FOUND()
readonlyTAG_NAME_NOT_FOUND: (tagName) =>string
Parameters
tagName
string
Returns
string
UNKNOWN_JSX_ATTRIBUTE_TYPE
readonlyUNKNOWN_JSX_ATTRIBUTE_TYPE:"Unknown JSX attribute type found."='Unknown JSX attribute type found.'
UNKNOWN_TEMPLATE_TYPE()
readonlyUNKNOWN_TEMPLATE_TYPE: (type) =>string
Parameters
type
string
Returns
string
options
constoptions:PluginOptions
Defined in: compiler/config.ts:139
SOURCES
constSOURCES:object
Defined in: compiler/config.ts:62
Type Declaration
CLASS_MAP
readonlyCLASS_MAP:"@arcmantle/lit-jsx"='@arcmantle/lit-jsx'
HTML
readonlyHTML:"@arcmantle/lit-jsx"='@arcmantle/lit-jsx'
HTML_STATIC
readonlyHTML_STATIC:"@arcmantle/lit-jsx"='@arcmantle/lit-jsx'
JSX_LIT
readonlyJSX_LIT:"@arcmantle/lit-jsx"='@arcmantle/lit-jsx'
LITERAL_MAP
readonlyLITERAL_MAP:"@arcmantle/lit-jsx"='@arcmantle/lit-jsx'
MATHML
readonlyMATHML:"@arcmantle/lit-jsx"='@arcmantle/lit-jsx'
MATHML_STATIC
readonlyMATHML_STATIC:"@arcmantle/lit-jsx"='@arcmantle/lit-jsx'
REF
readonlyREF:"@arcmantle/lit-jsx"='@arcmantle/lit-jsx'
REST
readonlyREST:"@arcmantle/lit-jsx"='@arcmantle/lit-jsx'
STYLE_MAP
readonlySTYLE_MAP:"@arcmantle/lit-jsx"='@arcmantle/lit-jsx'
SVG
readonlySVG:"@arcmantle/lit-jsx"='@arcmantle/lit-jsx'
SVG_STATIC
readonlySVG_STATIC:"@arcmantle/lit-jsx"='@arcmantle/lit-jsx'
UNSAFE_STATIC
readonlyUNSAFE_STATIC:"@arcmantle/lit-jsx"='@arcmantle/lit-jsx'
SPECIAL_TAGS
constSPECIAL_TAGS:string[] =[]
Defined in: compiler/config.ts:18
VARIABLES
constVARIABLES:object
Defined in: compiler/config.ts:31
Type Declaration
ATTRIBUTE_PART
readonlyATTRIBUTE_PART:"AttributePart"='AttributePart'
BOOLEAN_PART
readonlyBOOLEAN_PART:"BooleanPart"='BooleanPart'
CHILD_PART
readonlyCHILD_PART:"ChildPart"='ChildPart'
CLASS_MAP
readonlyCLASS_MAP:"classMap"='classMap'
CLASS_MAP_LOCAL
readonlyCLASS_MAP_LOCAL:"__$classMap"='__$classMap'
ELEMENT_PART
readonlyELEMENT_PART:"ElementPart"='ElementPart'
EVENT_PART
readonlyEVENT_PART:"EventPart"='EventPart'
HTML
readonlyHTML:"html"='html'
HTML_LOCAL
readonlyHTML_LOCAL:"__$html"='__$html'
HTML_STATIC
readonlyHTML_STATIC:"htmlStatic"='htmlStatic'
HTML_STATIC_LOCAL
readonlyHTML_STATIC_LOCAL:"__$htmlStatic"='__$htmlStatic'
LITERAL_MAP
readonlyLITERAL_MAP:"__$literalMap"='__$literalMap'
MATHML
readonlyMATHML:"mathml"='mathml'
MATHML_LOCAL
readonlyMATHML_LOCAL:"__$mathml"='__$mathml'
MATHML_STATIC
readonlyMATHML_STATIC:"mathmlStatic"='mathmlStatic'
MATHML_STATIC_LOCAL
readonlyMATHML_STATIC_LOCAL:"__$mathmlStatic"='__$mathmlStatic'
PROPERTY_PART
readonlyPROPERTY_PART:"PropertyPart"='PropertyPart'
REF
readonlyREF:"ref"='ref'
REF_LOCAL
readonlyREF_LOCAL:"__$ref"='__$ref'
REST
readonlyREST:"__$rest"='__$rest'
STYLE_MAP
readonlySTYLE_MAP:"styleMap"='styleMap'
STYLE_MAP_LOCAL
readonlySTYLE_MAP_LOCAL:"__$styleMap"='__$styleMap'
SVG
readonlySVG:"svg"='svg'
SVG_LOCAL
readonlySVG_LOCAL:"__$svg"='__$svg'
SVG_STATIC
readonlySVG_STATIC:"svgStatic"='svgStatic'
SVG_STATIC_LOCAL
readonlySVG_STATIC_LOCAL:"__$svgStatic"='__$svgStatic'
T_TEMPLATE_UTIL
readonlyT_TEMPLATE_UTIL:"__$t"='__$t'
UNSAFE_STATIC
readonlyUNSAFE_STATIC:"unsafeStatic"='unsafeStatic'
UNSAFE_STATIC_LOCAL
readonlyUNSAFE_STATIC_LOCAL:"__$unsafeStatic"='__$unsafeStatic'
WHITESPACE_TAGS
constWHITESPACE_TAGS:string[]
Defined in: compiler/config.ts:17
Functions
getPluginOptions()
getPluginOptions(
file):Partial<PluginOptions>
Defined in: compiler/config.ts:123
Parameters
file
BabelFile
Returns
Partial<PluginOptions>
initializePluginOptions()
initializePluginOptions(
file):PluginOptions
Defined in: compiler/config.ts:102
Parameters
file
BabelFile
Returns
PluginOptions