-
Notifications
You must be signed in to change notification settings - Fork 157
Ensure working with Vue 3 + custom babel config #258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Should be good in 5.0.0-alpha.2 |
I got error in 5.0.0-aplha.3. My Babel config https://github.com/vueComponent/ant-design-vue/blob/feat-vue3/.babelrc |
I will take a look at your project. I guess it isn't respecting |
yeah, it works when I renamed it to |
I think the later versions of babel don't support |
How to suport |
I have not tried this yet. I was hoping it would "just work" - the SFC compiler (should) take care of it, mostly. What happens when you tried it? |
reproduction link: https://github.com/Wizard67/vue3-test |
Yep, we need to do a check for More info here: https://github.com/vuejs/rfcs/blob/sfc-improvements/active-rfcs/0000-sfc-script-setup.md#transform-api |
<script setup> works. The example needs to be updated a bit because the syntax changed.
```
<script setup lang="ts">
import { defineProps, ref } from 'vue'
const props = defineProps({
msg: String
})
const count = ref(0)
</script>
|
Script setup keeps changing. We should update the dependencies here and make sure it works with the latest version. |
Issue found here: vuejs/vue-cli#5714
The text was updated successfully, but these errors were encountered: