-
Notifications
You must be signed in to change notification settings - Fork 2
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
Questions about bundling and tests #1
Comments
Hello!
I should caution you that this package is meant to only be a simple wrapper around
This is actually on purpose.
That might be because I didn't extensively test this package, it's just a few cursory tests to make sure it worked. If we added more tests, it's likely that the coverage would improve. |
Thanks for the answers, I do have more questions :)
Agreed, and it's mostly what I'm doing. except for one method that's a bit more complex:
I understand that for the browser build, but is it also the case for the esm build ? Could we add a node (commonjs) target as well to avoid bundled duplicates ? Because now, the trace-mapping package contains a copy of This means that the package
I'll have a look at the other packages you have that are tested this way, when enabling the lcov reporter to have an html output, I can't see the content of I added more tests, and indeed the coverage improved, but I still wasn't able to use the HTML UI |
Sounds good.
Sure. I think we can just do this for the browser build.
Sigh, I thought rollup would dedupe that during the build.
I'll accept anything that fixes this. |
Awesome, I'll finalize and test what I have and open the PR :)
Scratch what I said, I had a look on the other packages and indeed, it seems that Rollup takes the esm version of the dependencies which are all properly externalized in the other packages so no duplication happens. |
Hi,
I'm working on a PR to this package to add some methods that are missing to this package compared to
source-map
andsource-map-js
I'm curious about a few things in this package and wanted to ask before making a PR.
I see
@jridgewell/gen-mapping
and@jridgewell/trace-mapping
are declared as dependencies but when bundled they aren't declared as externals. Should they be treated as externals (at least for non browser bundles) or should the dependencies be "dev" dependencies ? my 2 cent is that it should be externals.Tests are run on the compiled code, using the source map to show the coverage and that's not working well. Is that on purpose or can I switch to use
ts-mocha
instead ?The text was updated successfully, but these errors were encountered: