Skip to content

Commit

Permalink
fix: root dynamic import
Browse files Browse the repository at this point in the history
  • Loading branch information
xlsft committed Mar 21, 2024
1 parent a3ab670 commit f75dce6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default class HTSX {

const root_path = path.join(this.options.root, HTSXRootFileNames.root)
const root_path_css = path.join(this.options.root, HTSXRootFileNames.root_css)
const root_import = await import(root_path)
const root_import = await import(`file://${root_path}`)
const root_css = await exists(root_path_css) === true ? await Deno.readTextFile(root_path_css) : null

const root_html = await root_import.default(props)
Expand Down
Empty file removed todo.md
Empty file.

0 comments on commit f75dce6

Please sign in to comment.