virtual-dom-loader
A virtual-hyperscript, used in virtual-dom, to JSX converter for Webpack
webpack.config.js
moduleexports = entry: './app.js' output: path: './build' filename: 'main.js' module: loaders: test: /\.js$/ loader: 'virtual-dom' ;
someFile.js
var h = ;var createElement = ; var node = ; documentbody;
Options
JSX
Set the function that will create the virtual elements.
test: /\.js$/ loader: 'virtual-dom?jsx=someLib.DOM'
Please send pull requests if you need more options.