diff --git a/gulpfile.js b/gulpfile.js index 9a5f1d48..2325e05a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -15,7 +15,8 @@ gulp.task('compile', [ 'compile-bin', 'compile-lib', 'compile-server', - 'compile-client' + 'compile-client', + 'remove-strict-mode' ]) gulp.task('compile-bin', () => { @@ -50,6 +51,16 @@ gulp.task('compile-client', () => { .pipe(notify('Compiled client files')) }) +gulp.task('remove-strict-mode', ['compile-lib'], () => { + return gulp.src('dist/lib/eval-script.js') + .pipe(babel({ + babelrc: false, + plugins: ['babel-plugin-transform-remove-strict-mode'] + })) + .pipe(gulp.dest('dist/lib')) + .pipe(notify('Completed removing strict mode for eval script')) +}) + gulp.task('copy', ['copy-pages']) gulp.task('copy-pages', () => { diff --git a/package.json b/package.json index a546dade..6a59b4aa 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,7 @@ }, "devDependencies": { "babel-eslint": "7.1.1", + "babel-plugin-transform-remove-strict-mode": "0.0.2", "babel-preset-env": "1.1.4", "benchmark": "2.1.3", "coveralls": "2.11.15",