Skip to content

Commit 519a1c4

Browse files
matthewpFredKSchottnatemoo-resarah11918
authored
JSX refactor (#7924)
* JSX refactor * Get preact/compat test to pass * Use include config * Remove old astro flavored markdown test * Move babel dep to preact * Remove errant debugger * Update lockfile * Update the multi-framework example * Update e2e tests * Fix nested-in-vue tests * Add back in astro check * Update packages/astro/src/core/create-vite.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/astro/src/core/create-vite.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/integrations/solid/src/index.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/integrations/solid/src/index.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update .changeset/perfect-horses-tell.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Move the comment about the include config * Remove redundant alias config * Use react's own preamble code * Use the base for the preamble * Remove solid redundancy * Update .changeset/perfect-horses-tell.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update based on review comments * Oops --------- Co-authored-by: Fred K. Schott <fkschott@gmail.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
1 parent 2ee418e commit 519a1c4

135 files changed

Lines changed: 856 additions & 801 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.changeset/cool-feet-rest.md‎

Lines changed: 7 additions & 0 deletions
Lines changed: 7 additions & 0 deletions

‎.changeset/perfect-horses-tell.md‎

Lines changed: 27 additions & 0 deletions

‎.changeset/slimy-carrots-sell.md‎

Lines changed: 9 additions & 0 deletions

‎examples/framework-multiple/astro.config.mjs‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,11 @@ import solid from '@astrojs/solid-js';
88
// https://astro.build/config
99
export default defineConfig({
1010
// Enable many frameworks to support all different kinds of components.
11-
integrations: [preact(), react(), svelte(), vue(), solid()],
11+
integrations: [
12+
preact({ include: ['**/preact/*'] }),
13+
solid({ include: ['**/solid/*'] }),
14+
react({ include: ['**/react/*'] }),
15+
svelte(),
16+
vue(),
17+
],
1218
});

examples/framework-multiple/src/components/PreactCounter.tsx renamed to examples/framework-multiple/src/components/preact/PreactCounter.tsx

File renamed without changes.

examples/framework-multiple/src/components/ReactCounter.tsx renamed to examples/framework-multiple/src/components/react/ReactCounter.tsx

File renamed without changes.

examples/framework-multiple/src/components/SolidCounter.tsx renamed to examples/framework-multiple/src/components/solid/SolidCounter.tsx

File renamed without changes.

examples/framework-multiple/src/components/SvelteCounter.svelte renamed to examples/framework-multiple/src/components/svelte/SvelteCounter.svelte

File renamed without changes.

examples/framework-multiple/src/components/VueCounter.vue renamed to examples/framework-multiple/src/components/vue/VueCounter.vue

File renamed without changes.

0 commit comments

Comments
 (0)