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
We could improve support for these environments by failing more gracefully.
For example, when requireing Node.js modules, an alternative "safe require" function could be used that tries e.g. child_process then node:child_process then otherwise returns null. Failure to require a module should probably lead to APIs also returning null.
Ideally we'll be able to add an integration test for this e.g. by running Wrangler "locally" within CI.
Some JavaScript runtime environments have limitations/assumptions, for example:
We could improve support for these environments by failing more gracefully.
For example, when
require
ing Node.js modules, an alternative "safe require" function could be used that tries e.g.child_process
thennode:child_process
then otherwise returnsnull
. Failure torequire
a module should probably lead to APIs also returningnull
.Ideally we'll be able to add an integration test for this e.g. by running Wrangler "locally" within CI.
See also #24 for some previous discussion.
The text was updated successfully, but these errors were encountered: