Skip to content

Commit

Permalink
update consent
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Oct 2, 2023
1 parent 32da78b commit f2567e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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
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 f2567e3

Please sign in to comment.