mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Treat code like this:
```
Object.defineProperty(exports, '__esModule', { value: true });
exports.foo = 1;
```
As side-effect free. This is an extension of the work on
https://github.com/vercel/next.js/pull/94293 and will allow
https://github.com/vercel/next.js/pull/95718 to drop more dead requires.
---------
Co-authored-by: Benjamin Woodruff <[email protected]>
7 lines
130 B
JSON
7 lines
130 B
JSON
{
|
|
"removeUnusedImports": true,
|
|
"removeUnusedExports": true,
|
|
"cjsTreeShaking": true,
|
|
"treeShakingMode": "reexports-only"
|
|
}
|