From 074ebed6da3c225af79cfd6a0d1ca7b075bcded8 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 14 Oct 2023 23:43:19 +0200 Subject: [PATCH] chore: update McFly config section in readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e1c03f4..37c966f 100644 --- a/README.md +++ b/README.md @@ -56,15 +56,15 @@ npm run dev ## 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 -import registerComponents from "./packages/register-components"; import defineConfig from "./packages/define-config"; export default defineConfig({ - onBuild: [registerComponents()] + components: "js", }); + ```