text: import * as path from 'path'
  import nodeResolve from 'rollup-plugin-node-resolve'
  import typescript from 'rollup-plugin-typescript2'
  import commonjs from 'rollup-plugin-commonjs'
  import pkg from './package.json'
  
  const resolve = _path => path.resolve(__dirname, _path)
  export default {
  	input: resolve('./src/index.ts'),
  	output: [
  		{
  			file: pkg.main,
  			name: 'vueInbrowserCompiler',
  			format: 'umd'
  		},
  		{
  			file: pkg.module,
  			format: 'es' // the preferred format
  		}
  	],
  	plugins: [
  		// allow rollup to look for modules in node_modules
  		nodeResolve(),
  		// Compile TypeScript files
  		typescript({
  			useTsconfigDeclarationDir: true,
  			tsconfig: './tsconfig.build.json',
  			cacheRoot: '../../node_modules/.rollup_vue-compiler_cache'
  		}),
  		// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
  		commonjs()
  	],
  	external: Object.keys(pkg.dependencies)
  }
  