firstline = false
}
+ // make `require('../common')` work
+ line = line.replace(/require\('\.\.\/common'\);/g, 'require(\'./common\')')
+
// require browser buffer
line = line.replace(/(.*)require\('buffer'\)(.*)/g, '$1require(\'../../\')$2')
'use strict';
var Buffer = require('../../').Buffer;
-const common = require('../common');
+const common = require('./common');
const assert = require('assert');
const vm = require('vm');
'use strict';
var Buffer = require('../../').Buffer;
-var common = require('../common');
+var common = require('./common');
var assert = require('assert');
'use strict';
var Buffer = require('../../').Buffer;
-const common = require('../common');
+const common = require('./common');
var assert = require('assert');