- Notifications
You must be signed in to change notification settings - Fork20.6k
Commit86e62a3
committed
Core: Tweak factory exports details
After this commit:1. Node.js always gets the CommonJS version2. Bundlers always get the ESM version3. Other tools take the ESM version when using `import` and the CommonJS when using `require`.The complexity is lower than for the `.` & `./slim` entry points because there'sno default export to handle so node/bundler wrapper files are not necessary.1 parentc94ff35 commit86e62a3
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 |
| |
36 | 38 |
| |
37 | 39 |
| |
38 |
| - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 |
| |
40 | 44 |
| |
41 | 45 |
| |
|
0 commit comments
Comments
(0)