From d3ffe73c63ff1af91254928820c742a1b15f4311 Mon Sep 17 00:00:00 2001 From: Alexandre Mouton-Brady Date: Mon, 3 Jan 2022 22:59:55 +0100 Subject: [PATCH] :pencil: Adding `extensions` option to README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 0df95e2..6d96448 100644 --- a/README.md +++ b/README.md @@ -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).