We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26176b0 commit a22c5c1Copy full SHA for a22c5c1
README.md
@@ -35,6 +35,18 @@
35
<small><i><a href='#'>This is a work in progress</a></i></small>
36
37
38
+## `package.json` TLDR
39
+
40
+```jsonc
41
+//...
42
+ "type": "module",
43
+ "main": "dist/index.cjs", // or .js if "type" is unspecified
44
+ "exports": {
45
+ "import": "./dist/index.js", // no need for .mjs if "type" is "module" (recommended)
46
+ "require": "./dist/index.cjs" // or .js if "type" is unspecified
47
48
+```
49
50
## Motivation
51
52
Establishing the best way to support cjs and esm and how to structure project to enable that (see results.txt for more info)
0 commit comments