mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
		
			879 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			879 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import buble from 'rollup-plugin-buble'
 | 
						|
import { uglify } from 'rollup-plugin-uglify'
 | 
						|
 | 
						|
const pkg = require('./package.json')
 | 
						|
 | 
						|
const output = {
 | 
						|
    format: 'umd',
 | 
						|
    file: pkg.main,
 | 
						|
    name: 'Split',
 | 
						|
    sourcemap: false,
 | 
						|
    banner: `/*! Split.js - v${pkg.version} */\n`,
 | 
						|
}
 | 
						|
 | 
						|
export default [
 | 
						|
    {
 | 
						|
        input: 'src/split.js',
 | 
						|
        output: [
 | 
						|
            output,
 | 
						|
            {
 | 
						|
                file: pkg.module,
 | 
						|
                format: 'esm',
 | 
						|
                sourcemap: false,
 | 
						|
            },
 | 
						|
        ],
 | 
						|
        plugins: [buble()],
 | 
						|
    },
 | 
						|
    {
 | 
						|
        input: 'src/split.js',
 | 
						|
        output: {
 | 
						|
            ...output,
 | 
						|
            sourcemap: true,
 | 
						|
            file: pkg['minified:main'],
 | 
						|
        },
 | 
						|
        plugins: [
 | 
						|
            buble(),
 | 
						|
            uglify({
 | 
						|
                output: {
 | 
						|
                    comments: /^!/,
 | 
						|
                },
 | 
						|
            }),
 | 
						|
        ],
 | 
						|
    },
 | 
						|
]
 |