build/index.js
function(config, cb){
    // This will tell webpack to create a new chunk
    rq.ensure(['INDEX_PATH'],function(rq){
      let library = rq('INDEX_PATH');
      library = library.default || library; // To preven issues between versions
      cb(
        // Expected to export an initializing function
        library(config)
      );
    },'NAME');
  }
function(config, cb){
    // This will tell webpack to create a new chunk
    rq.ensure(['INDEX_PATH'],function(rq){
      let library = rq('INDEX_PATH');
      library = library.default || library; // To preven issues between versions
      cb(
        // Expected to export an initializing function
        library(config)
      );
    },'NAME');
  }
function ( config , cb ) { // This will tell webpack to create a new chunk rq . ensure ( [ 'INDEX_PATH' ] , function ( rq ) { let library = rq ( 'INDEX_PATH' ) ; library = library . default || library ; // To preven issues between versions cb ( // Expected to export an initializing function library ( config ) ) ; } , 'NAME' ) ; }
Create a common loader
Create a common loader