You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/compile/Component.ts
+25-25
Original file line number
Diff line number
Diff line change
@@ -157,7 +157,7 @@ export default class Component {
157
157
)||{start: 0,end: 0};
158
158
this.warn(svelteOptions,{
159
159
code: 'custom-element-no-tag',
160
-
message: `No custom element 'tag' option was specified. To automatically register a custom element, specify a name with a hyphen in it, e.g. <svelte:options tag="my-thing"/>. To hide this warning, use <svelte:options tag={null}/>`
160
+
message: 'No custom element \'tag\' option was specified. To automatically register a custom element, specify a name with a hyphen in it, e.g. <svelte:options tag="my-thing"/>. To hide this warning, use <svelte:options tag={null}/>'
message: `${this.name.name} has unused export property '${name}'. If it is for external reference only, please consider using \`export const ${name}\``
483
483
});
484
484
}
@@ -501,7 +501,7 @@ export default class Component {
message: `${this.name.name} has unused export property '${specifier.exported.name}'. If it is for external reference only, please consider using \`export const ${specifier.exported.name}\``
506
506
});
507
507
}
@@ -550,7 +550,7 @@ export default class Component {
550
550
if(name[0]==='$'){
551
551
this.error(nodeasany,{
552
552
code: 'illegal-declaration',
553
-
message: `The $ prefix is reserved, and cannot be used for variable and import names`
553
+
message: 'The $ prefix is reserved, and cannot be used for variable and import names'
554
554
});
555
555
}
556
556
@@ -568,7 +568,7 @@ export default class Component {
568
568
if(name[0]==='$'){
569
569
this.error(nodeasany,{
570
570
code: 'illegal-subscription',
571
-
message: `Cannot reference store value inside <script context="module">`
571
+
message: 'Cannot reference store value inside <script context="module">'
572
572
});
573
573
}else{
574
574
this.add_var({
@@ -629,7 +629,7 @@ export default class Component {
629
629
if(name[0]==='$'){
630
630
this.error(nodeasany,{
631
631
code: 'illegal-declaration',
632
-
message: `The $ prefix is reserved, and cannot be used for variable and import names`
632
+
message: 'The $ prefix is reserved, and cannot be used for variable and import names'
633
633
});
634
634
}
635
635
@@ -867,8 +867,8 @@ export default class Component {
0 commit comments