@lemon-peel/unplugin-resolver
v0.0.0-alpha.6
Published
Resolver for Lemon-Peel basic on unplugin-vue-components
Downloads
8
Maintainers
Readme
Install
# npm
npm i @lemon-peel/unplugin-resolver -D
# yarn
yarn add @lemon-peel/unplugin-resolver --dev
# pnpm
pnpm add @lemon-peel/unplugin-resolver -D
Usage
// vite.config.ts
import Components from 'unplugin-vue-components/vite';
import LomonPeelResolver from '@lemon-peel/unplugin-resolver';
export default defineConfig({
plugins: [
Components({
resolvers: LomonPeelResolver({ /* options */ }),
}),
],
});
// rollup.config.js
import Components from 'unplugin-vue-components/rollup';
import LomonPeelResolver from '@lemon-peel/unplugin-resolver';
export default {
plugins: [
Components({
resolvers: LomonPeelResolver({ /* options */ }),
}),
],
};
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('unplugin-vue-components/webpack')({
resolvers: LomonPeelResolver({ /* options */ }),
}),
],
};
Licensed as MIT.