Skip to content

Issue/2593 Upgrade Typescript Project to Use Project References#2650

Merged
AlexGilleran merged 40 commits intomasterfrom
issue/2593-alt
Dec 11, 2019
Merged

Issue/2593 Upgrade Typescript Project to Use Project References#2650
AlexGilleran merged 40 commits intomasterfrom
issue/2593-alt

Conversation

@t83714
Copy link
Contributor

@t83714 t83714 commented Dec 8, 2019

What this PR does

Fixes #2593

Re-created from the previous PR to reduce moving pieces using ts-module-alias-transformer.

ts-module-alias-transformer still uses babel-core to replace the module path. But because it bundled all libs into one single built file (including @babel/core). there is no dependencies required.

A separated .babelrc is not required either.

Test:

Test site:

http://issue-2593-alt.dev.magda.io/

Checklist

  • There are unit tests to verify my changes are correct
  • I've updated CHANGES.md with what I changed.
  • I've linked this PR to an issue in ZenHub (core dev team only)

t83714 and others added 30 commits November 25, 2019 12:49
increase the cache key
- remove noEmitOnError from global as it's not appropriate for project reference setup
- add tsbuildinfo to gitignore
t83714 and others added 8 commits November 29, 2019 14:54
…ssue. Reason:

- terriajs requires lower version (0.2.17) `loader-utils` which is common utils lib of many webpack plugins
- Due to webpack upgrade of other magda modules, a newer version of webpack is hoisted to the root which was 3.12.0. This lead to newer version of `loader-utils` is loaded by webpack but can't process old API calls from old version webpack plugins used by terriajs. This lead to incompleted CSS build.
@AlexGilleran AlexGilleran merged commit 7200b47 into master Dec 11, 2019
@AlexGilleran AlexGilleran deleted the issue/2593-alt branch December 11, 2019 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use TypeScript Project References to make the build faster and less fragile

2 participants