When attempting to use async functions in my DoneJS project, the production build was throwing TypeError: define is not a function
after importing babel-polyfill
.
The configuration outlined here solved my problem: https://stealjs.com/docs/config.babelOptions.html#generators