fix(compiler-sfc): should not remove import statements with no specifier when compiling script setup
This commit is contained in:
@@ -181,10 +181,13 @@ return { a, b }
|
||||
|
||||
exports[`SFC compile <script setup> imports should hoist and expose imports 1`] = `
|
||||
"import { ref } from 'vue'
|
||||
import 'foo/css'
|
||||
|
||||
export default {
|
||||
expose: [],
|
||||
setup(__props) {
|
||||
|
||||
|
||||
return { ref }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user