You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Look at options.js. There are a few things that should get cleaned up:
Options should really be just the union type of RealmOptions and SerializerOptions. Why is there the silly name-difference between errorHandler and onError?
The Options data type (and associated helper functions) should not be defined in options.js, move them to a file called prepack-options.js, which is not referenced by the prepack core engine. This is currently violated by src/environment.js in the executePartialEvaluator function. It should probably take a new PartialEvaluatorOptions types, which only contains sourceMaps.
The text was updated successfully, but these errors were encountered:
Summary:
- Clean up options and create new `prepack-options.js` file
- Add `PartialEvaluatorOptions` type which contains only `sourceMaps`
- Fix test code related to above change
#841Closes#878
Reviewed By: NTillmann
Differential Revision: D5605347
Pulled By: cblappert
fbshipit-source-id: 024284a9904dff765417c2c849c4642e781affb3
Look at options.js. There are a few things that should get cleaned up:
Options
should really be just the union type ofRealmOptions
andSerializerOptions
. Why is there the silly name-difference betweenerrorHandler
andonError
?Options
data type (and associated helper functions) should not be defined in options.js, move them to a file calledprepack-options.js
, which is not referenced by the prepack core engine. This is currently violated by src/environment.js in theexecutePartialEvaluator
function. It should probably take a newPartialEvaluatorOptions
types, which only containssourceMaps
.The text was updated successfully, but these errors were encountered: