Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Compile data/es6/compiled_api.js to es5 syntax while using es6 modules #167

Merged
merged 3 commits into from
Jul 6, 2018

Conversation

dsmilkov
Copy link
Contributor

@dsmilkov dsmilkov commented Jul 6, 2018

To improve interoperability with React and other libraries, (see discussion and http://bit.ly/2tRViJ9), we should compile es6/compiled_api.js to es5 while still using es6 modules. We do this using the typescript compiler which allows js files as inputs.

This removes the need for the manual sed command to manually replace => with function()


This change is Reviewable

@dsmilkov dsmilkov changed the title Compile compiled_api.js to es5 even when served in dist-es6/ Compile data/es6/compiled_api.js to es5 syntax while using es6 modules Jul 6, 2018
Copy link

@nsthorat nsthorat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm_strong:

Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained

@dsmilkov dsmilkov merged commit a142863 into master Jul 6, 2018
@dsmilkov dsmilkov deleted the fix-es6 branch July 6, 2018 17:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants