next_middleware_dynamic

Function next_middleware_dynamic 

Source
pub fn next_middleware_dynamic() -> MiddlewareDynamic
Expand description

Replaces call / expr to dynamic evaluation in the give code to wrapped expression (next_eval, next_webassembly_compile,..) to raise a (nicer) error message.

This should only be only used in development mode.

This transform is specific to edge runtime which are not allowed to call certain dynamic evaluation (eval, webassembly.instantiate, etc)

check middleware-plugin for corresponding webpack side transform.