But it's likely to be used for specific use cases - like compute-intensive apps
"browser": "./browser/main.js",
"browser": { "module-a": false, "module-b": "./shims/module-b.js", "./server.js": "./shims/client.js", }
[4]: https://bun.sh/
is collaborating on API interoperability of web platform APIs across runtimes.
"main": "./dist/main.js",
"main": "./dist/main.js",
"exports": { "import": "./dist/main.js", "require": "./dist/main.cjs" }
// dist/index.cjs
exports.name = 'value';
// dist/index.mjs
import cjsModule from './index.cjs';
export const name = cjsModule.name;
@scope/package-name
@scope/package-name@node
: default variant - code for all platforms
: Node.js variant - Node.js specific code
"types": "./dist/types.d.ts",
@types/your-package-name
"sourceMap": true,
"inlineSourceMap": true,
"inlineSources": true,
"sourceRoot": "src",
import { trace } from '@opentelemetry/api'; const tracer = trace.getTracer("name", "0.1.0");
const span = tracer.startSpan("span-name"); // do some work span.end();
@opentelementry/instrumentation-pkg-name
@scope-name/opentelemetry-instrumentation