text: // index_dev.js
  // for dev package of shadow-widget, released with react & react-dom
  // package by: browserify src/index_dev.js -o bundle.js -t [ babelify --compact false --presets [ env react ] ]
  
  'use strict';
  
  var React = require('react');
  var ReactDOM = require('react-dom');
  
  var W = require('./react_widget');
  var T = require('./template');
  
  //---------------------------------
  // trigger shadow-widget's loading
  //---------------------------------
  var exportModules = {
    react: React,
    'react-dom': ReactDOM,
    'shadow-widget': W,
  };
  
  var reactRequire_ = arguments[3], reactModules_ = arguments[4], reactExport_ = arguments[5];
  if ((typeof reactRequire_ == 'function') && reactModules_) {         // from browserify
    Object.keys(exportModules).forEach( function(sName) {
      reactExport_[sName] = { exports:exportModules[sName] };
    });
    
    // regist pseudo module, module ID is fixed to 9999
    reactModules_[9999] = [W.$utils.loadingEntry,reactModules_[1][1]]; // reactModules_[1][1] is first module's depending modules dict
    setTimeout( function() {
      if (!W.$main.isStart) {
        W.$main.isStart = true;
        reactRequire_(reactModules_,reactExport_,[9999]); // load pseudo module
      }
    },300);  // delay, wait main modules ready and let window initial event run first
  }
  else if (typeof __webpack_require__ != 'undefined' && __webpack_require__.c) { // from webpack  
    // regist pseudo module, module ID is fixed to 9999
    var module = { exports:{}, id:9999, loaded:true };
    __webpack_require__.c[9999] = module;
    
    setTimeout( function() {
      if (!W.$main.isStart) {
        W.$main.isStart = true;
        W.$utils.loadingEntry( function(nameOrId) { // wrap require()
          if (typeof nameOrId == 'number')
            return __webpack_require__(nameOrId);   // such as require(1), only used when debugging
          else {
            var ret = exportModules[nameOrId];
            if (!ret)
              console.log('can not find module: ' + nameOrId);
            return ret;
          }
        }, module,module.exports);
      }
    },300);
  }
  else console.log('fatal error: unknown package tool!');
  