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

SSR support #97

@talentlessguy

Description

@talentlessguy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions