Registry / web-framework / parcel-transformer-jsy

parcel-transformer-jsy

JSON →
library0.2.1jsnpmunverified

A Parcel 2.x transformer plugin for JSY syntax, a JavaScript superset with syntactic sugar. Current stable version is 0.2.1. It transpiles JSY files to standard JavaScript without relying on Babel, instead using the JSY compiler directly. Designed for Parcel 2.x (alpha.3.2+), it integrates as a Parcel transformer plugin, enabling JSX-like syntax and other JSY features in a Parcel build pipeline. Differentiates from Babel-based solutions by being lightweight and Parcel-native.

npm install parcel-transformer-jsy
INSTALL
IMPORT
SIG · PARCEL-TRANSFORMER
P
parcel-transformer-jsy
web-frameworkjavascriptv0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

default export
import parcelTransformerJSY from 'parcel-transformer-jsy'
const parcelTransformerJSY = require('parcel-transformer-jsy')
ESM only; plugin is typically loaded by Parcel via parcel config, not imported directly in user code.
ParcelTransformerJSY
import ParcelTransformerJSY from 'parcel-transformer-jsy'
const { ParcelTransformerJSY } = require('parcel-transformer-jsy')
Default export is the transformer class; named export not available.
jsyOptions
import jsyOptions from 'parcel-transformer-jsy/dist/config'
import { jsyOptions } from 'parcel-transformer-jsy'
Options are exported from a separate entry point since v0.2.0.

Configure Parcel 2.x to use plugin for JSY files and run build.

// .parcelrc { "extends": "@parcel/config-default", "transformers": { "*.jsy": ["parcel-transformer-jsy"] } } // package.json { "scripts": { "build": "parcel build src/index.jsy" }, "devDependencies": { "parcel": "^2.0.0", "parcel-transformer-jsy": "^0.2.0" } }
parcel --version
Debug
Known issues
gotchaPlugin requires Parcel 2.0.0 or newer; does not work with Parcel 1.x.
fix
Use Parcel 2 and ensure package.json lists parcel ^2.0.0.
affects: >=0.0.0
deprecatedThe package name on npm is 'parcel-transformer-jsy' but the GitHub repo uses 'parcel-plugin-jsy' (legacy).
fix
Use npm package parcel-transformer-jsy for installation.
affects: >=0.0.0
gotchaJSY syntax not supported by standard linters/editors; may cause false positives.
fix
Use JSY-specific ESLint plugin or disable linting for .jsy files.
affects: >=0.0.0
breakingIn version 0.2.0, the transformer configuration key changed from 'jsy' to 'parcel-transformer-jsy' in .parcelrc.
fix
Update .parcelrc to use 'parcel-transformer-jsy' as the transformer plugin name.
affects: <0.2.0
Errors
Common errors & fixes
Error: Cannot find module '@parcel/plugin'
Missing PeerDependency @parcel/plugin when installing plugin standalone.
fix
Add @parcel/plugin as a devDependency: npm install --save-dev @parcel/plugin
Parcel build fails: "Unknown file type .jsy"
JSY file extension not mapped to transformer in .parcelrc.
fix
Add {"transformers": {"*.jsy": ["parcel-transformer-jsy"]}} to .parcelrc.
SyntaxError: Unexpected token '.' (or other JSY syntax)
JSY syntax not transformed because plugin not applied or outdated version.
fix
Ensure .parcelrc correctly references plugin and run 'npm update parcel-transformer-jsy'.
Upgrade
Version history
0.2.1latest on npm
Audit
Dependencies
parcelrequiredPlugin depends on Parcel 2.x and registers as a transformer
@jsy-lang/jsyrequiredCore JSY compiler used for transformation
Agent activity
2 hits · last 30 days
node
2
Resources
parcel-transformer-jsy — npm install parcel-transformer-jsy · libregistry