Skip to content

Commit 796f4de

Browse files
build(tsconfig): change target from es5 to es2016
BREAKING CHANGE: change build target from `es5` to `es2016` The build output now uses `Array.prototype.includes()` (ES2016 feature), which is not supported in: - Internet Explorer 11 - Node.js < 6.x - Older browsers/environments
1 parent ce4e037 commit 796f4de

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

rollup.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const getConfig = (minify = false) => ({
2424
declaration: false,
2525
declarationMap: false,
2626
module: 'esnext',
27+
moduleResolution: 'bundler',
2728
outDir: 'dist',
2829
},
2930
}),

tsconfig.build.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "es2016",
44
"module": "commonjs",
5-
"lib": ["es5", "dom"],
5+
"lib": ["es2016", "dom"],
66
"esModuleInterop": true,
77
"declaration": true,
88
"declarationMap": true,
99
"sourceMap": true,
1010
"strict": true,
1111
"skipLibCheck": true,
12+
"rootDir": "src",
1213
"outDir": "lib",
1314
"jsx": "react-jsx"
1415
},

0 commit comments

Comments
 (0)