babel / babel/gulp-babel

RangeError: Maximum call stack size exceeded when minifying Kendo UI

Open
#196 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.3k
Forks
113
PR merge metrics
No merged PRs in 30d

Description

Attempting to minify Kendo UI results in a RangeError. This appears to be a regression from `v7.0.1`. This occurs with [Kendo UI v2015.1.429](http://kendo.cdn.telerik.com/2015.1.429/js/kendo.all.min.js). This does not appear to affect the [latest version of Kendo UI](http://kendo.cdn.telerik.com/2019.3.1023/js/kendo.all.min.js).

**Dependencies:**
```
"dependencies": {
"@babel/core": "7.7.4",
"babel-preset-minify": "0.5.1",
"gulp": "^4.0.0",
"gulp-babel": "8.0.0"
}
```

**Gulp Task:**
```
const gulp = require('gulp');
const babel = require('gulp-babel');

gulp.task('min-kendo-test', function () {
return gulp.src('Scripts/kendo/kendo.all.js')
.pipe(babel({ presets: ['minify'] }))
.pipe(gulp.dest('Cooked/'));
});
```

Attempting to minify kendo.all.js results in the following output:
```
"C:\Code\Gulpfile.js" min-kendo-test
[09:38:59] Using gulpfile C:\Code\Gulpfile.js
[09:38:59] Starting 'min-kendo-test'...
[09:39:04] 'min-kendo-test' errored after 5.76 s
[09:39:04] RangeError in plugin "gulp-babel"
Message:
C:\Code\Scripts\kendo\kendo.all.js: Maximum call stack size exceeded
Process terminated with code 1.
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the `min-kendo-test` task from `Gulpfile.js` against `Scripts/kendo/kendo.all.js` with the listed Babel, babel-preset-minify, gulp, and gulp-babel versions. Compare the failing Kendo UI v2015.1.429 input with the reported latest version, and verify that the affected input can be minified without a RangeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.