vant/packages/vant-lazyload/rollup.config.js
2020-11-30 19:05:28 +08:00

14 lines
330 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.js'),
output: {
dir: 'lib',
format: 'cjs',
},
external: ['vue'],
plugins: [nodeResolve(), babel({ babelHelpers: 'runtime' })],
};