mirror of https://github.com/sveltejs/svelte
Merge pull request #190 from sveltejs/gh-188
throw if default export is not an object literalpull/198/head
commit
6b4d8bebbf
@ -0,0 +1,8 @@
|
||||
[{
|
||||
"message": "Duplicate export 'default'",
|
||||
"pos": 37,
|
||||
"loc": {
|
||||
"line": 3,
|
||||
"column": 8
|
||||
}
|
||||
}]
|
@ -0,0 +1,4 @@
|
||||
<script>
|
||||
export default {};
|
||||
export default {};
|
||||
</script>
|
@ -0,0 +1,8 @@
|
||||
[{
|
||||
"message": "Default export must be an object literal",
|
||||
"pos": 25,
|
||||
"loc": {
|
||||
"line": 2,
|
||||
"column": 16
|
||||
}
|
||||
}]
|
@ -0,0 +1,3 @@
|
||||
<script>
|
||||
export default potato;
|
||||
</script>
|
Loading…
Reference in new issue