Registry / devops / joy-loader

joy-loader

JSON →
library0.0.2jsnpmunverified

A webpack loader for the Joy Go-to-JS transpiler, which converts Go code to JavaScript. Version 0.0.2 is an early release with no stable API. The loader integrates joy into webpack builds, but the project is in active development and not production-ready. It facilitates using Go code in webpack bundles, but lacks documentation, tests, and error handling. Compared to other transpilation loaders, it is experimental and niche.

npm install joy-loader
INSTALL
IMPORT
SIG · JOY-LOADER
J
joy-loader
devopsjavascriptv0.0.2
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
import loader from 'joy-loader'
Loader is used via webpack config, not directly imported.

This shows how to configure webpack to use joy-loader for .go files.

module.exports = { module: { rules: [ { test: /\.go$/, use: 'joy-loader' } ] } };
Debug
Known issues
breakingAPI may change at any time due to pre-1.0 status
fix
Pin to exact version and test updates
affects: 0.x
Errors
Common errors & fixes
Module not found: Error: Can't resolve 'joy-loader'
Loader not installed in project
fix
npm install joy-loader --save-dev
Error: No matching loader for .go files
Webpack config missing rule for .go
fix
Add test: /\.go$/ to module.rules
Upgrade
Version history
0.0.2latest on npm
Audit
Dependencies
webpackrequiredpeer dependency for loader usage
Agent activity
4 hits · last 30 days
node
4
Resources
joy-loader — npm install joy-loader · libregistry