diff --git a/src/renderer/template.ts b/src/renderer/template.ts index 0021dc0c..038246e4 100644 --- a/src/renderer/template.ts +++ b/src/renderer/template.ts @@ -1,4 +1,5 @@ import React from "react"; +import fs from "fs"; import { render } from "./renderer"; import { isJsFile } from "../utils"; @@ -47,10 +48,24 @@ function importComponent(filepath: string): Promise