mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 21:07:43 +01:00
fix(packages/lucide-solid): use jsx extension for solid build (#1964)
Co-authored-by: Karsa <karsa@sztaki.hu>
This commit is contained in:
@@ -30,7 +30,7 @@ const configs = bundles
|
||||
input,
|
||||
plugins: [
|
||||
babel({
|
||||
extensions: ['.ts', '.tsx', '.js'],
|
||||
extensions: ['.ts', '.tsx', '.js', '.jsx'],
|
||||
babelHelpers: 'bundled',
|
||||
presets: [
|
||||
'babel-preset-solid',
|
||||
@@ -50,10 +50,14 @@ const configs = bundles
|
||||
esbuild.build({
|
||||
entryPoints: ['./src/**/*.tsx', './src/**/*.ts'],
|
||||
outdir: './dist/source',
|
||||
outExtension: {
|
||||
'.js': '.jsx',
|
||||
},
|
||||
loader: {
|
||||
'.js': 'jsx',
|
||||
},
|
||||
jsx: 'preserve',
|
||||
jsxImportSource: 'solid-js',
|
||||
bundle: true,
|
||||
format: 'esm',
|
||||
sourcemap: true,
|
||||
|
||||
Reference in New Issue
Block a user