0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples/snowpack/astro.config.mjs
Matthew Phillips 854d0feb34
Add support for React components. (#18)
* Add support for React components.

This adds support for react components via a new `extensions` config in astro.config.mjs. In the future we can extend this to do things like look at the import statements, as Snowpack does.

* Fix the tests
2021-03-23 13:47:54 -04:00

9 lines
No EOL
121 B
JavaScript

export default {
projectRoot: '.',
hmxRoot: './astro',
dist: './_site',
extensions: {
'.jsx': 'preact'
}
}