turbopack: don't wrap strict factories of mixed chunks in a strict IIFE
The minifier drops the "use strict" directive of a strict IIFE in expression
position and inlines it, so a mixed chunk with enough strict factories to
use the [(()=>{"use strict";return[...]})(), ...] layout ran those factories
in sloppy mode. Write mixed chunks flat, each strict factory keeping its own
directive. All-strict chunks keep their statement-level wrapper.
Co-authored-by:
Luke Sandberg <210140+lukesandberg@users.noreply.github.com>
Showing
This diff is collapsed.
Please
register
or
sign in
to comment