Registry / devops / parcel-plugin-jsy

parcel-plugin-jsy

JSON →
library0.2.1jsnpmunverified

A Parcel 1.x plugin that transpiles JSY syntax to standard JavaScript without requiring Babel. Current stable version 0.2.1. JSY is a superset of JavaScript with simplified syntax (e.g., trailing commas, optional semicolons, and concise arrow functions). This plugin integrates JSY directly into the Parcel bundling pipeline, replacing the traditional Babel toolchain for JSY projects. It is specific to Parcel 1.x (parcel-bundler peer dependency) and is not compatible with Parcel v2. Published under the MIT license, it has limited maintenance frequency.

npm install parcel-plugin-jsy
INSTALL
IMPORT
SIG · PARCEL-PLUGIN-JSY
P
parcel-plugin-jsy
devopsjavascriptv0.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 (plugin registration)
// Package works via Parcel plugin resolution automatically
const parcelPluginJsy = require('parcel-plugin-jsy');
This is a Parcel 1.x plugin; it is automatically loaded when installed. No explicit import or require is needed.
package.json
"devDependencies": { "parcel-plugin-jsy": "^0.2.1" }
"dependencies": { "parcel-plugin-jsy": "^0.2.1" }
Best practice: install as devDependency since it's a build-time tool.
Parcel bundler usage
parcel build index.html
parcel-plugin-jsy build index.html
The plugin is invoked automatically by Parcel; no separate CLI command.

Demonstrates installing the required dependencies, writing a simple JSY file, and building it with Parcel 1.x.

// 1. Install dependencies npm install --save-dev parcel-bundler@^1.12.4 parcel-plugin-jsy@^0.2.1 // 2. Create a JSY file (e.g., app.jsy) // JSY example: const add = (a, b) -> a + b console.log add(1, 2) // 3. Create an HTML file that references app.jsy // <!DOCTYPE html> // <html><body><script src="app.jsy"></script></body></html> // 4. Build with Parcel // npx parcel build index.html
Debug
Known issues
deprecatedparcel-plugin-jsy is only compatible with Parcel 1.x (parcel-bundler). It does not work with Parcel v2.
fix
If using Parcel v2, consider alternatives or use JSY with a different bundler.
affects: >=0.0.0
breakingThe plugin requires peer dependency parcel-bundler@^1.12.4. Installing with a different version will cause errors or unexpected behavior.
fix
Ensure you have parcel-bundler@^1.12.4 installed: npm install --save-dev parcel-bundler@^1.12.4
affects: >=0.0.0
gotchaparcel-plugin-jsy auto-registers as a plugin; do not attempt to import or require it explicitly in your code. Doing so may cause runtime errors.
fix
Only add the package as a dependency; Parcel will discover it automatically.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'parcel-plugin-jsy'
Plugin is not installed or not in the correct location.
fix
Run npm install --save-dev parcel-plugin-jsy
Error: Cannot find module 'parcel-bundler'
Missing peer dependency parcel-bundler.
fix
Run npm install --save-dev parcel-bundler@^1.12.4
Unhandled rejection Error: ENOENT: no such file or directory...
Parcel version mismatch (using Parcel v2 instead of v1).
fix
Use parcel-bundler@^1.12.4 instead of parcel.
Upgrade
Version history
0.2.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
parcel-plugin-jsy — npm install parcel-plugin-jsy · libregistry