when i use override(SignUpModal.prototype, 'body', (original) => { then the "this " inside override is undefined but when i use this override(SignUpModal.prototype, 'body', function(original) { then "this" is getting recognized. Why ecma systex is not working?
i am using only gulp and flarum-gulp to transpile
even when i use function(original) and "this" is getting recognized i get message below when transpiling
SyntaxError in plugin 'gulp-babel'
Message:
D:/xampp/htdocs/flarum/extensions/unlikes/js/forum/src/main.js: Unexpected
token (82:1)
for this code http://laravel.io/bin/2W731