azu / azu/gulp-remove-use-strict
Interferes with gulp-uglify
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
I get this error only when using gulp-remove-use-strict.
> >
> events.js:160
> throw er; // Unhandled 'error' event
> ^
> GulpUglifyError: unable to minify JavaScript
> at createError (/Users/sean/dev/web/node_modules/gulp-uglify/lib/create-error.js:6:14)
> at wrapper (/Users/sean/dev/web/node_modules/lodash/_createHybridWrapper.js:88:15)
> at trycatch (/Users/sean/dev/web/node_modules/gulp-uglify/minifier.js:26:12)
> at DestroyableTransform.minify [as _transform] (/Users/sean/dev/web/node_modules/gulp-uglify/minifier.js:76:19)
> at DestroyableTransform.Transform._read (/Users/sean/dev/web/node_modules/readable-stream/lib/_stream_transform.js:159:10)
> at DestroyableTransform.Transform._write (/Users/sean/dev/web/node_modules/readable-stream/lib/_stream_transform.js:147:83)
> at doWrite (/Users/sean/dev/web/node_modules/readable-stream/lib/_stream_writable.js:313:64)
> at writeOrBuffer (/Users/sean/dev/web/node_modules/readable-stream/lib/_stream_writable.js:302:5)
> at DestroyableTransform.Writable.write (/Users/sean/dev/web/node_modules/readable-stream/lib/_stream_writable.js:241:11)
> at Transform.ondata (/Users/sean/dev/web/node_modules/gulp-insert/node_modules/readable-stream/lib/_stream_readable.js:572:20)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported pipeline using gulp-remove-use-strict with gulp-uglify, then inspect the GulpUglifyError stack trace and the referenced minifier behavior. Done means identifying the incompatibility and confirming that the same JavaScript can be processed successfully with both plugins.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100