Can it support on-demand import in single page
ZhangTomLiang opened this issue · comments
Jerry Zhang commented
I saw the document that mentioned global import, it would be better if you can support that. thank you.
Alexandre Pereira commented
Just went into using this lib, for thos who are asking, you can bypass the globall App.use import by just importing the Diff component in your targeted file
<template>
<Diff theme="light" language="ts" ... />
</template>
<script lang="ts" setup>
import { Diff } from 'vue-diff';
import 'vue-diff/dist/index.css';
</script>