Registry / serialization / rollup-plugin-jsy-lite

rollup-plugin-jsy-lite

JSON →
library1.7.3jsnpmunverified

A Rollup plugin that transpiles JSY syntax to standard JavaScript without requiring Babel. Current stable version is 1.7.3, with a maintenance release cadence. It is part of the JSY language ecosystem, providing a lightweight alternative to Babel-based JSY transpilation by using the `@jsy-lang/jsy-lite` parser directly. Key differentiators: no Babel dependency, simple configuration, and support for multiple output formats (CJS, UMD, ESM). Suitable for projects that want to use JSY syntax with Rollup but avoid the complexity of Babel.

npm install rollup-plugin-jsy-lite
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-JSY-
R
rollup-plugin-jsy-lite
serializationjavascriptv1.7.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import rpi_jsy from 'rollup-plugin-jsy-lite'
const rpi_jsy = require('rollup-plugin-jsy-lite')
ESM-only; use import syntax.
jsy
import { jsy } from 'rollup-plugin-jsy-lite'
import { rpi_jsy } from 'rollup-plugin-jsy-lite'
Named export available as 'jsy', not 'rpi_jsy'.
plugin
import plugin from 'rollup-plugin-jsy-lite'
Default export is the plugin function; can be imported with any name.

Example Rollup configuration using rollup-plugin-jsy-lite to transpile JSY syntax with node-resolve plugin.

import rpi_jsy from 'rollup-plugin-jsy-lite'; import resolve from '@rollup/plugin-node-resolve'; export default { input: 'src/index.jsy', output: { file: 'dist/index.js', format: 'cjs' }, plugins: [ resolve(), rpi_jsy() ] };
Debug
Known issues
deprecatedrollup-plugin-node-resolve is deprecated; use @rollup/plugin-node-resolve instead.
fix
Replace rollup-plugin-node-resolve with @rollup/plugin-node-resolve in devDependencies and import.
affects: >=1.0.0
gotchaJSY files must have .jsy extension; otherwise plugin won't process them.
fix
Ensure input files use .jsy extension.
affects: >=1.0.0
gotchaPlugin must be included in Rollup plugins array; no default processing.
fix
Add `rpi_jsy()` to the plugins array in rollup.config.js.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'rollup-plugin-jsy-lite'
Package not installed or not in node_modules.
fix
Run `npm install -D rollup-plugin-jsy-lite`.
SyntaxError: Unexpected token
JSY file has syntax that is not valid JavaScript and plugin not applied.
fix
Ensure rollup-plugin-jsy-lite is added to the plugins array and file extension is .jsy.
Error: You must specify 'output.format'
Rollup configuration missing output format.
fix
Add a format property (e.g., 'cjs', 'es', 'umd') to output options.
Upgrade
Version history
1.7.3latest on npm
Audit
Dependencies
rolluprequiredPeer dependency required to use the plugin
@jsy-lang/jsy-literequiredCore JSY parser/transpiler
Agent activity
4 hits · last 30 days
node
4
Resources
rollup-plugin-jsy-lite — npm install rollup-plugin-jsy-lite · libregistry