Add additional babel transform
commitbd5d91c5635ecf669828cff0bff28b2f915e9b99
authorCalvin Fernandez <cfernand@fb.com>
Mon, 1 Apr 2019 14:56:22 +0000 (1 07:56 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Mon, 1 Apr 2019 14:59:31 +0000 (1 07:59 -0700)
tree953ac33f14f66442dd2afbddc59eda3f1a955261
parent68af89ff36224b50825d85538fee516f17b475cd
Add additional babel transform

Summary: Add another optional runtime flag to HHVM called -Eval.AdditionalBabelTransforms=<path-to-extra-transforms> which, if present, hackc will invoke before calling into the HHJS babel transform. We do this because we want to keep HHJS code as WWW agnostic as possible. Using this new flag, we will introduce another babel transform pipeline that lives in WWW that will lower WWW-specific code into a form consumable by HHJS.

Reviewed By: alexmckenley

Differential Revision: D14626984

fbshipit-source-id: 168342435231e4fa36e093ecd4b7b2cf1fd85339
hphp/hack/src/hhbc/hhbc_options.ml
hphp/runtime/base/runtime-option.h