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
exportdefaultasync({
store,
location,
...options})=>{if(!store){thrownewError('Expected to receive a redux store.')}return({dispatch: store.dispatch,getState: store.getState,location: store.dispatch('hello').location,
...options,})}
Out: { compiler: { promises: false }}
"use strict";var_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=true;exports.default=void0;var_objectSpread2=_interopRequireDefault(require("@babel/runtime/helpers/objectSpread"));var_objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var_default=function_default(_ref){returnnewPromise(function($return,$error){varstore=_ref.store,location=_ref.location,options=(0,_objectWithoutProperties2.default)(_ref,["store","location"]);if(!store){return$error(newError('Expected to receive a redux store.'));}return$return((0,_objectSpread2.default)({dispatch: store.dispatch,getState: store.getState,location: store.dispatch('hello').location},options));});};exports.default=_default;
Out: { compiler: { promises: true }} Same as above
Is fast-async only spec now? None of the setting seem to impact anything. Does the documentation need to be updated? Thanks
The text was updated successfully, but these errors were encountered:
Looking at the source of fast-async 7.0.6 it seems that the options sub-object which used to be housed under the compilers option should now go under an as-of-yet not documented codeGenerationOptions option:
Don't bother fixing up your configuration. It more than likely won't help getting your code to compile correctly. fast-async@7 seems broken and will generate code that uses generator functions, even if explicitly told not to. See #67
EDIT:
No wait; that's my bad.
Messed up Babel configuration was not tearing out the entire async-to-generator transformation.
Package.json
My
babel.config.js
:Snippet of code:
Out:
{ compiler: { promises: false }}
Out:
{ compiler: { promises: true }}
Same as above
Is fast-async only spec now? None of the setting seem to impact anything. Does the documentation need to be updated? Thanks
The text was updated successfully, but these errors were encountered: