Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Checklist
PR Type
Please delete options that are irrelevant.
Linked tickets
https://digicatapult.atlassian.net/browse/SQNC-20
High level description
Migrate from using
tsimp
as our typescript runtime compiler to usingswc
Detailed description
Similar to digicatapult/veritable-ui#172.
Note there's a known bug with
swc-node
where node_modules imports with a package ending in.js
fails (see swc-project/swc-node#865). We hit this as polkadot.js usesbn.js
internally. The workaround here involves implementing our own shim that bypassesswc-node
in this particular case.Note I've additionally tested brining this up in a built container and it all works
Describe alternatives you've considered
Not upgrading until
swc-node
fixes this. Note though that this bug has been reported for several weeks with no sign of it being fixed. Hence I'm putting this forward as an alternative so we can move away fromtsimp
which is just not production ready.Operational impact
None
Additional context
N/A