A plugin for the Babylon parser (fork of Babel parser) that enables parsing of CSSX syntax, allowing CSS to be embedded directly in JavaScript. Version 1.0.2 is the latest stable release. It is part of the CSSX family for transpiling CSS-in-JS. Provides integration with Babylon to handle CSS template literals.
npm install babylon-plugin-cssxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates registering the cssx plugin with Babylon to parse a CSSX tagged template literal.
Migrate to @babel/parser and use @babel/plugin-syntax-cssx or equivalent.
Add 'cssx' to the plugins list: babylon.parse(code, { plugins: ['cssx'] }).Ensure you pass { plugins: ['cssx'] } as the second argument to babylon.parse().