Skip to content

add info about node 12.12.0 --enable-source-maps #322

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

Merged
merged 3 commits into from
Nov 1, 2022

Conversation

DetachHead
Copy link
Contributor

fixes #321

@KotlinIsland
Copy link

LGTM!

@sheremet-va
Copy link

sheremet-va commented Oct 31, 2022

I just want to point out that --enable-source-maps doesn't work with vm.runInThisContext (and I assume other ways of running script with vm). So tools like Jest and Vite still need to use the package.

@LinusU
Copy link
Collaborator

LinusU commented Oct 31, 2022

I just want to point out that --enable-source-maps doesn't work with vm.runInThisContext (and I assume other ways of running script with vm). So tools like Jest and Vite still need to use the package.

@DetachHead could you add a note about this as well please? 🙏

Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
@DetachHead
Copy link
Contributor Author

DetachHead commented Oct 31, 2022

@sheremet-va @LinusU in my experience source maps have worked in both jest and vite without needing to use this package

@sheremet-va
Copy link

This is because jest already includes it. I meant that this package is required for lib developers, not necessarily users.

@DetachHead
Copy link
Contributor Author

i feel like this information is a bit too low level for most users. i think the vast majority of people who stumble upon this package aren't developers of jest or vite, and wouldn't have a clue what vm and vm.runInThisContext is.

i will include it if you guys think it's necessary, however i think installation instructions should be as simple as possible

@DetachHead
Copy link
Contributor Author

how's that?

Copy link
Collaborator

@LinusU LinusU left a comment

Choose a reason for hiding this comment

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

That's great, thanks! 🙏

@LinusU LinusU merged commit 7b5b81e into evanw:master Nov 1, 2022
@LinusU
Copy link
Collaborator

LinusU commented Nov 1, 2022

i feel like this information is a bit too low level for most users. i think the vast majority of people who stumble upon this package aren't developers of jest or vite, and wouldn't have a clue what vm and vm.runInThisContext is.

i will include it if you guys think it's necessary, however i think installation instructions should be as simple as possible

Sorry, merged before I read this. Yeah, might have been unnecessary but I think with the parenthesis it turned out nice 👍

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.

document that this package is no longer needed as of node 12.12.0
4 participants