Skip to content

Commit

Permalink
Configure ES5 transpilation correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed Nov 3, 2020
1 parent f8730fc commit 8fbec49
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/language-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"@babel/runtime": "^7.11.1",
"@wordpress/base-styles": "^2.0.1",
"@wordpress/components": "^10.0.5",
"@wordpress/i18n": "^3.14.0"
"@wordpress/i18n": "^3.14.0",
"tslib": "^1.10.0"
},
"peerDependencies": {
"react": "^16.8",
Expand Down
7 changes: 5 additions & 2 deletions packages/language-picker/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "ES2016",
"module": "esnext",
"target": "ES5",
"lib": [ "DOM", "ES2020" ],
"module": "ESNext",
"allowJs": true,
"checkJs": false,
"jsx": "react",
Expand All @@ -25,6 +26,8 @@
"types": [],
"rootDir": "src",

"importHelpers": true,

"composite": true
},
"include": [ "src" ]
Expand Down
3 changes: 2 additions & 1 deletion packages/search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"@wordpress/i18n": "^3.14.0",
"@wordpress/icons": "^2.4.0",
"classnames": "^2.2.6",
"lodash": "^4.17.15"
"lodash": "^4.17.15",
"tslib": "^1.10.0"
},
"peerDependencies": {
"react": "^16.8",
Expand Down
7 changes: 5 additions & 2 deletions packages/search/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "es2018",
"module": "esnext",
"target": "ES5",
"lib": [ "DOM", "ES2020" ],
"module": "ESNext",
"allowJs": true,
"checkJs": false,
"jsx": "react",
Expand All @@ -25,6 +26,8 @@
"types": [],
"rootDir": "src",

"importHelpers": true,

"composite": true
},
"include": [ "src" ]
Expand Down

0 comments on commit 8fbec49

Please sign in to comment.