|
|
|
@ -45,6 +45,7 @@ interface ComponentOptions {
|
|
|
|
immutable?: boolean;
|
|
|
|
immutable?: boolean;
|
|
|
|
accessors?: boolean;
|
|
|
|
accessors?: boolean;
|
|
|
|
preserveWhitespace?: boolean;
|
|
|
|
preserveWhitespace?: boolean;
|
|
|
|
|
|
|
|
elementInternals?: boolean;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const regex_leading_directory_separator = /^[/\\]/;
|
|
|
|
const regex_leading_directory_separator = /^[/\\]/;
|
|
|
|
@ -1570,6 +1571,17 @@ function process_component_options(component: Component, nodes) {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'elementInternals': {
|
|
|
|
|
|
|
|
const value = get_value(attribute, compiler_errors.invalid_attribute_value(name));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (typeof value !== 'boolean') {
|
|
|
|
|
|
|
|
return component.error(attribute, compiler_errors.invalid_attribute_value(name));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
component_options.elementInternals = value;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
case 'namespace': {
|
|
|
|
case 'namespace': {
|
|
|
|
const ns = get_value(attribute, compiler_errors.invalid_namespace_attribute);
|
|
|
|
const ns = get_value(attribute, compiler_errors.invalid_namespace_attribute);
|
|
|
|
|
|
|
|
|
|
|
|
|