Skip to content

Commit 526f948

Browse files
authored
chore: aligning target for esm build with core repo (open-telemetry#557)
1 parent ad6e58e commit 526f948

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

plugins/web/opentelemetry-instrumentation-document-load/src/instrumentation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class DocumentLoadInstrumentation extends InstrumentationBase<unknown> {
9090
* Collects information about performance and creates appropriate spans
9191
*/
9292
private _collectPerformance() {
93-
const metaElement = [...document.getElementsByTagName('meta')].find(
93+
const metaElement = Array.from(document.getElementsByTagName('meta')).find(
9494
e => e.getAttribute('name') === TRACE_PARENT_HEADER
9595
);
9696
const entries = getPerformanceNavigationEntries();

tsconfig.base.esm.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.base.json",
2+
"extends": "./tsconfig.es5.json",
33
"compilerOptions": {
44
"module": "ES6",
55
"moduleResolution": "node"

tsconfig.es5.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.base.json",
3+
"compilerOptions": {
4+
"target": "es5"
5+
}
6+
}

0 commit comments

Comments
 (0)