0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/renderers/renderer-preact/CHANGELOG.md
github-actions[bot] 8f17217e02
Version Packages (next) (#796)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-21 18:12:11 -05:00

1.3 KiB

@astrojs/renderer-preact

0.2.0-next.0

Minor Changes

  • bd18e14: Switches to the new JSX Transform originally introduced for React v17. This also leverages the new jsxTransformOptions options for renderers.

    This change also removes the need for importing your Framework's jsxFactory directly, which means you can wave goodbye to import React from "react"; and import { h } from "preact";.

    If you are using mutliple frameworks and a file doesn't reference react or preact, Astro might not be able to locate the correct renderer! You can add a pragma comment like /** @jsxImportSource preact */ to the top of your file. Alternatively, just import the JSX pragma as you traditionally would have.

Patch Changes

  • bd18e14: Update check logic to exclude false-positives from SolidJS

0.1.3

Patch Changes

  • 0abd251: Allows renderers to provide knownEntrypoint config values

0.1.2

Patch Changes

  • 9d4a40f: Fixes bug with using arrow function components

0.1.1

Patch Changes

  • ab2972b: Update package.json engines for esm support

0.1.0

Minor Changes

0.1.0-next.0

Minor Changes