Turbopack: stop reserving `default` once it is mangled
With `default` mangled like any other export name, nothing emits a property under that key any more, so withholding the bucket has no purpose. The runtime paths that look `'default'` up by name only see CommonJS targets and modules with dynamic re-exports, both of which keep their original names. `__esModule` stays reserved for the opposite reason: `esm()` in the runtime does `defineProp(exports, '__esModule', …)` for every ESM module, so that property exists whatever the module's own exports are called, and an export assigned that key would collide with it. Co-authored-by:Luke Sandberg <210140+lukesandberg@users.noreply.github.com> Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment