{"id":22094,"library":"rollup-plugin-jess","title":"rollup-plugin-jess","description":"Rollup plugin that compiles Jess CSS preprocessor files into JavaScript modules at build time. Currently at v1.0.8-alpha (alpha stage), with low release cadence. Requires Rollup ^2.0.0 as a peer dependency. Differentiators: dedicated integration for the Jess language, TypeScript declarations included. Alternatives like generic CSS rollup plugins (e.g., rollup-plugin-postcss) require additional configuration for custom syntaxes.","status":"active","version":"1.0.8-alpha.8","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","typescript"],"install":[{"cmd":"npm install rollup-plugin-jess","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-jess","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-jess","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency; plugin requires Rollup >=2.0.0 to hook into the build pipeline.","package":"rollup","optional":false}],"imports":[{"note":"ESM only; CommonJS require will not work because the package is type: module and uses ESM syntax. For Rollup configs in CJS, use dynamic import: const jess = (await import('rollup-plugin-jess')).default;","wrong":"const jess = require('rollup-plugin-jess');","symbol":"default export (jess)","correct":"import jess from 'rollup-plugin-jess'"},{"note":"The plugin also exports a named export `jess` which is the same as default. Both work, but importing as default is more idiomatic due to single-function usage.","wrong":"import jess from 'rollup-plugin-jess'","symbol":"jess (as named export)","correct":"import { jess } from 'rollup-plugin-jess'"},{"note":"TypeScript declaration ships with the package; JessOptions is exported as a named type for plugin configuration. Only import as type to avoid runtime inclusion.","wrong":"import { JessOptions } from 'rollup-plugin-jess' (if used at runtime)","symbol":"type JessOptions","correct":"import type { JessOptions } from 'rollup-plugin-jess'"}],"quickstart":{"code":"// rollup.config.js\nimport jess from 'rollup-plugin-jess';\nimport { defineConfig } from 'rollup';\n\nexport default defineConfig({\n  input: 'src/main.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'esm'\n  },\n  plugins: [\n    jess({\n      // Jess configuration options (see jesscss.github.io)\n      // e.g., compress: false\n    })\n  ]\n});","lang":"typescript","description":"Rollup configuration importing the jess plugin, converting Jess files in the build pipeline."},"warnings":[{"fix":"Pin to exact version and monitor for breaking changes before production use.","message":"Plugin is in alpha version (1.0.8-alpha). API may change without major version bump.","severity":"deprecated","affected_versions":"<1.0.0"},{"fix":"Do not use with Rollup 3+; consider using rollup-plugin-jess-ng fork or wait for update.","message":"Plugin expects Rollup ^2.0.0; incompatible with Rollup 3+.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Upgrade Node.js to >=12 or use a transpiler for the plugin.","message":"Requires Node.js >=12; older versions may cause cryptic module resolution errors.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Evaluate alternative CSS preprocessors or ensure Jess is still maintained for your use case.","message":"Jess framework itself (jesscss) may be deprecated; last release in 2019. Plugin depends on it.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `npm install rollup-plugin-jess --save-dev` (or yarn equivalent) in project root.","cause":"Plugin not installed or npm install incomplete.","error":"Error: Cannot find module 'rollup-plugin-jess'"},{"fix":"Use dynamic import: const jess = (await import('rollup-plugin-jess')).default; in CommonJS context, or convert rollup.config.js to ES module.","cause":"Using CommonJS require in an ESM-only package; jess is the default export but not available via require as a function.","error":"TypeError: jess is not a function"},{"fix":"Install Rollup 2.x: `npm install rollup@^2.0.0 --save-dev`.","cause":"Rollup is missing or version mismatch (e.g., Rollup 3.x installed).","error":"Error: Peer dependency rollup@^2.0.0 not installed"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}