A library for transpiling JSX for use without React (v0.9.9). It allows creating custom JSX transpilers by providing a serializer function that converts parsed JSX components into any output format. Has no dependencies. Includes a companion webpack loader (generic-jsx-loader). Suitable for projects that want JSX syntax without React, such as with Hyperscript or custom DOM libraries. Release cadence is low; maintained sporadically.
npm install generic-jsx-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a custom serializer that converts JSX to hyperscript calls using generic-jsx-transpiler.
Pass only one of 'source' or 'inputPath'. When 'source' is set, 'inputPath' is ignored.
Set 'async' property in options to true if you need Promise-based parsing. Otherwise, code expects synchronous result.
Wrap your serializer function in { serialize: myFunction } object.Ensure you have created a Parser instance: const parser = new Parser({ serializer }); then call parser.parse({ source: '...' });Run 'npm install generic-jsx-transpiler --save-dev' in your project directory.
Provide an object with a 'serialize' function: const serializer = { serialize: (parsedComp) => { /* ... */ } };No dependency data recorded yet.