This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Description
Currently trying to use pico with hyperapp on a server results in this:
ReferenceError: document is not defined
at file:///home/v1rtl/Coding/hyperlight/examples/with-styles/dist/index.mjs?345763421581:21:13
at ModuleJob.run (node:internal/modules/esm/module_job:152:23)
at async Loader.import (node:internal/modules/esm/loader:166:24)
at async importPage (file:///home/v1rtl/Coding/hyperlight/packages/hyperlight/dist/hyperlight.js:52:10)
at async buildSinglePage (file:///home/v1rtl/Coding/hyperlight/packages/hyperlight/dist/hyperlight.js:79:11)
I haven't found anything in the repository about server rendering, so asking it here.
Is there any way to make picostyle work on a server? Maybe with some kind of plugin? Or picostyle is not designed for any server rendering?