6c02d5b14b
Summary: Currently, the app server accepts `transformModulePath` which allows us to use different transformation variants. However, these options persist through the lifetime of the server. So we cannot conditionally transform a module differently for two bundles without restarting the server with different options. `getTransformOptions` basically allows us to change the options to the transformer at runtime based on the bundle and module being transformed. These options are also used as a cache key for the transformedSource to ensure that if a file is transformed with different options, caching doesn't cause any inconsistencies. public Reviewed By: martinbigio Differential Revision: D2776399 fb-gh-sync-id: 1e0f34d8fa7f0377fcf81f23eb6f3236bd397d56 |
||
---|---|---|
.. | ||
__mocks__ | ||
src | ||
.babelrc | ||
.npmignore | ||
index.js |