You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this commits adds support for conditional exports
bun, module, module-sync => ESM
deno, node and require => CJS
default => ESM.
deno and node (in versions that do not support module-sync) point to CJS even when using import so as to avoid the dual-package hazard.
the require condition points to CJS just because our default is otherwise now ESM.
Copy file name to clipboardExpand all lines: integrationTests/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,10 @@ Each subdirectory represents a different environment/bundler:
14
14
-`ts` - tests for supported Typescript versions
15
15
-`webpack` - tests for Webpack
16
16
17
+
### Verifying Conditional Exports
18
+
19
+
The `conditions` subdirectory contains tests that verify the conditional exports of GraphQL.js. These tests ensure that the correct files are imported based on the environment being used.
20
+
17
21
### Verifying Development Mode Tests
18
22
19
23
Each subdirectory represents a different environment/bundler demonstrating enabling development mode by setting the environment variable `NODE_ENV` to `development`.
0 commit comments