Skip to content

Commit 579f2ea

Browse files
committed
demonstrate changes to get esm graphql-js working with jest
strategy: use babel to transform our dependency (A) globally: add @babel/preset-env as a devDependency to support 3 below (B) in package using an esm dependency such as graphql canary: 1. switch our "ts-jest" preset to "ts-jest/presets/js-with-babel" 2. override the default transformIgnorePatterns with an exception for our package of interest 3. add a babel config file with the @babel/preset-env preset targetting node -- The babel config files could be a base + override like the other configs in this repo, but it is pretty abbreviated, and this is just a demonstration, so I held off.
1 parent 10d2ca5 commit 579f2ea

File tree

6 files changed

+2482
-899
lines changed

6 files changed

+2482
-899
lines changed

graphql-17.0.0-alpha.9.tgz

455 KB
Binary file not shown.

0 commit comments

Comments
 (0)