Skip to content

build: Replace microbundle with tsc - #180

Merged
scttcper merged 3 commits into
masterfrom
scttcper/tsc
Oct 4, 2024
Merged

build: Replace microbundle with tsc#180
scttcper merged 3 commits into
masterfrom
scttcper/tsc

Conversation

@scttcper

Copy link
Copy Markdown
Member

fixes the only blocker to try out rspack. Only commonjs output which is what we had before.

The rspack error I think was caused by the bundling of microbundle.

Cannot find module '../svg/python.svg'

checkout rspack branch here getsentry/sentry#77077

fixes the only blocker to try out rspack. Only commonjs output which is what we had before.

The rspack error I think was caused by the bundling of microbundle.

```console
Cannot find module '../svg/python.svg'
```
@scttcper
scttcper requested a review from a team September 27, 2024 23:38
outputs:
dependency_cache_key: ${{ steps.compute_lockfile_hash.outputs.hash }}

job_build:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why we don't need this anymore?

@scttcper scttcper Sep 30, 2024

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

all this step does is run yarn build which isn't worth caching since it only takes a second and the dependency cache is now managed by actions/setup-node@v4

@scttcper scttcper Sep 30, 2024

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this action could be simplified even further. before it had 3 steps install + cache, build + cache, run codeql. Really we could just do install, build, codeql as a single step.

Comment thread tsconfig.json
"noImplicitThis": true,
"noImplicitAny": true,
"strictNullChecks": true,
"suppressImplicitAnyIndexErrors": true,

@priscilawebdev priscilawebdev Sep 30, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's good that we're removing it. But is it required for the new changes to work?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

suppressImplicitAnyIndexErrors is no longer supported by typescript and i've updated to the latest version

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.

2 participants