Commit 157d9aeb authored by Arunoda Susiripala's avatar Arunoda Susiripala Committed by Naoyuki Kanezawa

Remove strict-mode from the eval-script. (#520)

* Remove strict-mode from the eval-script.

* Use exact version for babel-plugin-transform-remove-strict-mode

* Use babelrc=false
parent 499a4f11
......@@ -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', () => {
......
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment