Files
Sam PoderandGitHub 18123b3765 [turbopack] Tree-shake CJS exports that use the Object.defineProperty syntax (#95994)
This is a common format for transpilers to produce CJS code from ESM,
eg. this output:

```javascript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var x = { color: 'red' };
```

from
https://www.typescript-training.com/course/intermediate-v2/05-modules/.

This PR extends the work done in
https://github.com/vercel/next.js/pull/95716 to support this syntax.
2026-07-21 12:14:40 -07:00

7 lines
131 B
JSON

{
"removeUnusedImports": false,
"removeUnusedExports": true,
"cjsTreeShaking": true,
"treeShakingMode": "reexports-only"
}