We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a function which calls an async anonymous function. Everything is fine in development but in production the relevant code is lost.
My code:
getPOIInformation = (index) => { const activePOIObject = pois[this.state.activePOIIndex]; const properties = activePOIObject.geojson.features[index].properties; console.log(properties); if (!properties.additionalInformation) { properties.additionalInformation = "LOADING"; (async function () { const response = await api.getPoiInformation({ type: properties.osmType, id: properties.id }); properties.additionalInformation = response; this.forceUpdate(); }).bind(this)(); } return properties.additionalInformation; }
Code after run build:
a.getPOIInformation = function (e) { var t = qe[a.state.activePOIIndex].geojson.features[e].properties; return console.log(t), t.additionalInformation || (t.additionalInformation = "LOADING"), t.additionalInformation }
I think there is something in the webpack/babel configuration wrong.
The text was updated successfully, but these errors were encountered:
I can repro. I think it has to be terser, but it's honestly difficult to debug.
Sorry, something went wrong.
This is a bug in Babel: babel/babel#10306
Technically this is a Babel configuration issue combined with an issue in regenerator-transform.
@kzc so should I close this issue?
No branches or pull requests
Describe the bug
I have a function which calls an async anonymous function. Everything is fine in development but in production the relevant code is lost.
My code:
Code after run build:
I think there is something in the webpack/babel configuration wrong.
The text was updated successfully, but these errors were encountered: