1 Star 0 Fork 0

朱满根/react2-cornerstone-viewport

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rollup.config.js 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
Askaley 提交于 2021-06-23 20:59 . update cornerstone-tools version to 5.1.5
import babel from 'rollup-plugin-babel';
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';
const globals = {
react: 'React',
'react-dom': 'ReactDOM',
'cornerstone-core': 'cornerstone',
'cornerstone-math': 'cornerstoneMath',
'cs-cornerstone-tools': 'cornerstoneTools',
'cornerstone-wado-image-loader': 'cornerstoneWADOImageLoader',
'dicom-parser': 'dicomParser',
hammerjs: 'Hammer',
};
export default {
input: 'src/index.js',
output: [
{
file: pkg.main,
format: 'cjs',
sourcemap: true,
globals,
},
{
file: pkg.browser,
format: 'umd',
name: 'react-cornerstone-viewport',
sourcemap: true,
globals,
},
{
file: pkg.module,
format: 'es',
sourcemap: true,
globals,
},
],
plugins: [
external(),
postcss({
modules: false,
}),
url(),
svgr(),
babel({
exclude: 'node_modules/**',
plugins: ['@babel/transform-runtime'],
runtimeHelpers: true,
}),
resolve(),
commonjs(),
],
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhumangen/react2-cornerstone-viewport.git
git@gitee.com:zhumangen/react2-cornerstone-viewport.git
zhumangen
react2-cornerstone-viewport
react2-cornerstone-viewport
master

搜索帮助