nativejsx-loader
v2.0.0
Published
Webpack loader for treycordova/nativejsx.
Downloads
2
Maintainers
Readme
nativejsx-loader
Webpack loader for nativejsx.
So 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
.)