Skip to content

Commit

Permalink
docs: remove old notes that aren't relevant any longer
Browse files Browse the repository at this point in the history
  • Loading branch information
mscharley committed Oct 20, 2023
1 parent 76dd0ed commit d088871
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions examples/ts4-cjs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
# CommonJS / TypeScript 4 example

## CommonJS notes

To use CommonJS, you will need to use `module: "commonjs"` and `moduleResolution: "node"`. For whatever reason, TypeScript can't deal with requires in exports that have both import and require available. If anyone has any better information or a way to work around this, I'd love to know more. It would be good to be able to support `Node16` module resolution and CommonJS together. DOT already supports being either required or imported from pure JavaScript projects.

0 comments on commit d088871

Please sign in to comment.