npm.io
2.0.0-rc.70 • Published 1 week ago

@master/css-integration

Licence
MIT
Version
2.0.0-rc.70
Deps
2
Size
25 kB
Vulns
0
Weekly
0
Stars
1.9K

@master/css-integration

Shared Master CSS integration contracts, virtual module protocols, and build helpers.

Installation

npm install @master/css-integration

Responsibility

@master/css-integration is adapter-neutral glue for official build and framework integrations. It owns virtual module IDs, ?master-css-manifest request helpers, generated manifest and emittedGlobals module source helpers, runtime injection source, ambient client declarations, and explicit Node/build helper subpaths.

It does not implement project manifest discovery, CSS import graph resolution, extraction, runtime hydration, or framework lifecycle behavior.

Public subpaths

Subpath Purpose
@master/css-integration Shared browser-safe contracts.
@master/css-integration/client Ambient TypeScript declarations for virtual modules.
@master/css-integration/module General virtual module helpers.
@master/css-integration/manifest-module Manifest virtual module IDs, query helpers, and JSON helpers.
@master/css-integration/manifest-facade Generated manifest facade source helpers.
@master/css-integration/style-module Generated style module helpers.
@master/css-integration/emitted-globals-module Generated emittedGlobals module helpers.
@master/css-integration/runtime Runtime injection source helpers.
@master/css-integration/manifest-loader-plugin Build-only manifest loader plugin contracts.
@master/css-integration/node Node filesystem/path helpers.

Client types

Add the client type reference when TypeScript imports Master CSS virtual modules:

/// <reference types="@master/css-integration/client" />

This declares modules such as virtual:master-css-manifest, virtual:master-css-emitted-globals, generated CSS modules, and ?master-css-manifest imports.