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
i just noticed my local plugin was no longer being included in the api-runner-browser.js file shipped to the browser. digging in, i've found:
v1.9.216 was the last good version of gatsby for me
as of v1.9.218 my plugin was no longer included.
using v1.9.233 (latest as i'm writing this) and tracing thru the code, i've found that the resolve-module-exports.js utility no longer recognizes my exported api methods (see here)
i just noticed my local plugin was no longer being included in the
api-runner-browser.js
file shipped to the browser. digging in, i've found:v1.9.216
was the last good version of gatsby for meas of
v1.9.218
my plugin was no longer included.using
v1.9.233
(latest as i'm writing this) and tracing thru the code, i've found that theresolve-module-exports.js
utility no longer recognizes my exported api methods (see here)my plugin is dead-simple
if i change the above to:
exports.onRouteUpdate
(instead ofexport const onRouteUpdate
), it passes the api usage check and gets included in my build.interestingly,
module.exports.onRouteUpdate
doesn't work either.seems like there's something funky in the babel transform and / or the code is enforcing incorrect assumptions about the transpiled output.
The text was updated successfully, but these errors were encountered: