This is a preprocesser for the webpack module bundler. It support the ' if ' directive,similar to C ' #ifdef '
see example.js
//common
var ab = {
a : 9,
b : 100
}
/* #if version-b */
(function(){
"A can't see this"
})()
/* #end */
/* #if version-a */
(function(){
"B can't see this"
})()
/* #end */
// #if version-b,version-c
(function(){
"A can't see this"
})()
// #end
// #if version-a,version-c
(function(){
"B can't see this"
})()
// #end