/** Rollup plugins */
import Min from 'rollup-plugin-babel-minify'
import TS from 'rollup-plugin-typescript2'

/** Utils */
import { join } from 'path'
import { tmpdir } from 'os'

export default {
  /** Import path */
  input: join(__dirname, 'src', 'index.ts'),

  output: {
    /** Export path */
    file: join(__dirname, 'dist.js'),

    /** Output options */
    format: 'umd',

    /** Name for the umd export */
    name: 'Slup.Theming'
  },

  external: [ 'inferno-component', 'inferno' ],

  globals: {
    'inferno-component': 'Inferno.Component',
    'inferno': 'Inferno'
  },

  plugins: [
    TS({ cacheRoot: `${tmpdir()}/.rpt2_cache` }),

    Min({
      comments: false,
      banner:
`/** 
 * This module is a part of Slup: 
 * https://github.com/slupjs/slup 
 */`
    })

  ]
}
@@ -1,78 +1,48 @@
 /** 
-Rollup plugins */%0Aimport Min from 'rollup-plugin-babel-minify'
+Impprt the base configuration */
 %0Aimport 
 TS f
@@ -41,42 +41,38 @@
 ort 
-TS
+extend
  from '
-rollup-plugin-typescript2
+../../rollup.base
 '%0A%0A/
@@ -114,36 +114,8 @@
 ath'
-%0Aimport %7B tmpdir %7D from 'os'
 %0A%0Aex
@@ -127,16 +127,23 @@
 default 
+extend(
 %7B%0A  /** 
@@ -378,363 +378,18 @@
 lup.
-Theming'%0A  %7D,%0A%0A  external: %5B 'inferno-component', 'inferno' %5D,%0A%0A  globals: %7B%0A    'inferno-component': 'Inferno.
 Com
-ponent',%0A    'inferno': 'Inferno'%0A  %7D,%0A%0A  plugins: %5B%0A    TS(%7B cacheRoot: %60$%7Btmpdir()%7D/.rpt2_cache%60 %7D),%0A%0A    Min(%7B%0A      comments: false,%0A      banner:%0A%60/** %0A * This module is a part of Slup: %0A * https://github.com/slupjs/slup %0A */%60%0A    %7D)%0A%0A  %5D%0A%7D
+mon'%0A  %7D%0A%7D)

Use shared config for the common module