Skip to content

Commit

Permalink
Update consent-wrapper-onetrust target (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Oct 2, 2023
1 parent 08e5015 commit a725117
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tall-colts-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@segment/analytics-consent-wrapper-onetrust': patch
---

Change tsconfig compile target from ESNext->ES2020
3 changes: 2 additions & 1 deletion packages/consent/consent-tools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"target": "ES2020", // don't down-compile *too much* -- if users are using webpack, they can always transpile this library themselves
"lib": ["ES2020", "DOM", "DOM.Iterable"], // assume that consumers will be polyfilling at least down to es2020
"moduleResolution": "node",
"resolveJsonModule": true
"resolveJsonModule": true,
"isolatedModules": true // ensure we are friendly to build systems
}
}
2 changes: 1 addition & 1 deletion packages/consent/consent-wrapper-onetrust/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"module": "ESNext", // es6 modules
"target": "ESNext", // assume that consumers will be using webpack, so don't down-compile
"target": "ES2020", // don't down-compile *too much* -- if users are using webpack, they can always transpile this library themselves
"lib": ["ES2020", "DOM", "DOM.Iterable"], // assume that consumers will be polyfilling at least down to es2020
"moduleResolution": "node",
"isolatedModules": true // ensure we are friendly to build systems
Expand Down

0 comments on commit a725117

Please sign in to comment.