-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Include original .ts files in the NPM package to allow proper debugging #142
Labels
Comments
Thanks for the suggestion! Would including inline sources solve the issue for you as well? That should be enough to make Chrome DevTools happy. I had been planning on enabling inline sources anyway. |
Gudahtt
added a commit
that referenced
this issue
Jul 15, 2021
The TypeScript config has been updated to match the configuration we use in other libraries, mostly. The remaining differences are that `strict` is still not enabled, and there is a separate config used for testing. The test config was preserved for now, but that will be replaced soon when we migrate the tests to Jest. `strict` mode will be enabled in a later PR after we update dependencies, as that will make the necessary changes much easier. The changes are: * `inlineSources` has been enabled. This embeds a complete compy of the source code with the source maps, allowing for a much better debugging experience. * `lib` has been set to `ES2020`, ensuring that we only rely upon JavaScript APIs. Previously it also allowed use of browser APIs. * `rootDir` is now set explicitly to `src`, which will help ensure we don't accidentally change the structure of the package. * The old `prod` config was merged with the base config, so it was no longer needed as a separate file. Closes #142
Gudahtt
added a commit
that referenced
this issue
Jul 15, 2021
The TypeScript config has been updated to match the configuration we use in other libraries, mostly. The remaining differences are that `strict` is still not enabled, and there is a separate config used for testing. The test config was preserved for now, but that will be replaced soon when we migrate the tests to Jest. `strict` mode will be enabled in a later PR after we update dependencies, as that will make the necessary changes much easier. The changes are: * `inlineSources` has been enabled. This embeds a complete copy of the source code with the source maps, allowing for a much better debugging experience. * `lib` has been set to `ES2020`, ensuring that we only rely upon JavaScript APIs. Previously it also allowed use of browser APIs. * `rootDir` is now set explicitly to `src`, which will help ensure we don't accidentally change the structure of the package. * The old `prod` config was merged with the base config, so it was no longer needed as a separate file. Closes #142
Gudahtt
added a commit
that referenced
this issue
Jul 15, 2021
The TypeScript config has been updated to match the configuration we use in other libraries, mostly. The remaining differences are that `strict` is still not enabled, and there is a separate config used for testing. The test config was preserved for now, but that will be replaced soon when we migrate the tests to Jest. `strict` mode will be enabled in a later PR after we update dependencies, as that will make the necessary changes much easier. The changes are: * `inlineSources` has been enabled. This embeds a complete copy of the source code with the source maps, allowing for a much better debugging experience. * `lib` has been set to `ES2020`, ensuring that we only rely upon JavaScript APIs. Previously it also allowed use of browser APIs. * `rootDir` is now set explicitly to `src`, which will help ensure we don't accidentally change the structure of the package. * The old `prod` config was merged with the base config, so it was no longer needed as a separate file. Closes #142
Gudahtt
added a commit
that referenced
this issue
Jul 15, 2021
The TypeScript config has been updated to match the configuration we use in other libraries, mostly. The remaining differences are that `strict` is still not enabled, and there is a separate config used for testing. The test config was preserved for now, but that will be replaced soon when we migrate the tests to Jest. `strict` mode will be enabled in a later PR after we update dependencies, as that will make the necessary changes much easier. The changes are: * `inlineSources` has been enabled. This embeds a complete copy of the source code with the source maps, allowing for a much better debugging experience. * `lib` has been set to `ES2020`, ensuring that we only rely upon JavaScript APIs. Previously it also allowed use of browser APIs. * `rootDir` is now set explicitly to `src`, which will help ensure we don't accidentally change the structure of the package. * The old `prod` config was merged with the base config, so it was no longer needed as a separate file. Closes #142
Gudahtt
added a commit
that referenced
this issue
Jul 15, 2021
The TypeScript config has been updated to match the configuration we use in other libraries, mostly. The remaining differences are that `strict` is still not enabled, and there is a separate config used for testing. The test config was preserved for now, but that will be replaced soon when we migrate the tests to Jest. `strict` mode will be enabled in a later PR after we update dependencies, as that will make the necessary changes much easier. The changes are: * `inlineSources` has been enabled. This embeds a complete copy of the source code with the source maps, allowing for a much better debugging experience. * `lib` has been set to `ES2020`, ensuring that we only rely upon JavaScript APIs. Previously it also allowed use of browser APIs. * `rootDir` is now set explicitly to `src`, which will help ensure we don't accidentally change the structure of the package. * The old `prod` config was merged with the base config, so it was no longer needed as a separate file. Closes #142
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The published package in NPM only contains the
/dist/*
files but when debugging with i.e. the Chrome DevTools and stepping into the library, an error is thrown because the original/src/index.ts
file cannot be found and therefore the sourcemaps can't be used to display the proper source lines being executed.Please update the NPM package to also include the
/src
directory.Note: To workaround this issue, just copied the
/src
file intonode_modules/eth-sig-util
and the DevTools are happy again.The text was updated successfully, but these errors were encountered: