Skip to content

Commit 6a528ad

Browse files
committed
CLIENT-1531: fix build
1 parent d149596 commit 6a528ad

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: gulpfile.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
import { IMetaJSON, IPackageJSON, TBuild, TConnection, TPlatform } from './ts-scripts/interface';
1818
import * as templateCache from 'gulp-angular-templatecache';
1919
import * as htmlmin from 'gulp-htmlmin';
20-
import { readFileSync } from 'fs';
20+
import { readFileSync, writeFileSync } from 'fs';
2121
import { render } from 'less';
2222

2323
const zip = require('gulp-zip');
@@ -339,7 +339,10 @@ task('babel', ['concat-develop'], function () {
339339
'transform-object-rest-spread'
340340
]
341341
}))
342-
.pipe(gulp.dest(tmpJsPath));
342+
.pipe(gulp.dest(tmpJsPath))
343+
.on('end', () => {
344+
writeFileSync(bundlePath, `(function () {${readFileSync(bundlePath, 'utf8')}})()`);
345+
});
343346
});
344347

345348
task('uglify', ['babel', 'templates'], function (done) {

0 commit comments

Comments
 (0)