formatting
This commit is contained in:
parent
59b54ffb39
commit
996d5f40ca
@ -1,15 +1,17 @@
|
|||||||
import babel from 'rollup-plugin-babel'
|
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 pkg from './package.json'
|
|
||||||
// Deal with https://github.com/rollup/rollup-plugin-commonjs/issues/297
|
|
||||||
import builtins from 'rollup-plugin-node-builtins';
|
import builtins from 'rollup-plugin-node-builtins';
|
||||||
|
import commonjs from 'rollup-plugin-commonjs';
|
||||||
|
import external from 'rollup-plugin-peer-deps-external';
|
||||||
|
import pkg from './package.json';
|
||||||
|
import postcss from 'rollup-plugin-postcss';
|
||||||
|
import resolve from 'rollup-plugin-node-resolve';
|
||||||
|
import url from 'rollup-plugin-url';
|
||||||
|
|
||||||
const globals = {
|
// Deal with https://github.com/rollup/rollup-plugin-commonjs/issues/297
|
||||||
'react': 'React',
|
|
||||||
|
|
||||||
|
const globals = {
|
||||||
|
react: 'React',
|
||||||
'react-dom': 'ReactDOM',
|
'react-dom': 'ReactDOM',
|
||||||
'react-redux': 'ReactRedux',
|
'react-redux': 'ReactRedux',
|
||||||
'react-resize-detector': 'ReactResizeDetector',
|
'react-resize-detector': 'ReactResizeDetector',
|
||||||
@ -19,10 +21,10 @@ const globals = {
|
|||||||
'cornerstone-wado-image-loader': 'cornerstoneWADOImageLoader',
|
'cornerstone-wado-image-loader': 'cornerstoneWADOImageLoader',
|
||||||
'cornerstone-math': 'cornerstoneMath',
|
'cornerstone-math': 'cornerstoneMath',
|
||||||
'cornerstone-tools': 'cornerstoneTools',
|
'cornerstone-tools': 'cornerstoneTools',
|
||||||
'dcmjs': 'dcmjs',
|
dcmjs: 'dcmjs',
|
||||||
'dicom-parser': 'dicomParser',
|
'dicom-parser': 'dicomParser',
|
||||||
'ohif-core': 'OHIF',
|
'ohif-core': 'OHIF',
|
||||||
'hammerjs': 'Hammer'
|
hammerjs: 'Hammer'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -58,20 +60,20 @@ export default {
|
|||||||
commonjs({
|
commonjs({
|
||||||
include: ['node_modules/**', '.yalc/**'],
|
include: ['node_modules/**', '.yalc/**'],
|
||||||
namedExports: {
|
namedExports: {
|
||||||
'node_modules/react-vtkjs-viewport/dist/index.js': [
|
'node_modules/react-vtkjs-viewport/dist/index.js': [
|
||||||
'getImageData',
|
'getImageData',
|
||||||
'loadImageData',
|
'loadImageData',
|
||||||
'VTKViewport',
|
'VTKViewport',
|
||||||
'VTKMPRViewport',
|
'VTKMPRViewport'
|
||||||
],
|
],
|
||||||
'.yalc/react-vtkjs-viewport/dist/index.js': [
|
'.yalc/react-vtkjs-viewport/dist/index.js': [
|
||||||
'getImageData',
|
'getImageData',
|
||||||
'loadImageData',
|
'loadImageData',
|
||||||
'VTKViewport',
|
'VTKViewport',
|
||||||
'VTKMPRViewport',
|
'VTKMPRViewport'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
external: Object.keys(pkg.peerDependencies || {}),
|
external: Object.keys(pkg.peerDependencies || {})
|
||||||
}
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user