Skip to content

Commit

Permalink
📝 Adding extensions option to README
Browse files Browse the repository at this point in the history
  • Loading branch information
amoutonbrady committed Jan 3, 2022
1 parent d71ff9e commit d3ffe73
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ They will be merged with the defaults sets by [babel-preset-solid](https://githu

Pass any additional [@babel/preset-typescript](https://babeljs.io/docs/en/babel-preset-typescript).

#### options.extensions

- Type: (string, [string, { typescript: boolean }])[]
- Default: []

An array of custom extension that will be passed through the solid compiler.
By default, the plugin only transform `jsx` and `tsx` files.
This is useful if you want to transform `mdx` files for example.

## Note on HMR

Starting from version `1.1.0`, this plugin handle automatic HMR via [solid-refresh](https://github.com/solidjs/solid-refresh).
Expand Down

0 comments on commit d3ffe73

Please sign in to comment.