vant/packages/vant-use/rollup.config.js
2021-11-11 11:08:02 +08:00

19 lines
317 B
JavaScript

import path from 'path';
import esbuild from 'rollup-plugin-esbuild';
export default {
input: path.join(__dirname, 'src', 'index.ts'),
output: [
{
dir: 'dist/cjs',
format: 'cjs',
},
{
dir: 'dist/esm',
format: 'esm',
},
],
external: ['vue'],
plugins: [esbuild()],
};