chore: update McFly config section in readme

This commit is contained in:
Ayo 2023-10-14 23:43:19 +02:00
parent 7b1fc863ef
commit 074ebed6da

View file

@ -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",
}); });
``` ```