ts-mini-transpiler-css

raw JSON →
0.0.2 verified Fri May 01 auth: no javascript

A CSS transpiler plugin for ts-mini, currently at version 0.0.2. This package is part of the ts-mini ecosystem and provides CSS processing capabilities, likely converting or transforming CSS within ts-mini projects. It is in early development (WIP) with no stable release cadence established. Differentiators: tight integration with ts-mini, but limited documentation and usage outside that ecosystem.

error Cannot find module 'ts-mini-transpiler-css'
cause Package not installed or not in node_modules.
fix
Run npm install ts-mini-transpiler-css
error tsMiniCss is not a function
cause Incorrect import: used named import instead of default.
fix
Use import tsMiniCss from 'ts-mini-transpiler-css'
error TypeError: Cannot read properties of undefined (reading 'css')
cause Trying to use output property before transpilation completes.
fix
Ensure tsMiniCss is called correctly and returns a promise/result.
breaking Package is early WIP; API may change without notice.
fix Pin to exact version and monitor GitHub repository for changes.
gotcha Requires ts-mini to be installed; standalone use may not be supported.
fix Install ts-mini as a dependency: npm install ts-mini.
deprecated No known deprecations yet.
npm install ts-mini-transpiler-css
yarn add ts-mini-transpiler-css
pnpm add ts-mini-transpiler-css

Shows importing ts-mini-transpiler-css and using it standalone or within ts-mini's transpile function.

import tsMiniCss from 'ts-mini-transpiler-css';
import { transpile } from 'ts-mini';

const cssCode = '.class { color: red; }';
const result = tsMiniCss(cssCode);
console.log(result); // Transpiled CSS output

transpile({ code: cssCode, transforms: [tsMiniCss] });