fix(packages/lucide-solid): use jsx extension for solid build (#1964)

Co-authored-by: Karsa <karsa@sztaki.hu>
This commit is contained in:
Karsa
2024-03-09 10:41:06 +01:00
committed by GitHub
parent c9513d0bf4
commit e2af1af4f9

View File

@@ -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,