Include babelify step in browserify calls

This allows using ES6 syntax in our code, while maintaining backwards
compatibility for the generated file.
This commit is contained in:
Martin von Gagern
2017-01-07 01:29:41 +01:00
committed by Kevin Barabash
parent 549104c5a8
commit 9b565a6375
7 changed files with 39 additions and 5 deletions

View File

@@ -6,4 +6,4 @@ $(BUILDDIR)/contrib/auto-render.min.js: $(BUILDDIR)/auto-render.js
$(UGLIFYJS) < $< > $@
$(BUILDDIR)/auto-render.js: auto-render.js
$(BROWSERIFY) $< --standalone renderMathInElement > $@
$(BROWSERIFY) -t [ babelify ] $< --standalone renderMathInElement > $@