You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building with --mode production you get UglifyJs Unexpected token: keyword (const) because Uglify doesn't support ES6 modules. We had this issue in CKEditor 5 thus we have switched our builds to Terser.
When building with
--mode production
you getUglifyJs Unexpected token: keyword (const)
because Uglify doesn't support ES6 modules. We had this issue in CKEditor 5 thus we have switched our builds to Terser.We should probably do the same for collaboration samples. For example, below lines:
https://github.com/ckeditor/ckeditor5-collaboration-samples/blob/master/track-changes-for-angular/vendor/ckeditor5/webpack.config.js#L33-L46
https://github.com/ckeditor/ckeditor5-collaboration-samples/blob/master/track-changes-for-angular/vendor/ckeditor5/package.json#L39
should be replaced with:
webpack.config.js
package.json
Link to Uglify - mishoo/UglifyJS#3156 (comment). It seems no longer maintained.
The text was updated successfully, but these errors were encountered: