Skip to content

@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

const ATTR_BIND_OBJ_NAME: "as" = 'as'

Defined in: compiler/config.ts:26


ATTR_NAMES

const ATTR_NAMES: object

Defined in: compiler/config.ts:19

Type Declaration

CLASS_LIST

readonly CLASS_LIST: "classList" = 'classList'

DIRECTIVE

readonly DIRECTIVE: "directive" = 'directive'

EVENT_PREFIX

readonly EVENT_PREFIX: "on" = 'on'

REF

readonly REF: "ref" = 'ref'

STYLE_LIST

readonly STYLE_LIST: "styleList" = 'styleList'


ATTR_VALUES

const ATTR_VALUES: object

Defined in: compiler/config.ts:27

Type Declaration

BOOL

readonly BOOL: "bool" = 'bool'

PROP

readonly PROP: "prop" = 'prop'


babelPlugins

const babelPlugins: Set<any[][number]>

Defined in: compiler/config.ts:7


CE_ATTR_IDENTIFIER

const CE_ATTR_IDENTIFIER: "static" = 'static'

Defined in: compiler/config.ts:15


COMPONENT_LITERAL_PREFIX

const COMPONENT_LITERAL_PREFIX: "__$" = '__$'

Defined in: compiler/config.ts:16


debugMode

const debugMode: object

Defined in: compiler/config.ts:13

Type Declaration

value

value: boolean = false


ERROR_MESSAGES

const ERROR_MESSAGES: object

Defined in: compiler/config.ts:77

Type Declaration

BODY_NOT_BLOCK()

readonly BODY_NOT_BLOCK: (tagName) => string

Parameters
tagName

string

Returns

string

EMPTY_JSX_EXPRESSION

readonly EMPTY_JSX_EXPRESSION: "Empty JSX expression found." = 'Empty JSX expression found.'

IDENTIFIER_NOT_FOUND()

readonly IDENTIFIER_NOT_FOUND: (name) => string

Parameters
name

string

Returns

string

INVALID_BIND_TYPE()

readonly INVALID_BIND_TYPE: (type) => string

Parameters
type

string

Returns

string

INVALID_DIRECTIVE_VALUE

readonly INVALID_DIRECTIVE_VALUE: "Invalid value in directive expression." = 'Invalid value in directive expression.'

INVALID_INITIAL_ELEMENT

readonly INVALID_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

readonly INVALID_OPENING_TAG: "Invalid opening tag found." = 'Invalid opening tag found.'

NO_PROGRAM_FOUND

readonly NO_PROGRAM_FOUND: "No program found for JSX transformation." = 'No program found for JSX transformation.'

NO_STATEMENT_PATH()

readonly NO_STATEMENT_PATH: (tagName) => string

Parameters
tagName

string

Returns

string

ONLY_STRING_LITERALS

readonly ONLY_STRING_LITERALS: "Only string literals are supported for JSX attributes." = 'Only string literals are supported for JSX attributes.'

TAG_NAME_NOT_FOUND()

readonly TAG_NAME_NOT_FOUND: (tagName) => string

Parameters
tagName

string

Returns

string

UNKNOWN_JSX_ATTRIBUTE_TYPE

readonly UNKNOWN_JSX_ATTRIBUTE_TYPE: "Unknown JSX attribute type found." = 'Unknown JSX attribute type found.'

UNKNOWN_TEMPLATE_TYPE()

readonly UNKNOWN_TEMPLATE_TYPE: (type) => string

Parameters
type

string

Returns

string


options

const options: PluginOptions

Defined in: compiler/config.ts:139


SOURCES

const SOURCES: object

Defined in: compiler/config.ts:62

Type Declaration

CLASS_MAP

readonly CLASS_MAP: "@arcmantle/lit-jsx" = '@arcmantle/lit-jsx'

HTML

readonly HTML: "@arcmantle/lit-jsx" = '@arcmantle/lit-jsx'

HTML_STATIC

readonly HTML_STATIC: "@arcmantle/lit-jsx" = '@arcmantle/lit-jsx'

JSX_LIT

readonly JSX_LIT: "@arcmantle/lit-jsx" = '@arcmantle/lit-jsx'

LITERAL_MAP

readonly LITERAL_MAP: "@arcmantle/lit-jsx" = '@arcmantle/lit-jsx'

