Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jsx-loader

petehunt72.4kApache 20.13.2

JSX loader for webpack

webpack, jsx

readme

JSX loader for webpack

Usage:

{..., loader: 'jsx-loader'}

To enable ES6 features, use ?harmony in your loader config. To auto insert the pragma required to process the file use the insertPragma parameter e.g. ?insertPragma=React.DOM. Flow-style type annotations can be stripped using ?stripTypes.