Skip to content

Commit

Permalink
chore: Set compilation target to es2019
Browse files Browse the repository at this point in the history
Sets The compilation target of the repo to 2019 for webpack 4 compat webpack/webpack#10227
which does not support optional chaining without extra babel loader
transpilation.
  • Loading branch information
ling1726 committed Jul 6, 2023
1 parent e07c1ef commit 4ecc417
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/nx-plugin/src/generators/library/files/.swcrc
@@ -1,6 +1,6 @@
{
"jsc": {
"target": "es2020",
"target": "es2019",
"parser": {
"syntax": "typescript",
"tsx": true,
Expand All @@ -27,4 +27,4 @@
".*.js$"
],
"$schema": "https://json.schemastore.org/swcrc"
}
}
2 changes: 1 addition & 1 deletion packages/react-chat/.swcrc
@@ -1,6 +1,6 @@
{
"jsc": {
"target": "es2020",
"target": "es2019",
"parser": {
"syntax": "typescript",
"tsx": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-data-grid-react-window/.swcrc
@@ -1,6 +1,6 @@
{
"jsc": {
"target": "es2020",
"target": "es2019",
"parser": {
"syntax": "typescript",
"tsx": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-shadow/.swcrc
@@ -1,6 +1,6 @@
{
"jsc": {
"target": "es2020",
"target": "es2019",
"parser": {
"syntax": "typescript",
"tsx": true,
Expand Down

0 comments on commit 4ecc417

Please sign in to comment.