mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
19 lines
317 B
JavaScript
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()],
|
|
};
|