Skip to content

@gluonjs/core / packages/vite/src / GluonVitePluginOptions

Interface: GluonVitePluginOptions ​

Properties ​

decorators? ​

readonly optional decorators?: GluonDecoratorMode

TypeScript decorator semantics. Standard decorators are the default.


diagnostics? ​

readonly optional diagnostics?: boolean


include? ​

readonly optional include?: RegExp | ((id) => boolean)


universal? ​

readonly optional universal?: boolean | { manifestFile?: string; shadowStyles?: boolean; }

Union Members ​

boolean


Type Literal ​

{ manifestFile?: string; shadowStyles?: boolean; }

manifestFile? ​

readonly optional manifestFile?: string

shadowStyles? ​

readonly optional shadowStyles?: boolean

Make emitted CSS assets available to SSR Shadow DOM roots by stable asset reference.

Example ​

Choose compiler diagnostic reporting, exact module inclusion, and universal client asset-manifest output for the Vite integration:

ts
import gluon, { type GluonVitePluginOptions } from '@gluonjs/vite';

const options = {
  diagnostics: true,
  include: (id: string) => id.startsWith('/workspace/src/'),
  universal: { manifestFile: 'gluon-assets.json' },
} satisfies GluonVitePluginOptions;
const plugin = gluon(options);
console.log(plugin.name, plugin.enforce); // gluon, pre

Version-matched documentation. Examples are checked against the public package contracts.