diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts index e76696c53d..3bd7373f7f 100644 --- a/src/compiler/compile/Component.ts +++ b/src/compiler/compile/Component.ts @@ -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?` }); } diff --git a/test/validator/samples/missing-custom-element-compile-options/warnings.json b/test/validator/samples/missing-custom-element-compile-options/warnings.json index a4c52792ab..8d6d574fb2 100644 --- a/test/validator/samples/missing-custom-element-compile-options/warnings.json +++ b/test/validator/samples/missing-custom-element-compile-options/warnings.json @@ -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,