You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
497 B
26 lines
497 B
import typescript from 'rollup-plugin-typescript2'
|
|
|
|
export default {
|
|
input: './src/index.ts',
|
|
output: [
|
|
{
|
|
format: 'iife',
|
|
name: 'NP',
|
|
dest: './build/index.iife.js'
|
|
},
|
|
{
|
|
format: 'umd',
|
|
name: 'NP',
|
|
dest: './build/index.umd.js'
|
|
},
|
|
{
|
|
format: 'cjs',
|
|
dest: './build/index.js'
|
|
},
|
|
{
|
|
format: 'es',
|
|
dest: './build/index.es.js'
|
|
}
|
|
],
|
|
plugins: [typescript({cacheRoot: `${require('temp-dir')}/.rpt2_cache`})]
|
|
}
|
|
|