fix: Support ESM on Node.js 14+
MODIFY
package.json
package.json
"main": "dist/nat.cjs.js",
"module": "dist/nat.esm.js",
"browser": "dist/nat.umd.js",
+ "exports": {
+ ".": "./src/index.js",
+ "./package.json": "./package.json"
+ },
"parsers": {
"js": "mjs"
},
"overflow"
],
"files": [
- "dist"
+ "dist",
+ "src"
],
"ava": {
"files": [

fix: Support ESM on Node.js 14+