mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 17:27:43 +01:00
* Update `svgo` and `svgson` version and fix some tests * Update eslint-related packages and fix all linter errors * Update all rollup-related packages version * Update all rollup-related packages (part 2) * Update the rest of package which need to be updated * Fix unwanted comment * Fix unwanted comment (again)
47 lines
900 B
JavaScript
47 lines
900 B
JavaScript
import plugins from '../../rollup.plugins.mjs';
|
|
import pkg from './package.json' assert { type: 'json' };
|
|
|
|
const packageName = 'LucideVue';
|
|
const outputFileName = 'lucide-vue';
|
|
const outputDir = 'dist';
|
|
const inputs = ['src/lucide-vue.js'];
|
|
const bundles = [
|
|
{
|
|
format: 'umd',
|
|
inputs,
|
|
outputDir,
|
|
minify: true,
|
|
},
|
|
{
|
|
format: 'umd',
|
|
inputs,
|
|
outputDir,
|
|
},
|
|
{
|
|
format: 'cjs',
|
|
inputs,
|
|
outputDir,
|
|
},
|
|
];
|
|
|
|
const configs = bundles
|
|
.map(({ inputs, outputDir, format, minify }) =>
|
|
inputs.map(input => ({
|
|
input,
|
|
plugins: plugins(pkg, minify),
|
|
external: ['vue'],
|
|
output: {
|
|
name: packageName,
|
|
file: `${outputDir}/${format}/${outputFileName}${minify ? '.min' : ''}.js`,
|
|
format,
|
|
sourcemap: true,
|
|
globals: {
|
|
vue: 'vue',
|
|
},
|
|
},
|
|
})),
|
|
)
|
|
.flat();
|
|
|
|
export default configs;
|