workers-honeycomb-logger
workers-honeycomb-logger copied to clipboard
ESM Support
I don't think this package works in a NodeNext
TS ESM project context:
This is one fix:
{
"name": "@cloudflare/pages-plugin-honeycomb",
"version": "1.0.2",
"type": "module",
"exports": {
"." : {
"import": "./index.js",
"require": "./index.js",
"types": "./index.d.ts"
}
},
"files": [
"index.js",
"index.d.ts",
"tsconfig.json"
],
"scripts": {
"build": "npx wrangler pages functions build --plugin --outfile index.js"
},
"dependencies": {
"@cloudflare/workers-honeycomb-logger": "^2.3.3"
}
}
If you need a dedicated CJS build then point to it with require
and toss a package.json into the directory therein with "type": "commonjs"
.