question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exclude *.map files from shipped extension

See original GitHub issue

Extension Version: 2020.8.109390

I was looking into why Python was taking a little while to download on my machine. From a quick investigation, it looks like the datascience-ui folder in the shipped extension contains three large .map files:

du -ah . | sort -rh | grep '\.map'
14M	./out/client/extension.js.map.disabled
7.1M	./out/datascience-ui/notebook/commons.initial.bundle.js.map
3.4M	./out/datascience-ui/viewers/commons.initial.bundle.js.map
216K	./out/datascience-ui/notebook/nativeEditor.js.map
128K	./out/datascience-ui/notebook/interactiveWindow.js.map
8.0K	./out/datascience-ui/viewers/plotViewer.js.map
8.0K	./out/datascience-ui/viewers/dataExplorer.js.map

These should usually be excluded as they are only needed during development

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rchiodocommented, Sep 17, 2020

No I don’t think so. We only need them when debugging, not when getting logs from users.

0reactions
luabudcommented, Oct 21, 2020

We should:

  • Remove the map files from the vsix
  • Remove the setting (python.diagnostics.sourceMapEnabled)
  • Update our issue documentation to stop asking people to use the setting
  • Generate source map during build (and save them along the relesed vsix)

If we need this for debugging, we can give users a link to the map files and instructions as to how to put it on the right place, so we get the info we need

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should I Use Source Maps in Production? | CSS-Tricks
A “source map” is a special file that connects a minified/uglified version of an asset (CSS or JavaScript) to the original authored version....
Read more >
Bootstrap trying to load map file. How to disable it? Do I need ...
Open your code Inspector (right click) · Press Control+Shift+P and search "Disable JavaScript source maps" · Do same for "Disable CSS source maps" ......
Read more >
TSConfig Reference - Docs on every TSConfig option
The value of extends is a string which contains a path to another configuration file to inherit from. The path may use Node.js...
Read more >
SourceMapDevToolPlugin - webpack
This plugin enables more fine grained control of source map generation. ... [url] is replaced with a URL to the source map file....
Read more >
Service worker configuration - Angular
The ngsw-config.json configuration file specifies which files and data URLs the ... Matches 0 or more characters excluding / ... map, Exclude all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found