diff options
author | 2023-08-11 08:14:20 -0700 | |
---|---|---|
committer | 2023-08-11 11:14:20 -0400 | |
commit | 40efae65501fc79c281e34b5af912bf837b7105b (patch) | |
tree | 8a6b834647f9e6b2b36aceaaf47397cba8ac51e7 /packages/integrations/solid | |
parent | 866ed4098edffb052239cdb26e076cf8db61b1d9 (diff) | |
download | astro-40efae65501fc79c281e34b5af912bf837b7105b.tar.gz astro-40efae65501fc79c281e34b5af912bf837b7105b.tar.zst astro-40efae65501fc79c281e34b5af912bf837b7105b.zip |
[ci] release (beta) (#7952)astro@3.0.0-beta.1@astrojs/vercel@4.0.0-beta.1@astrojs/telemetry@3.0.0-beta.1@astrojs/solid-js@3.0.0-beta.1@astrojs/react@3.0.0-beta.1@astrojs/preact@3.0.0-beta.1@astrojs/netlify@3.0.0-beta.1@astrojs/cloudflare@7.0.0-beta.1
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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'], |