fix new message; whitespace stuff

pull/5847/head
Conduitry 6 years ago
parent e8f0e2e7a8
commit eab7da1db5

@ -1227,7 +1227,7 @@ export default class Component {
should_add_as_dependency = false;
component.warn(node as any, {
code: 'module-script-reactive-declaration',
message: `"${name}" is declared in a module variable and will not be reactive`
message: `"${name}" is declared in a module script and will not be reactive`
});
}
}

@ -159,4 +159,4 @@ class Component extends SvelteComponent {
}
}
export default Component;
export default Component;

@ -12,7 +12,7 @@ export default {
a: moduleA
b: moduleB
moduleA: moduleA
moduleB: moduleB
moduleB: moduleB
`);
}
};

@ -1,5 +1,5 @@
<script context="module">
let moduleA = 'moduleA';
let moduleA = 'moduleA';
let moduleB = 'moduleB';
</script>
<script>
@ -12,4 +12,4 @@
a: {a}
b: {b}
moduleA: {moduleA}
moduleB: {moduleB}
moduleB: {moduleB}

@ -1,6 +1,6 @@
<script context="module">
let foo;
let foo;
</script>
<script>
$: bar = foo;
</script>
$: bar = foo;
</script>

@ -1,16 +1,16 @@
[
{
"code": "module-script-reactive-declaration",
"message": "\"foo\" is declared in a module variable and will not be reactive",
"pos": 67,
"message": "\"foo\" is declared in a module script and will not be reactive",
"pos": 65,
"start": {
"character": 67,
"column": 11,
"character": 65,
"column": 10,
"line": 5
},
"end": {
"character": 70,
"column": 14,
"character": 68,
"column": 13,
"line": 5
}
}

Loading…
Cancel
Save