feat(custom-transform): middleware dynamic assert transform (#63538)
### What This PR implements runtime warning for dynamic codes (`eval`, `Function`...) in edge runtime. Webpack uses middleware plugin to replace / wrap codes, in case of Turbopack we don't have equivalent, so creating a new transform visitor and run it if the context is edge. Since sandbox augments global fn (__next_*), transform simply wraps the expr if it matches to the condition. Closes PACK-2804
Showing
Please
register
or
sign in
to comment