mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 20:37:41 +01:00
refactor: Adds repo shared package @lucide/shared (#1904)
* Fixed import of toKebabCase helper function * Added utils package * utils * Make utils package work in build * Add lucide-shared * Transpile solid with esbuild * Fix resolve modules * Cleanup * Format files * Fix properties plugins function * Fix properties plugins in lucide package * Revert remove resolve plugin and cleanup * Update snapshots * Revert icon changes --------- Co-authored-by: Rohan <rohancrrm@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import plugins, { replace } from '@lucide/rollup-plugins';
|
||||
import plugins from '@lucide/rollup-plugins';
|
||||
import pkg from './package.json' assert { type: 'json' };
|
||||
import dts from 'rollup-plugin-dts';
|
||||
import getAliasesEntryNames from './scripts/getAliasesEntryNames.mjs';
|
||||
@@ -62,7 +62,7 @@ const configs = bundles
|
||||
}) =>
|
||||
inputs.map((input) => ({
|
||||
input,
|
||||
plugins: plugins(pkg, minify),
|
||||
plugins: plugins({ pkg, minify }),
|
||||
external: ['react', 'prop-types', ...external],
|
||||
output: {
|
||||
name: packageName,
|
||||
@@ -80,6 +80,7 @@ const configs = bundles
|
||||
format,
|
||||
sourcemap: true,
|
||||
preserveModules,
|
||||
preserveModulesRoot: 'src',
|
||||
globals: {
|
||||
react: 'react',
|
||||
'prop-types': 'PropTypes',
|
||||
|
||||
Reference in New Issue
Block a user