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'
}
}