feat: 屏蔽MC中无用的类库
This commit is contained in:
		@@ -4,11 +4,11 @@
 | 
			
		||||
 | 
			
		||||
var NodeBuffer;
 | 
			
		||||
 | 
			
		||||
try {
 | 
			
		||||
  // A trick for browserified version, to not include `Buffer` shim
 | 
			
		||||
  var _require = require;
 | 
			
		||||
  NodeBuffer = _require('buffer').Buffer;
 | 
			
		||||
} catch (__) {}
 | 
			
		||||
// try {
 | 
			
		||||
//   // A trick for browserified version, to not include `Buffer` shim
 | 
			
		||||
//   var _require = require;
 | 
			
		||||
//   NodeBuffer = _require('buffer').Buffer;
 | 
			
		||||
// } catch (__) {}
 | 
			
		||||
 | 
			
		||||
var Type       = require('../type');
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -9,14 +9,14 @@ var esprima;
 | 
			
		||||
//    If not found - try to fallback to window.esprima. If not
 | 
			
		||||
//    found too - then fail to parse.
 | 
			
		||||
//
 | 
			
		||||
try {
 | 
			
		||||
  // workaround to exclude package from browserify list.
 | 
			
		||||
  var _require = require;
 | 
			
		||||
  esprima = _require('esprima');
 | 
			
		||||
} catch (_) {
 | 
			
		||||
  /*global window */
 | 
			
		||||
  if (typeof window !== 'undefined') esprima = window.esprima;
 | 
			
		||||
}
 | 
			
		||||
// try {
 | 
			
		||||
//   // workaround to exclude package from browserify list.
 | 
			
		||||
//   var _require = require;
 | 
			
		||||
//   esprima = _require('esprima');
 | 
			
		||||
// } catch (_) {
 | 
			
		||||
//   /*global window */
 | 
			
		||||
//   if (typeof window !== 'undefined') esprima = window.esprima;
 | 
			
		||||
// }
 | 
			
		||||
 | 
			
		||||
var Type = require('../../type');
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user