fix(compiler-sfc): <script setup> warning

The warning was showing even if the component is only using a classic `<script>`
This commit is contained in:
cexbrayat
2020-07-15 17:09:33 +02:00
committed by Evan You
parent 5f61aa0f71
commit 9146cc485e
2 changed files with 6 additions and 4 deletions

View File

@@ -457,7 +457,7 @@ describe('SFC compile <script setup>', () => {
)
})
test('error on duplicated defalut export', () => {
test('error on duplicated default export', () => {
expect(
parse(`
<script>