Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48977

Compatibility with tsconfig target ES2020

$
0
0

I am using mono repo with npm workspaces. Repo has 3 packages

  1. server - server code
  2. commons - common code shared between server and ionic-app
  3. ionic-app - ionic app

Both server and commons app are configured with target of ‘ES2020’ as follows.

{
  "compilerOptions": {
    "target": "ES2020",
    "module": "commonjs",
    "lib": ["ES2020"],
  }
}

But ionic react app which uses commons package has target of ‘es5’. To match with commons tsconfig, if I change target of ionic app to “ES2020” and module to ‘commonjs’, will there be any compatibility issue while running app in mobile platform?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48977

Trending Articles