Skip to content

Commit

Permalink
Merge pull request #566 from inokawa/solid-start
Browse files Browse the repository at this point in the history
Publish .jsx for SSR in Solid
  • Loading branch information
inokawa authored Dec 2, 2024
2 parents 59cf14b + 33604a9 commit 64cebdc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"./solid": {
"types": "./lib/solid/index.d.ts",
"solid": "./lib/solid/index.jsx",
"import": "./lib/solid/index.mjs",
"default": "./lib/solid/index.js"
},
Expand Down
25 changes: 25 additions & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,31 @@ export default [
],
external,
},
// solid (for SSR)
{
input: "src/solid/index.ts",
output: [
{
file: pkg.exports["./solid"].solid,
format: "es",
sourcemap: true,
},
],
jsx: "preserve",
// FIXME: props._resizer call inside ListItem is unexpectedly treeshaked by rollup.
treeshake: false,
plugins: [
typescript({
tsconfig: "./tsconfig.json",
outDir: ".",
// declaration: true,
exclude: ["**/*.{spec,stories}.*"],
jsx: "preserve",
}),
// terserPlugin(),
],
external,
},
// svelte
{
input: "src/core/index.ts",
Expand Down

0 comments on commit 64cebdc

Please sign in to comment.