Skip to content

Commit

Permalink
Add "exports" so pure ESM can import 'elastic-apm-node/start' without.
Browse files Browse the repository at this point in the history
This is experimental. I'm not sure if there are side-effects.
See #1967 (comment)
  • Loading branch information
trentm committed Jul 8, 2022
1 parent e7a3ee7 commit 9f741a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Expand Up @@ -4,6 +4,10 @@
"description": "The official Elastic APM agent for Node.js",
"main": "index.js",
"types": "index.d.ts",
"exports": {
".": "./index.js",
"./start": "./start.js"
},
"scripts": {
"backport": "backport",
"docs:open": "PREVIEW=1 npm run docs:build",
Expand Down

0 comments on commit 9f741a5

Please sign in to comment.