vant/packages/vant-popperjs/rollup.config.js
2020-12-04 13:31:42 +08:00

19 lines
388 B
JavaScript

import path from 'path';
import babel from '@rollup/plugin-babel';
import nodeResolve from '@rollup/plugin-node-resolve';
export default {
input: path.join(__dirname, 'src', 'index.ts'),
output: [
{
dir: 'dist/cjs',
format: 'cjs',
},
{
dir: 'dist/esm',
format: 'esm',
},
],
plugins: [nodeResolve(), babel({ babelHelpers: 'runtime' })],
};