mirror of
https://github.com/iconify/iconify.git
synced 2024-11-10 07:11:00 +00:00
19 lines
517 B
JavaScript
19 lines
517 B
JavaScript
import svelte from 'rollup-plugin-svelte';
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
import pkg from './package.json';
|
|
|
|
const name = pkg.name
|
|
.replace(/^(@\S+\/)?(svelte-)?(\S+)/, '$3')
|
|
.replace(/^\w/, (m) => m.toUpperCase())
|
|
.replace(/-\w/g, (m) => m[1].toUpperCase());
|
|
|
|
export default {
|
|
input: 'src/index.js',
|
|
output: [
|
|
{ file: pkg.module, format: 'es' },
|
|
{ file: pkg.main, format: 'umd', name },
|
|
],
|
|
plugins: [svelte(), resolve(), commonjs()],
|
|
};
|