next.js
18123b37 - [turbopack] Tree-shake CJS exports that use the `Object.defineProperty` syntax (#95994)

Commit
23 days ago
[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.
Author
Parents
Loading