MATHML

readonly MATHML: "@arcmantle/lit-jsx" = '@arcmantle/lit-jsx'

MATHML_STATIC

readonly MATHML_STATIC: "@arcmantle/lit-jsx" = '@arcmantle/lit-jsx'

REF

readonly REF: "@arcmantle/lit-jsx" = '@arcmantle/lit-jsx'

REST

readonly REST: "@arcmantle/lit-jsx" = '@arcmantle/lit-jsx'

STYLE_MAP

readonly STYLE_MAP: "@arcmantle/lit-jsx" = '@arcmantle/lit-jsx'

SVG

readonly SVG: "@arcmantle/lit-jsx" = '@arcmantle/lit-jsx'

SVG_STATIC

readonly SVG_STATIC: "@arcmantle/lit-jsx" = '@arcmantle/lit-jsx'

UNSAFE_STATIC

readonly UNSAFE_STATIC: "@arcmantle/lit-jsx" = '@arcmantle/lit-jsx'


SPECIAL_TAGS

const SPECIAL_TAGS: string[] = []

Defined in: compiler/config.ts:18


VARIABLES

const VARIABLES: object

Defined in: compiler/config.ts:31

Type Declaration

ATTRIBUTE_PART

readonly ATTRIBUTE_PART: "AttributePart" = 'AttributePart'

BOOLEAN_PART

readonly BOOLEAN_PART: "BooleanPart" = 'BooleanPart'

CHILD_PART

readonly CHILD_PART: "ChildPart" = 'ChildPart'

CLASS_MAP

readonly CLASS_MAP: "classMap" = 'classMap'

CLASS_MAP_LOCAL

readonly CLASS_MAP_LOCAL: "__$classMap" = '__$classMap'

ELEMENT_PART

readonly ELEMENT_PART: "ElementPart" = 'ElementPart'

EVENT_PART

readonly EVENT_PART: "EventPart" = 'EventPart'

HTML

readonly HTML: "html" = 'html'

HTML_LOCAL

readonly HTML_LOCAL: "__$html" = '__$html'

HTML_STATIC

readonly HTML_STATIC: "htmlStatic" = 'htmlStatic'

HTML_STATIC_LOCAL

readonly HTML_STATIC_LOCAL: "__$htmlStatic" = '__$htmlStatic'

LITERAL_MAP

readonly LITERAL_MAP: "__$literalMap" = '__$literalMap'

MATHML

readonly MATHML: "mathml" = 'mathml'

MATHML_LOCAL

readonly MATHML_LOCAL: "__$mathml" = '__$mathml'

MATHML_STATIC

readonly MATHML_STATIC: "mathmlStatic" = 'mathmlStatic'

MATHML_STATIC_LOCAL

readonly MATHML_STATIC_LOCAL: "__$mathmlStatic" = '__$mathmlStatic'

PROPERTY_PART

readonly PROPERTY_PART: "PropertyPart" = 'PropertyPart'

REF

readonly REF: "ref" = 'ref'

REF_LOCAL

readonly REF_LOCAL: "__$ref" = '__$ref'

REST

readonly REST: "__$rest" = '__$rest'

STYLE_MAP

readonly STYLE_MAP: "styleMap" = 'styleMap'

STYLE_MAP_LOCAL

readonly STYLE_MAP_LOCAL: "__$styleMap" = '__$styleMap'

SVG

readonly SVG: "svg" = 'svg'

SVG_LOCAL

readonly SVG_LOCAL: "__$svg" = '__$svg'

SVG_STATIC

readonly SVG_STATIC: "svgStatic" = 'svgStatic'

SVG_STATIC_LOCAL

readonly SVG_STATIC_LOCAL: "__$svgStatic" = '__$svgStatic'

T_TEMPLATE_UTIL

readonly T_TEMPLATE_UTIL: "__$t" = '__$t'

UNSAFE_STATIC

readonly UNSAFE_STATIC: "unsafeStatic" = 'unsafeStatic'

UNSAFE_STATIC_LOCAL

readonly UNSAFE_STATIC_LOCAL: "__$unsafeStatic" = '__$unsafeStatic'


WHITESPACE_TAGS

const WHITESPACE_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

Released under the Apache-2.0 License.