mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
feat: add @vant/lazyload pacakge
This commit is contained in:
13
packages/vant-lazyload/rollup.config.js
Normal file
13
packages/vant-lazyload/rollup.config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
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' })],
|
||||
};
|
Reference in New Issue
Block a user