Webpack loader for nativejsx.
So you're using Webpack. Of course you are – have a loader.
let config = {
// ...
module: {
preLoaders: [
{
test: /\.jsx$/,
loader: 'nativejsx-loader',
excludes: /node_modules/,
query: {
variablePrefix: '_',
declarationType: 'let'
}
}
]
}
};
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
.)