Skip to content

update to use dlv/index to fix webpack sourcemaps#4071

Merged
jsnellbaker merged 1 commit intomasterfrom
fix-sourcemaps
Aug 13, 2019
Merged

update to use dlv/index to fix webpack sourcemaps#4071
jsnellbaker merged 1 commit intomasterfrom
fix-sourcemaps

Conversation

@snapwich
Copy link
Collaborator

@snapwich snapwich commented Aug 7, 2019

Type of change

  • Bugfix

Description of change

For whatever reason the //# sourceMappingURL=dlv.umd.js.map at the end of the npm dlv module breaks the sourcemaps for the main webpack chunk (in which its included). I'm not sure why that is, although it seems to be the only npm include that has its own sourcemaps, so maybe this is a wider issue that we've avoided.

Either way, I've updated the code to import dlv/index which is the unminified code without sourcemaps (and webpack will minify and generate sourcemaps for, which is fine).

Other information

Related to #3993

Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

Thanks for digging into and finding this fix!

@jsnellbaker jsnellbaker added the needs 2nd review Core module updates require two approvals from the core team label Aug 9, 2019
@jsnellbaker jsnellbaker merged commit 0bd5d61 into master Aug 13, 2019
@snapwich snapwich deleted the fix-sourcemaps branch August 13, 2019 15:01
sa1omon pushed a commit to gamoshi/Prebid.js that referenced this pull request Nov 28, 2019
@snapwich snapwich mentioned this pull request Feb 28, 2020
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs 2nd review Core module updates require two approvals from the core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments