mirror of
https://github.com/coreui/coreui-icons.git
synced 2025-08-16 21:53:59 +02:00
release: @coreui/icons-react v2.0.0-rc.6
This commit is contained in:
35
packages/icons-react/rollup.config.js
Normal file
35
packages/icons-react/rollup.config.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import commonjs from '@rollup/plugin-commonjs'
|
||||
import external from 'rollup-plugin-peer-deps-external'
|
||||
import resolve from '@rollup/plugin-node-resolve'
|
||||
import typescript from '@rollup/plugin-typescript'
|
||||
import css from 'rollup-plugin-import-css'
|
||||
import pkg from './package.json'
|
||||
export default {
|
||||
input: 'src/index.ts',
|
||||
output: [
|
||||
{
|
||||
file: pkg.main,
|
||||
format: 'cjs',
|
||||
exports: 'named',
|
||||
sourcemap: true,
|
||||
},
|
||||
{
|
||||
file: pkg.module,
|
||||
format: 'es',
|
||||
exports: 'named',
|
||||
sourcemap: true,
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
css(),
|
||||
external(),
|
||||
resolve(),
|
||||
typescript({
|
||||
exclude: ['**/__tests__/**'],
|
||||
tsconfig: './tsconfig.json',
|
||||
}),
|
||||
commonjs({
|
||||
include: ['../../node_modules/**'],
|
||||
}),
|
||||
],
|
||||
}
|
Reference in New Issue
Block a user