nativejsx-loader
nativejsx.
Webpack loader forSo you're using Webpack. Of course you are – have a loader.
Example
let config = // ... module: preLoaders: test: /\.jsx$/ loader: 'nativejsx-loader' excludes: /node_modules/ query: variablePrefix: '_' declarationType: 'let' ;
Juicy Note :godmode:
With Webpack modules, we're able to include nativejsx dependencies for you.
(That means don't worry about appendChildren.js
, setAttributes.js
, or setStyles.js
.)