[turbopack] Respect `sideEffects` in a `package.json` file with `optimizePackageImports` (#96383)
Closes https://github.com/vercel/next.js/issues/96333 by re-ordering the statements in `get_side_effect_free_declaration`. The rest of this PR is then a test + adding to a test fixture. This seems like a reasonable change to me as we'd match Webpack's behaviour. --------- Co-authored-by:Luke Sandberg <lukesandberg@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment