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.

Provide non-minified distribution

See original GitHub issue

The current way VegaLite distributed is by including minified version only

<script src="https://cdn.jsdelivr.net/npm/vega@5.9.0"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@4.0.2"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6.2.1"></script>

If error thrown (like example below), it’s very hard to figure out what’s went wrong

ERROR TypeError: Cannot read property 'length' of undefined
    at vega-5.9.0.js:1
    at Array.reduce (<anonymous>)
    at vega-5.9.0.js:1
    at Array.forEach (<anonymous>)
    at Mt (vega-5.9.0.js:1)
    at Lr.Ur.visit (vega-5.9.0.js:1)
    at nu.ot.transform (vega-5.9.0.js:1)
    at nu.Kr.evaluate (vega-5.9.0.js:1)
    at nu.Kr.run (vega-5.9.0.js:1)
    at wB.Jr.evaluate (vega-5.9.0.js:1)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
domoritzcommented, Jan 7, 2020
1reaction
domoritzcommented, Jan 7, 2020

For example, you can load non-minified Vega-Lite with:

<script src="https://cdn.jsdelivr.net/npm/vega-lite@4.0.2/build/vega-lite.js"></script>

I’ll add a debugging guide in a follow-up pull request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Minification | Why minify JS, HTML, CSS files - Imperva
Minification is the process of minimizing code and markup in your web pages and script files. It's one of the main methods used...
Read more >
Provide unminified distribution files · Issue #136 - GitHub
Unminified distribution files should be provided in the dist folder for those who want to bundle and minify themselves.
Read more >
Distribute non-minified highlight.js (#1173) · Issues · GNOME ...
If a JavaScript library typically is shipped as minified or compiled code, it MUST be compiled or minified as part of the RPM...
Read more >
What is Minification? Minify Code Definition & Meaning⚔️
Minification is a process of eradicating or eliminating all pointless characters from the whole code. How does it work? Minification methods and tools....
Read more >
How does Javascript minification process comply with ...
Most JS used on the internet is minified before publication, and this process normally removes all comments, including copyright notices, along ...
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