File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -248,9 +248,8 @@ This property is experimental and can change in the future. It should only be us
248248by tools converting ES modules into CommonJS modules, following existing ecosystem
249249conventions. Code authored directly in CommonJS should avoid depending on it.
250250
251- When an ES Module contains both named exports and a default export, the result returned by ` require() `
252- is the [ module namespace object] [ ] , which places the default export in the ` .default ` property, similar to
253- the results returned by ` import() ` .
251+ The result returned by ` require() ` is the [ module namespace object] [ ] , which places
252+ the default export in the ` .default ` property, similar to the results returned by ` import() ` .
254253To customize what should be returned by ` require(esm) ` directly, the ES Module can export the
255254desired value using the string name ` "module.exports" ` .
256255
You can’t perform that action at this time.
0 commit comments