From d088871ede57ffc90510e399004d3f8decf58884 Mon Sep 17 00:00:00 2001 From: Matthew Scharley Date: Sat, 21 Oct 2023 00:13:47 +1100 Subject: [PATCH] docs: remove old notes that aren't relevant any longer --- examples/ts4-cjs/README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/ts4-cjs/README.md b/examples/ts4-cjs/README.md index e3e3127..c6abef9 100644 --- a/examples/ts4-cjs/README.md +++ b/examples/ts4-cjs/README.md @@ -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.