diff options
Diffstat (limited to 'packages/integrations/solid')
-rw-r--r-- | packages/integrations/solid/CHANGELOG.md | 8 | ||||
-rw-r--r-- | packages/integrations/solid/package.json | 2 | ||||
-rw-r--r-- | packages/integrations/solid/src/index.ts | 11 |
3 files changed, 13 insertions, 8 deletions
diff --git a/packages/integrations/solid/CHANGELOG.md b/packages/integrations/solid/CHANGELOG.md index 197286f76..6b1e4b012 100644 --- a/packages/integrations/solid/CHANGELOG.md +++ b/packages/integrations/solid/CHANGELOG.md @@ -1,5 +1,13 @@ # @astrojs/solid-js +## 3.0.0-beta.1 + +### Major Changes + +- [#7924](https://github.com/withastro/astro/pull/7924) [`519a1c4e8`](https://github.com/withastro/astro/commit/519a1c4e8407c7abcb8d879b67a9f4b960652cae) Thanks [@matthewp](https://github.com/matthewp)! - New `include` and `exclude` config options + + The Solid integration now has new `include` and `exclude` config options. Use these if you want to use Solid alongside another JSX framework; include specifies files to be compiled for Solid and `exclude` does the opposite. + ## 3.0.0-beta.0 ### Major Changes diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json index 580545f44..5dc00a86e 100644 --- a/packages/integrations/solid/package.json +++ b/packages/integrations/solid/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/solid-js", - "version": "3.0.0-beta.0", + "version": "3.0.0-beta.1", "description": "Use Solid components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/solid/src/index.ts b/packages/integrations/solid/src/index.ts index 1385ffc21..127d9ddb6 100644 --- a/packages/integrations/solid/src/index.ts +++ b/packages/integrations/solid/src/index.ts @@ -1,10 +1,7 @@ import type { AstroIntegration, AstroRenderer } from 'astro'; import solid, { type Options as ViteSolidPluginOptions } from 'vite-plugin-solid'; -async function getViteConfiguration( - isDev: boolean, - { include, exclude }: Options = {}, -) { +async function getViteConfiguration(isDev: boolean, { include, exclude }: Options = {}) { // https://github.com/solidjs/vite-plugin-solid // We inject the dev mode only if the user explicitly wants it or if we are in dev (serve) mode const nestedDeps = ['solid-js', 'solid-js/web', 'solid-js/store', 'solid-js/html', 'solid-js/h']; @@ -28,11 +25,11 @@ async function getViteConfiguration( esbuild: { // To support using alongside other JSX frameworks, still let // esbuild compile stuff. Solid goes first anyways. - include: /\.(m?ts|[jt]sx)$/ + include: /\.(m?ts|[jt]sx)$/, }, - } + }; }, - } + }, ], ssr: { external: ['babel-preset-solid'], |