{"id":26068,"library":"parcel-transformer-jsy","title":"Parcel JSY Transformer","description":"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.","status":"active","version":"0.2.1","language":"javascript","source_language":"en","source_url":"https://github.com/jsy-lang/parcel-transformer-jsy","tags":["javascript","parcel","parcel-transformer","parcel-plugin","JSY"],"install":[{"cmd":"npm install parcel-transformer-jsy","lang":"bash","label":"npm"},{"cmd":"yarn add parcel-transformer-jsy","lang":"bash","label":"yarn"},{"cmd":"pnpm add parcel-transformer-jsy","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Plugin depends on Parcel 2.x and registers as a transformer","package":"parcel","optional":false},{"reason":"Core JSY compiler used for transformation","package":"@jsy-lang/jsy","optional":false}],"imports":[{"note":"ESM only; plugin is typically loaded by Parcel via parcel config, not imported directly in user code.","wrong":"const parcelTransformerJSY = require('parcel-transformer-jsy')","symbol":"default export","correct":"import parcelTransformerJSY from 'parcel-transformer-jsy'"},{"note":"Default export is the transformer class; named export not available.","wrong":"const { ParcelTransformerJSY } = require('parcel-transformer-jsy')","symbol":"ParcelTransformerJSY","correct":"import ParcelTransformerJSY from 'parcel-transformer-jsy'"},{"note":"Options are exported from a separate entry point since v0.2.0.","wrong":"import { jsyOptions } from 'parcel-transformer-jsy'","symbol":"jsyOptions","correct":"import jsyOptions from 'parcel-transformer-jsy/dist/config'"}],"quickstart":{"code":"// .parcelrc\n{\n  \"extends\": \"@parcel/config-default\",\n  \"transformers\": {\n    \"*.jsy\": [\"parcel-transformer-jsy\"]\n  }\n}\n\n// package.json\n{\n  \"scripts\": {\n    \"build\": \"parcel build src/index.jsy\"\n  },\n  \"devDependencies\": {\n    \"parcel\": \"^2.0.0\",\n    \"parcel-transformer-jsy\": \"^0.2.0\"\n  }\n}","lang":"javascript","description":"Configure Parcel 2.x to use plugin for JSY files and run build."},"warnings":[{"fix":"Use Parcel 2 and ensure package.json lists parcel ^2.0.0.","message":"Plugin requires Parcel 2.0.0 or newer; does not work with Parcel 1.x.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use npm package parcel-transformer-jsy for installation.","message":"The package name on npm is 'parcel-transformer-jsy' but the GitHub repo uses 'parcel-plugin-jsy' (legacy).","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Use JSY-specific ESLint plugin or disable linting for .jsy files.","message":"JSY syntax not supported by standard linters/editors; may cause false positives.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Update .parcelrc to use 'parcel-transformer-jsy' as the transformer plugin name.","message":"In version 0.2.0, the transformer configuration key changed from 'jsy' to 'parcel-transformer-jsy' in .parcelrc.","severity":"breaking","affected_versions":"<0.2.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Add @parcel/plugin as a devDependency: npm install --save-dev @parcel/plugin","cause":"Missing PeerDependency @parcel/plugin when installing plugin standalone.","error":"Error: Cannot find module '@parcel/plugin'"},{"fix":"Add {\"transformers\": {\"*.jsy\": [\"parcel-transformer-jsy\"]}} to .parcelrc.","cause":"JSY file extension not mapped to transformer in .parcelrc.","error":"Parcel build fails: \"Unknown file type .jsy\""},{"fix":"Ensure .parcelrc correctly references plugin and run 'npm update parcel-transformer-jsy'.","cause":"JSY syntax not transformed because plugin not applied or outdated version.","error":"SyntaxError: Unexpected token '.' (or other JSY syntax)"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}