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

Fix sourcemap warnings in VSCode debugger #193

Closed
wants to merge 1 commit into from

Conversation

justingrant
Copy link
Contributor

Fixes #192. by adding the tsc-out folder to the package, which will solve the sourcemap warnings you'll see in VSCode in the debugger console.

It's possible that there may be some other way to fix sourcemaps without making the package larger, but at least in the meantime we can fix the debugger console warnings while we look for a better solution if one exists.

This commit adds the `tsc-out` folder to the package, which will solve
the sourcemap warnings you'll see in VSCode in the debugger console.
@justingrant
Copy link
Contributor Author

Weird, there are test failures in Node 16, but this PR doesn't make any runtime code changes, so those must be existing failures in the codebase, perhaps caused by a time zone DB update in a Node 16 update? Or perhaps we made a change recently to make Node 17 work well, but it broke Node 16 because the same TZDB hasn't been applied there yet?

Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

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

This seems well-justified to me, but I don't know much about the topic of packaging NPM modules, so I'd prefer to leave the review to @12wrigja.

The test failures look almost certainly due to a TZDB update — in the most recent release, some time zones' pre-1970 data was consolidated. See tc39/test262@0bc0ca1

@12wrigja
Copy link
Contributor

I'll look a bit more closely at the sourcemap setup later today, but wanted to ask if it's possible to pin ourselves to particular versions of this TZ data (by pinning specific Node versions?) so we don't have randomly failing tests.

@ptomato
Copy link
Contributor

ptomato commented Nov 14, 2022

That should be possible, but it would additionally be good to replace these with tests that won't depend on specific time zone data.

@justingrant
Copy link
Contributor Author

Should we hold this PR waiting for all-green fix for the node 16 time zones? Or OK to merge this one?

@ptomato
Copy link
Contributor

ptomato commented Nov 15, 2022

I don't think it's necessary to wait for the TZDB fix, but I do think James still wanted to look at the sourcemap setup.

@justingrant
Copy link
Contributor Author

Replaced by #194

@justingrant justingrant closed this Dec 8, 2022
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.

Invalid sourcemap paths for ESM and CJS bundles
3 participants