Skip to content

Commit bda7e10

Browse files
committed
increased target version to es2016
1 parent 79a6611 commit bda7e10

File tree

3 files changed

+73
-78
lines changed

3 files changed

+73
-78
lines changed
+24-24
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
{
22
"compilerOptions": {
3-
"outDir": "build/",
4-
"rootDir": "./src",
5-
"sourceMap": true,
6-
"inlineSources": true,
7-
"noImplicitAny": true,
8-
"target": "esnext",
9-
"module": "esnext",
10-
"lib": [
11-
"es5",
12-
"es6",
13-
"es7",
14-
"esnext",
15-
"dom"
16-
],
17-
"baseUrl": ".",
18-
"jsx": "react",
19-
"allowJs": false,
20-
"declaration": true,
21-
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
22-
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
23-
"moduleResolution": "node",
3+
"outDir": "build/",
4+
"rootDir": "./src",
5+
"sourceMap": true,
6+
"inlineSources": true,
7+
"noImplicitAny": true,
8+
"target": "esnext",
9+
"module": "esnext",
10+
"lib": [
11+
"es5",
12+
"es6",
13+
"es7",
14+
"esnext",
15+
"dom"
16+
],
17+
"baseUrl": ".",
18+
"jsx": "react",
19+
"allowJs": false,
20+
"declaration": true,
21+
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
22+
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
23+
"moduleResolution": "node",
2424
},
2525
"exclude": [
26-
"node_modules",
27-
"build",
26+
"node_modules",
27+
"build",
2828
]
29-
}
29+
}
+22-24
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
{
2-
"compilerOptions": {
3-
"outDir": "build/",
4-
"rootDir": "./src",
5-
"sourceMap": true,
6-
"noImplicitAny": true,
7-
"target": "esnext",
8-
"module": "esnext",
9-
"lib": [
10-
"es5",
11-
"es6",
12-
"es7",
13-
"esnext"
14-
],
15-
"jsx": "react",
16-
"allowJs": false,
17-
"declaration": true,
18-
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
19-
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
20-
"moduleResolution": "node",
21-
},
22-
"exclude": [
23-
"node_modules",
24-
"build",
25-
]
2+
"compilerOptions": {
3+
"outDir": "build/",
4+
"rootDir": "./src",
5+
"sourceMap": true,
6+
"noImplicitAny": true,
7+
"target": "es2016",
8+
"module": "esnext",
9+
"lib": [
10+
"esnext",
11+
"dom"
12+
],
13+
"jsx": "react",
14+
"allowJs": false,
15+
"declaration": true,
16+
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
17+
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
18+
"moduleResolution": "node",
19+
},
20+
"exclude": [
21+
"node_modules",
22+
"build",
23+
]
2624
}

tsconfig.json

+27-30
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,29 @@
11
{
2-
"compilerOptions": {
3-
"declaration": true,
4-
"experimentalDecorators": true,
5-
"emitDecoratorMetadata": true,
6-
"module": "es6",
7-
"moduleResolution": "node",
8-
"rootDir": "./src",
9-
"outDir": "dist",
10-
"sourceMap": true,
11-
"declarationDir": "dist",
12-
"noImplicitAny": true,
13-
"noFallthroughCasesInSwitch": true,
14-
"skipDefaultLibCheck": true,
15-
"removeComments": true,
16-
"skipLibCheck": true,
17-
"lib": [
18-
"es5",
19-
"es6",
20-
"es7",
21-
"esnext",
22-
"dom"
23-
],
24-
"target": "es5"
25-
},
26-
"exclude": [
27-
"node_modules",
28-
"examples",
29-
"scripts",
30-
"dist"
31-
]
2+
"compilerOptions": {
3+
"declaration": true,
4+
"experimentalDecorators": true,
5+
"emitDecoratorMetadata": true,
6+
"module": "esnext",
7+
"moduleResolution": "node",
8+
"rootDir": "./src",
9+
"outDir": "dist",
10+
"sourceMap": true,
11+
"declarationDir": "dist",
12+
"noImplicitAny": true,
13+
"noFallthroughCasesInSwitch": true,
14+
"skipDefaultLibCheck": true,
15+
"removeComments": true,
16+
"skipLibCheck": true,
17+
"lib": [
18+
"esnext",
19+
"dom"
20+
],
21+
"target": "es2016"
22+
},
23+
"exclude": [
24+
"node_modules",
25+
"examples",
26+
"scripts",
27+
"dist"
28+
]
3229
}

0 commit comments

Comments
 (0)