Skip to content

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Nov 1, 2023

Issue number: N/A


What is the current behavior?

Rollup has a plugin to handle TypeScript compilation that we are not using. As a result, we are maintaining unnecessary infrastructure such as compiling to dist-transpiled(TS to JS) and then compiling the results to dist (JS files to bundled code).

What is the new behavior?

  • Vue, Vue Router, React, and React Router now make use of the Rollup Typescript plugin to handle TypeScript compilation for us. This lets us remove the dist-transpiled directory altogether and the manual tsc invocation.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Developers should not see any changes in how they consume Ionic. This just hands the TypeScript compilation step off to the Rollup plugin.

Dev build: 7.5.3-dev.11698859252.15ac163e

@github-actions github-actions bot added package: vue @ionic/vue package package: react @ionic/react package labels Nov 1, 2023
@liamdebeasi liamdebeasi changed the title refactor: packages do not explicitly run tic refactor: packages do not explicitly run tsc Nov 1, 2023
@liamdebeasi liamdebeasi marked this pull request as ready for review November 1, 2023 19:53
Copy link
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@liamdebeasi liamdebeasi added this pull request to the merge queue Nov 6, 2023
@liamdebeasi liamdebeasi removed this pull request from the merge queue due to a manual request Nov 6, 2023
@liamdebeasi liamdebeasi changed the title refactor: packages do not explicitly run tsc chore: packages do not explicitly run tsc Nov 6, 2023
@liamdebeasi liamdebeasi added this pull request to the merge queue Nov 6, 2023
Merged via the queue into main with commit dfafb27 Nov 6, 2023
@liamdebeasi liamdebeasi deleted the rollup-ts branch November 6, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: react @ionic/react package package: vue @ionic/vue package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants