Skip to content

Commit

Permalink
chore: aligning target for esm build with core repo (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
obecny committed Jul 2, 2021
1 parent ad6e58e commit 526f948
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Expand Up @@ -90,7 +90,7 @@ export class DocumentLoadInstrumentation extends InstrumentationBase<unknown> {
* Collects information about performance and creates appropriate spans
*/
private _collectPerformance() {
const metaElement = [...document.getElementsByTagName('meta')].find(
const metaElement = Array.from(document.getElementsByTagName('meta')).find(
e => e.getAttribute('name') === TRACE_PARENT_HEADER
);
const entries = getPerformanceNavigationEntries();
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.esm.json
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.base.json",
"extends": "./tsconfig.es5.json",
"compilerOptions": {
"module": "ES6",
"moduleResolution": "node"
Expand Down
6 changes: 6 additions & 0 deletions tsconfig.es5.json
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"target": "es5"
}
}

0 comments on commit 526f948

Please sign in to comment.