Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use source-map-support for stack trace formatting #205

Open
wants to merge 9 commits into
base: iced2
Choose a base branch
from

Conversation

zapu
Copy link
Collaborator

@zapu zapu commented Dec 1, 2019

This seems to work with single files but I have not tested yet with bigger projects, or with projects that would register multiple compilers which all would use source-map-support for error formatting.

zapu added 5 commits December 3, 2019 15:42
Disable cache when installing in source-map-support - we are keeping our
own cache, and so does ts-node, so while there is benefit from another
cache layer on s-m-s side, this causes problems with anonymous files, or
modules that are removed from require.cache and re-required.

Using "<anonymous iced>" instead of "<anonymous>" module.filename when
running code that does not have a file name allows iced3 and iced2 to
not clash if both are used within one node instance.
@zapu zapu requested a review from maxtaco December 12, 2019 18:18
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