1 Star 1 Fork 1

YOKE/vue-virtual-drag-list

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rollup.config.js 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
YOKE 提交于 2024-10-18 00:53 . feat: added prop placeholderClass
import babel from '@rollup/plugin-babel';
import terser from '@rollup/plugin-terser';
import resolve from '@rollup/plugin-node-resolve';
import commonJs from '@rollup/plugin-commonjs';
import typescript from '@rollup/plugin-typescript';
const packageJson = require('./package.json');
const version = packageJson.version;
const homepage = packageJson.homepage;
const extensions = ['.js', '.jsx', '.ts', '.tsx'];
const banner = `
/*!
* vue-virtual-drag-list v${version}
* open source under the MIT license
* ${homepage}
*/
`;
export default {
external: ['vue'],
input: 'src/index.tsx',
output: [
{
format: 'umd',
file: 'dist/virtual-drag-list.js',
name: 'VirtualList',
sourcemap: false,
globals: {
vue: 'Vue',
},
banner: banner.replace(/\n/, ''),
},
{
format: 'umd',
file: 'dist/virtual-drag-list.min.js',
name: 'VirtualList',
sourcemap: false,
globals: {
vue: 'Vue',
},
banner: banner.replace(/\n/, ''),
plugins: [terser()],
},
],
plugins: [resolve(), commonJs(), typescript(), babel({ extensions, babelHelpers: 'bundled' })],
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mfuu/vue-virtual-drag-list.git
git@gitee.com:mfuu/vue-virtual-drag-list.git
mfuu
vue-virtual-drag-list
vue-virtual-drag-list
main

搜索帮助