Skip to content

Revert "replace babili with babel-minify package" - #2531

Merged
iAmWillShepherd merged 1 commit into
masterfrom
revert-2504-packaged-renamed
Aug 23, 2017
Merged

iAmWillShepherd merged 1 commit into
masterfrom
revert-2504-packaged-renamed

Conversation

@shiftkey

@shiftkey shiftkey commented Aug 23, 2017 •

Copy link
Copy Markdown
Member

Reverts #2504

Fixes #2522

The new package does some aggressive inlining of strings, removing non-whitespace characters that we need to parse Git output.

For example, this is what was previously generated:

const Z = '1F'
, Q = _StringfromCharCode(parseInt(Z, 16))
, ee = ['%(refname)', '%(refname:short)', '%(upstream:short)', '%(objectname)', '%(author)', '%(parent)', '%(subject)', '%(body)', `%${Z}`].join('%00');
J && J.length || (J = ['refs/heads', 'refs/remotes']);
const ne = yield U.git(['for-each-ref', `--format=${ee}`, ...J], X.path, 'getBranches')

It's currently generated as this:

const o = yield i.git(['for-each-ref', `--format=${'%(refname)%00%(refname:short)%00%(upstream:short)%00%(objectname)%00%(author)%00%(parent)%00%(subject)%00%(body)%00'}`, ...t], e.path, 'getBranches')

@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Aug 23, 2017
@shiftkey

Copy link
Copy Markdown
Member Author

🍎

@davidcelis
davidcelis requested review from iAmWillShepherd and removed request for iAmWillShepherd August 23, 2017 02:06
@j-f1

j-f1 commented Aug 23, 2017

Copy link
Copy Markdown
Contributor

Can you open an issue for this on babel/minify?

@iAmWillShepherd
iAmWillShepherd merged commit 067d33d into master Aug 23, 2017
@iAmWillShepherd
iAmWillShepherd deleted the revert-2504-packaged-renamed branch August 23, 2017 02:42
@shiftkey

Copy link
Copy Markdown
Member Author

@j-f1 when I can reproduce it against babel/minify, sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants