* Added container class for plugins that care for registration of submodules * Added extensions manager that cares for adding modules to store * Make extensions require less knowledge of internal extension management * Reformatting * Update generateStaticSite to use ohif-viewer, remove old OHIFViewer-react folder * Add yarn.lock so Netlify knows to use Yarn * Fix for copying static site folder * Try to fix netlify build which is stuck uploading * Try to fix static site deployment * Try to fix static site deployment again * Try to fix static site deployment one more time * Extracted pdf plugin into external package * Removed some unused dependencies * Published pdf extension to npm registry * Added external microscopy extension (work in progress) * Extraction of microscopy plugin working now * Added microscopy extension npm package to package.json * Increase ohif-core version * update yarn.lock * Fix error in readme * Fix authentication error in pdf plugin * Remove readme, update packages, add redirect for netlify * netlify test * netlify test 2 * netlify test 2, forgot to add new redirects file * Use public dicom server for demo * Another netlify try * Another netlify try 2 * Another netlify try 3 * Another netlify try 4
51 lines
1.1 KiB
JavaScript
51 lines
1.1 KiB
JavaScript
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'
|
|
// Deal with https://github.com/rollup/rollup-plugin-commonjs/issues/297
|
|
import builtins from 'rollup-plugin-node-builtins';
|
|
|
|
export default {
|
|
input: 'src/index.js',
|
|
output: [
|
|
{
|
|
file: pkg.main,
|
|
format: 'umd',
|
|
name: 'ohif-dicom-pdf-extension',
|
|
sourcemap: true,
|
|
exports: 'named',
|
|
globals: {
|
|
'react': 'React',
|
|
'react-dom': 'ReactDOM'
|
|
}
|
|
},
|
|
{
|
|
file: pkg.module,
|
|
format: 'es',
|
|
sourcemap: true
|
|
}
|
|
],
|
|
plugins: [
|
|
builtins(),
|
|
external(),
|
|
postcss({
|
|
modules: false
|
|
}),
|
|
url(),
|
|
svgr(),
|
|
babel({
|
|
exclude: 'node_modules/**',
|
|
plugins: [ '@babel/external-helpers' ],
|
|
externalHelpers: true,
|
|
runtimeHelpers: true
|
|
}),
|
|
resolve(),
|
|
commonjs()
|
|
],
|
|
external: ['hammerjs']
|
|
}
|