In addition to the external modules that are included by default in the project, sometimes we need to import other external modules. Let's take ant-design-vue as an example:
::: tip Install dependencies into a specific package
pnpm
command to install dependencies.:::
# cd /path/to/your/package
pnpm add ant-design-vue
import { createApp } from 'vue';
import Antd from 'ant-design-vue';
import App from './App';
import 'ant-design-vue/dist/reset.css';
const app = createApp(App);
app.use(Antd).mount('#app');
<template>
<a-button>text</a-button>
</template>
<script setup lang="ts">
import { Button } from 'ant-design-vue';
</script>
<template>
<Button>text</Button>
</template>
::: warning Note
:::