Skip to main content

Exporting

Jess currently keeps exporting simple and predictable.

Current practical export patterns​

  • In stylesheet space, share reusable APIs through @-compose stylesheet modules. The @-from / @-use script-module syntax binds exports at compile time. See Modules & imports.
  • In bundler space, rollup-plugin-jess currently exports the compiled CSS string as the default JS export and emits a CSS asset.

Notes​

There is no dedicated language-level @export directive documented as stable yet. As that API settles, this page will become the canonical guide.