-
-
Notifications
You must be signed in to change notification settings - Fork 604
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: source map sources
and file
paths
#753
Closed
npetruzzelli
wants to merge
12
commits into
webpack-contrib:master
from
npetruzzelli-forks:source-map-uris
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e4497c6
Allow the user to opt out of legacy handling, but keep it as the defa…
npetruzzelli 7f4f7a8
Address Lint errors and missing variable declaration.
npetruzzelli 8cf05a9
Remove optional support of legacy handling.
npetruzzelli 027c8ca
Update assertions used in tests for source maps.
npetruzzelli 32e7f46
Clean up `from` and `to` arguments for PostCSS processing.
npetruzzelli c0669ab
Merge branch 'master' into source-map-uris
npetruzzelli ffdd935
Fix linting errors in `lib/loader.js`
npetruzzelli 16c317a
Fix missing hyphen in default devtool value.
npetruzzelli 68bd963
Account for valid falsey values passed for devtool option in test helper
npetruzzelli 26680b0
Get the compiled source map object from within a test
npetruzzelli c2e272f
Remove use of OriginalSource, it did not contain information on the i…
npetruzzelli 625ffb1
Don't set sourceRoot on source maps if the consuming developer did no…
npetruzzelli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is dangerous using this, also it is invalid use
resourcePath
, because it is not resource path, it is request, maybe you can create problem repository?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will take me a while to completely respond to this. If I am lucky, I can have something ready some time this week.
I need to understand more about the differences between when to use the request and when to use a file system path.
It is difficult to learn the details of the request syntax, because it does not exist on the website (https://webpack.js.org/concepts/) nor the documentation used to generate it (https://github.com/webpack/webpack.js.org). The closest we come is documentation on context: https://webpack.js.org/api/loaders/#the-loader-context.
There are some pages in the old wiki, but they don't go into a lot of detail and users looking for documentation might not expect to look in the deprecated docs repository wiki because they appear to have the same information at first glance and would expect the syntax to be documented on the site. In reality, the wiki contains information not present in the in the more up to date documentation: https://github.com/webpack/docs/wiki/loaders, https://github.com/webpack/docs/wiki/using-loaders.
The next post will probably be a big one.
Before I make it, I want to see if what I'm concerned about is still an issue or if I'm worried about nothing. My next step is to create the example repository that you requested as it will help illustrate what has been fixed and what still needs work. I can't rely only on the test suite just yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@npetruzzelli feel free to create minimum reproducible test repo, it is allow to me also identify the problem and how to fix it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @evilebottnawi,
I've created the repository that illustrates the problem. I'll need some time to get some text and images together to support/describe it clearly instead of needing you to dig through multiple pull requests and issues across multiple repositories for a clear picture.
https://github.com/npetruzzelli-forks/webpack-loader-demos/tree/dfffa81b02fd14fe7ece517b4048abfb0d33b761
I plan to use this repository to demonstrate the eventual solution just by pointing to a different Webpack file, probably in a new branch.
Relevant information:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@npetruzzelli great, thanks, i will see tomorrow, very tired today
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No rush! I know that feeling. Rest well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reproducible test repo is not very simple, i try around 30 minutes to understand structure. Also looks many things broken, js source maps also doesn't work in you example. Please simplify example.