diff --git a/packages/astro/test/fixtures/preact-component/src/components/ArrowFunction.jsx b/packages/astro/test/fixtures/preact-component/src/components/ArrowFunction.jsx new file mode 100644 index 000000000..e9bd13b21 --- /dev/null +++ b/packages/astro/test/fixtures/preact-component/src/components/ArrowFunction.jsx @@ -0,0 +1,5 @@ +import { h, Component } from 'preact'; + +export default () => { + return
; +} \ No newline at end of file diff --git a/packages/astro/test/fixtures/preact-component/src/pages/fn.astro b/packages/astro/test/fixtures/preact-component/src/pages/fn.astro index 07a2c7e3e..ced75e301 100644 --- a/packages/astro/test/fixtures/preact-component/src/pages/fn.astro +++ b/packages/astro/test/fixtures/preact-component/src/pages/fn.astro @@ -1,5 +1,6 @@ --- import FunctionComponent from '../components/Function.jsx'; +import ArrowFunctionComponent from '../components/ArrowFunction.jsx'; --- @@ -8,5 +9,6 @@ import FunctionComponent from '../components/Function.jsx';