The sfc files packaged by rollup only work above 3.2.0
Version
3.2.6
Reproduction link
https://github.com/ckpack/v-ui-template#use-in-page
Steps to reproduce
<!DOCTYPE html>
<html lang="en">
<head>
<title>VUI</title>
<!-- it is ok -->
<script src="https://unpkg.com/vue@3.2.0/dist/vue.global.prod.js"></script>
<!-- it is error: console t.normalizeClass is not a function -->
<!-- <script src="https://unpkg.com/vue@3.1.5/dist/vue.global.prod.js"></script> -->
<script src="https://unpkg.com/v-ui-template@1.0.3/dist/index.min.js"></script>
</head>
<body>
<div id="app">
<v-button @click="handlerClick">Test</v-button>
<v-label :label="count"></v-label>
</div>
</body>
<script>
const app = Vue.createApp({
data() {
return {
count: 0,
};
},
methods: {
handlerClick() {
this.count = 1;
},
},
});
app.use(VUI);
app.mount('#app')
</script>
</html>
What is expected?
The sfc files packaged by rollup can work above 3.0.0
What is actually happening?
The sfc files packaged by rollup only work above 3.2.0