1 Star 0 Fork 35

johnforrest/react-photo-view

forked from MinJieLiu/react-photo-view 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rollup.config.js 847 Bytes
一键复制 编辑 原始数据 按行查看 历史
MinJieLiu 提交于 2021-07-15 16:05 . fix: 更新依赖
import typescript from 'rollup-plugin-typescript2';
import commonjs from 'rollup-plugin-commonjs';
import external from 'rollup-plugin-peer-deps-external';
import postcss from 'rollup-plugin-postcss';
import resolve from 'rollup-plugin-node-resolve';
import url from 'rollup-plugin-url';
import svgr from '@svgr/rollup';
import pkg from './package.json';
export default {
input: 'src/index.ts',
output: [
{
file: pkg.main,
format: 'cjs',
exports: 'named',
sourcemap: true,
},
{
file: pkg.module,
format: 'es',
exports: 'named',
sourcemap: true,
},
],
plugins: [
external(),
postcss({
extract: `index.css`,
}),
url(),
svgr(),
resolve(),
typescript({
rollupCommonJSResolveHack: true,
clean: true,
}),
commonjs(),
],
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/johnforrest/react-photo-view.git
git@gitee.com:johnforrest/react-photo-view.git
johnforrest
react-photo-view
react-photo-view
master

搜索帮助