tweak text of warning

pull/3802/head
Richard Harris 5 years ago
parent a097b079f2
commit ad0e8670ca

@ -1310,7 +1310,7 @@ function process_component_options(component: Component, nodes) {
if (tag && !component.compile_options.customElement) {
component.warn(attribute, {
code: 'missing-custom-element-compile-options',
message: `tag name is used when compiling the compenent as a custom element. Did you forgot to add "customElement" for compile options?`
message: `The 'tag' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?`
});
}

@ -6,7 +6,7 @@
"column": 36,
"line": 1
},
"message": "tag name is used when compiling the compenent as a custom element. Did you forgot to add \"customElement\" for compile options?",
"message": "The 'tag' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?",
"pos": 16,
"start": {
"character": 16,

Loading…
Cancel
Save