Compile React's jsx on-the-fly when building kraken based express applications.
This kraken-devtools plugin, finds all the .jsx
files in the given source directory and desugars them to simple Javascript to be used with React.
in kraken middleware config file
"middleware": {
"devtools": {
"enabled": true,
"priority": 35,
"module": {
"name": "kraken-devtools",
"arguments": [
"path:./src_path",
"path:./destination_path",
{
"jsx": {
"module": "kraken-devtools-jsx",
"files": "destination_path_for_jsx/*.js"
}
}
]
}
}
}