chore: update McFly config section in readme
This commit is contained in:
parent
7b1fc863ef
commit
074ebed6da
1 changed files with 3 additions and 3 deletions
|
@ -56,15 +56,15 @@ npm run dev
|
||||||
|
|
||||||
## McFly config
|
## McFly config
|
||||||
|
|
||||||
To tell McFly you want to use components, pass `registerComponents()` as one of the `onBuild` callbacks in mcfly.config.ts
|
To tell McFly you want to use components, pass the mode (only `"js"` for now) to the `components` prop mcfly.config.ts
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import registerComponents from "./packages/register-components";
|
|
||||||
import defineConfig from "./packages/define-config";
|
import defineConfig from "./packages/define-config";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
onBuild: [registerComponents()]
|
components: "js",
|
||||||
});
|
});
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue