We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 516caf9 commit 782eeefCopy full SHA for 782eeef
gulpfile.js
@@ -53,6 +53,14 @@ gulp.task('js', function() {
53
'(function(){var _,platform;',
54
'}.call(this))'
55
))
56
+ .pipe(replace('root.platform = parse()', 'platform = parse()'))
57
+ .pipe(replace('var _ = runInContext()', '_ = runInContext()'))
58
+ .pipe(replace('(freeWindow || freeSelf || {})._ = _', ''))
59
+ .pipe(replace('root._ = _', ''))
60
+
61
+ // Ensure that Benchmark.js uses the local copies of lodash and Platform.js.
62
+ .pipe(replace('var _ = context && context._ || req(\'lodash\') || root._;', ''))
63
+ .pipe(replace('\'platform\': context.platform', '\'platform\': platform'))
64
65
// Minify the result.
66
//.pipe(uglify())
0 commit comments